WP-DBManager Error
I have just migrated a wp site to a new host and all went well.
- I created a new database and imported the db backup from the old host.
- I then uploaded the home directory files which were backed up from the old host.
- I changed the “wp-configuration.php“ file settings to reflect the new database, user id and password for the new host.
- I changed the DNS settings on my domain name provider to reflect my new host details.
All went really well, in fact it was the best migration to date and the new DNS settings switched in within an hour which was great.
However, when I checked that all the plugins etc. were functioning correctly I got the following error message on all my admin pages
“Error Warning: Your backup folder MIGHT be visible to the public”
The suggested fix from the plugin stated as follows
“To correct this issue, move the .htaccess file from wp-content/plugins/wp-dbmanager to /home/xxxxxxx/public_html/wp-content/backup-db”
Well, I’d seen this message many times before and the move as requested had always worked before so thought I must have dropped the “.htaccess” file in the move. Remember that the original file is “htaccess.txt” so you also have to change it to “.htaccess” when doing the move (or copy).
No, it was still there so I went back to my original host, zipped up the whole “public_html/wp-content/backup-db” directory and replaced the new host “backup-db” directory with it just in case something was corrupted in the migration .
No, the error message was still there so I realised I had to dig somewhat deeper.
Permissions on the directory? No all ok
I then looked at the actual setup of the plugin using the “DB Options” which you rarely visit once the plugin is configured.
That’s when I realised that there was an area that was still configured with data for the old host – my account name reflected as a directory. This is to be found in the “Path To Backup:” setting.
Mine was set with the old path for my previous host
“/home/domain/public_html/wp-content/backup-db”
I changed it to reflect my new host settings like this
“/web/docroot/1111/domain.com/htdocs/wp-content/backup-db”
After the change and reseting the page, the message disappeared.
I tested full functionally of the plugin without any problems and I would add that this plugin from Lester ‘GaMerZ’ Chan is still great, I have been using it now for many years, thank you Lester.