wordpress URL lost
-
Hi,
I made a uge mistake: I cancelled my wordpress URL from setting. Now I can’t access to my website and it gives to me:
Not Found
The requested URL /wp-login.php was not found on this server.
What should I do? There’s any easy why? I’m not practice in that!
Thank you so much!
web site: www/tradercom.it/PROVA
-
Hello @giuliabigini
Try and see if following this solves the issue
– Access phpMyAdmin on your host, then check the wp_options Table (Note: The table prefix of wp_ may be different if you changed it when installing), and make sure siteurl field and home field are correct. See https://codex.wordpress.org/Changing_The_Site_URL#Changing_the_URL_directly_in_the_database
If you have access to wp-config.php, then add these two lines to your wp-config.php:
define('WP_HOME','http://www.tradercom.it/PROVA'); define('WP_SITEURL','http://www.tradercom.it/PROVA');It is important that you make a copy of wp-config.php before making any changes.
You have to add those lines towards the end, just before the comment which says:
"<strong>/* That's all, stop editing! Happy blogging. */</strong>"You would now be able to login to your site. Once you have logged in, go to the Settings page and set the url again.
Now you can safely remove the lines you had earlier to the wp-config.phpAfter removing the lines, check that you are able to login again.
Hi,
Thank you everybody!
@t-p and @j09
The table prefix is definitely not wp but wor2787 (no idea what it means)
the site URL and home URL file I think are right:Site URL is: http://tradercom.it/tradercom.it/PROVA
Home URL: http://tradercom.it/tradercom.it/PROVAIs that right?
@shariqkhan2012
in my phpmyadmin I can’t find the wp-config.php but I have it in my filezilla… Should I change it from filezilla?Thank you again <3
Yes, you have to do it from FilZilla
Hi!
Sorry again.
@shariqkhan2012
I did what you succested me and something has changed but know if I sourch for http://tradercom.it/tradercom.it/PROVAThis message ccomes out, what does it mean?
Warning: require(/home/traderco/www/tradercom.it/PROVA/wp-includes/random_compat/random.php) [function.require]: failed to open stream: No such file or directory in /home/traderco/www/tradercom.it/PROVA/wp-includes/compat.php on line 435Fatal error: require() [function.require]: Failed opening required ‘/home/traderco/www/tradercom.it/PROVA/wp-includes/random_compat/random.php’ (include_path=’.:/usr/local/php5.3/lib/php’) in /home/traderco/www/tradercom.it/PROVA/wp-includes/compat.php on line 435
Thank you again!
Not sure what is happening here. But I am not able to post any replies on the forum. Looks like that new replies are getting auto-deleted
What was your website url?
1. http://tradercom.it/tradercom.it/PROVA
OR
2. http://tradercom.it/PROVAMy understanding was that the website address was http://tradercom.it/PROVA
That’s why in my original message I had asked to add this in wp-config.php :define('WP_HOME','http://www.tradercom.it/PROVA'); define('WP_SITEURL','http://www.tradercom.it/PROVA');However now I see that your website url was http://tradercom.it/tradercom.it/PROVA, so now change the entry in wp-config.php to:
define('WP_HOME','http://tradercom.it/tradercom.it/PROVA'); define('WP_SITEURL','http://tradercom.it/tradercom.it/PROVA');-
This reply was modified 9 years, 1 month ago by
Shariq Khan. Reason: Corrected the formatting
-
This reply was modified 9 years, 1 month ago by
Shariq Khan. Reason: Corrected the code tag
Hi!
yes sorry the web site url is: ‘http://tradercom.it/tradercom.it/PROVA but I have already try to entry in wp-config.php thi URL. For this reason the new message came out.
Warning: require(/home/traderco/www/tradercom.it/PROVA/wp-includes/random_compat/random.php) [function.require]: failed to open stream: No such file or directory in /home/traderco/www/tradercom.it/PROVA/wp-includes/compat.php on line 435Fatal error: require() [function.require]: Failed opening required ‘/home/traderco/www/tradercom.it/PROVA/wp-includes/random_compat/random.php’ (include_path=’.:/usr/local/php5.3/lib/php’) in /home/traderco/www/tradercom.it/PROVA/wp-includes/compat.php on line 435
Seems the problem is in wp-includes/random_compact/random.php
Is it possible that this file is damage? Sorry probably this question sounds stupid but I’m not understanding what is going on.
Thank you again!
You need to check whether random.php exists in the directory wp-includes/random_compat/
Yes, i checked and it exists
Do you think there is a solution?
Thank you again
Well the error says:
‘/home/traderco/www/tradercom.it/PROVA/wp-includes/random_compat/random.php’ does not exist.Yet, you say that random.php does exist inside random_compat directory.
Can you double check that?
If you still thik that it does exist, then try renaming random.php to something else like random.php_original.
And then reload the page. Now see if the error is still the same or does it change -
This reply was modified 9 years, 1 month ago by
The topic ‘wordpress URL lost’ is closed to new replies.