Hi Guys
I am new to WordPress but have made my own CMS’s before so have ran into similar problems.
At the end of the day, everything is in the SQL Database.
I ran into this problem after i removed the URL from the settings, I dunno why this happened!
I fixed the problem by logging into PHP My Admin
In your Database go to the table wp_options
When in here click browse, this lists all the information
You will notice the site URL value is blank.
Click the edit button(looks like a pencil) and re input your URL into the Value text area and click save.
Alternatively in the SQL Console add the following line
UPDATE YOUR DATABASE NAME
.wp_options
SET option_value
= ‘https://YOURURL’ WHERE wp_options
.option_id
=2 LIMIT 1 ;
ps: careful when copying the above line as the quotes may need to be re-entered