Wrong mysql credentials crash admin panel
-
When the mysql credentials are incorrect in XCloner settings, visiting any wp-admin page give “Could not connect to database” error message and fails to load.
Found this out recently on several sites where GoDaddy managed WordPress hosting updated mysql database credentials and wp-config.php but didn’t update Xcloner config.
Fix was to go into the database itself and update xlconer_mysql_* options in wp_options table. We couldn’t update credentials via the wp-admin interface because we would get the “Could not connect to database” error message instead.
You can test this by changing the xlconer credentials to invalid credentials. Note you will not be able to get back to the credentials page w/o going into the database itself to fix them.
It seems XCloner attempts to connect to the database any time any wp-admin page is loaded even if you are not in an XCloner page or performing any XCloner action.
Can the logic be changed such that connecting to the database is more limited and only occur when necessary instead of each visit to wp-admin?
- The topic ‘Wrong mysql credentials crash admin panel’ is closed to new replies.