Critical error after changing WordPress and Site Address in General Setting
-
I changed both the WordPress Address (URL) and Site Address (URL) in Settings → General to incorrect values, and now my site is showing a critical error: “Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 8.2.0”. My site is completely inaccessible. The site URL should be “http://www.americanbearlogistics.com“. How can I revert these URL settings without being able to access the dashboard?
The blog I need help with is: (visible only to logged in users)
-
I’m sorry you’re locked out—changing those URLs is a common mistake that immediately breaks the site’s connection to its files. Since you can’t access the dashboard, you’ll need to manually ‘hardcode’ the correct URL to regain control. The fastest fix is to log into your Hostinger File Manager, locate the wp-config.php file in your root directory, and add define( ‘WP_HOME’, ‘http://www.americanbearlogistics.com’ ); and define( ‘WP_SITEURL’, ‘http://www.americanbearlogistics.com’ ); right above the line that says ‘That’s all, stop editing!’. Regarding the PHP error, once you have fixed the URLs, go to your Hostinger Panel > Advanced > PHP Configuration and ensure your version is set to 8.2, as your site’s dependencies now strictly require it to run.
-