• Resolved sturdy2

    (@sturdy2)


    By mistake, I deleted WP from my website…argh. I had backups created by a plugin but they were stored in the plugin folder and now also deleted by the same mistake. I also have a site backup from last year that I am now trying to restore. I copied the wp folder from the backup to the public folder and then reloaded the db from the same backup using phpMyAdmin. Both DB and WP come from the same backup so I thought that would be sufficient but I am unable to access WP getting either the maintenance screen or error messages indicating WP cannot connect to the db. Any ideas? TIA

Viewing 9 replies - 1 through 9 (of 9 total)
  • Moderator t-p

    (@t-p)

    Try reviewing this help guide and see if you missed anything: https://codex.www.ads-software.com/Restoring_Your_Database_From_Backup

    Thread Starter sturdy2

    (@sturdy2)

    @t-p
    Thanks for the assist. I found and followed exactly those steps in the link you sent but no joy. I continue to see the maintenance screen instead of the login. I think I correctly assume that the SQL file in the site backup should be in sync with the WP files but something is not connecting properly.

    The site is hosted by GoDaddy and the backup was done by cPanel but the restore seems to be no more than a simple upload. So as I mentioned I copied the wp dir to the same location then restored the db as in the link.

    sturdy2

    Moderator t-p

    (@t-p)

    I am unable to access WP getting either the maintenance screen or error messages

    – Please check the error logs on your server for a more specific error message, which may give a clue to why this is happening on your website/server

    – If you cannot find error logs or if you don’t find any helpful info in the error logs, try Enabling debugging

    – If you’re not seeing any errors it might be something before the server gets to WordPress. You’ll need to talk to your hosting company if you can’t find any errors or logs yourself.

    Thread Starter sturdy2

    (@sturdy2)

    @t-p
    Success…and thanks for the assist. Seems there were a few problems. My site is now up and I have a login screen but unable to login. I think I have seen a phpMyAdmin page about how to change a password…the next step. And thanks again.

    Moderator t-p

    (@t-p)

    Glad to it got sorted ??

    Thread Starter sturdy2

    (@sturdy2)

    I thought we had this but now a follow-on problem (sorry to come back at you again):

    As mentioned, site was up with a 15 month old backup. I logon and have access but needed 22 plug-in updates, a theme update and WP update from 4.8 to 4.9.8. I did the WP update with no apparent issue and made another backup on completion. Then I tried to update a few plug-ins and broke something, seems to be the all-in-one-seo-pack. I can logon as admin and nav around the site, but get a blank screen as soon as a click any WP menu item. Error log below.

    My plan is to restore latest backup to WP 4.9.8, remove plugins that don’t impact the data/db (SEO, etc), then try to update remaining plugins one at a time. I can e-install removed plugins later. Do you have a better idea? I wonder if it may be better to update plugins before WP.

    Here is the eror log:

    [26-Sep-2018 21:40:21 UTC] PHP Warning: Illegal string offset ‘deactivate’ in /home/sturdy2/public_html/wp/wp-content/plugins/wp-editor/classes/WPEditor.php on line 333
    [26-Sep-2018 21:40:21 UTC] PHP Warning: Cannot assign an empty string to a string offset in /home/sturdy2/public_html/wp/wp-content/plugins/wp-editor/classes/WPEditor.php on line 333
    [26-Sep-2018 21:40:21 UTC] PHP Warning: Illegal string offset ‘activate’ in /home/sturdy2/public_html/wp/wp-content/plugins/wp-editor/classes/WPEditor.php on line 333
    [26-Sep-2018 21:40:21 UTC] PHP Warning: Cannot assign an empty string to a string offset in /home/sturdy2/public_html/wp/wp-content/plugins/wp-editor/classes/WPEditor.php on line 333
    [26-Sep-2018 21:40:21 UTC] PHP Warning: Illegal string offset ‘details’ in /home/sturdy2/public_html/wp/wp-content/plugins/wp-editor/classes/WPEditor.php on line 333
    [26-Sep-2018 21:40:21 UTC] PHP Warning: Cannot assign an empty string to a string offset in /home/sturdy2/public_html/wp/wp-content/plugins/wp-editor/classes/WPEditor.php on line 333
    [26-Sep-2018 21:40:21 UTC] PHP Warning: Illegal string offset ‘delete’ in /home/sturdy2/public_html/wp/wp-content/plugins/wp-editor/classes/WPEditor.php on line 333
    [26-Sep-2018 21:40:21 UTC] PHP Warning: Cannot assign an empty string to a string offset in /home/sturdy2/public_html/wp/wp-content/plugins/wp-editor/classes/WPEditor.php on line 333
    [26-Sep-2018 21:40:21 UTC] PHP Warning: Illegal string offset ‘edit’ in /home/sturdy2/public_html/wp/wp-content/plugins/wp-editor/classes/WPEditor.php on line 333
    [26-Sep-2018 21:40:21 UTC] PHP Warning: Cannot assign an empty string to a string offset in /home/sturdy2/public_html/wp/wp-content/plugins/wp-editor/classes/WPEditor.php on line 333
    [26-Sep-2018 21:40:21 UTC] PHP Warning: array_filter() expects parameter 1 to be array, string given in /home/sturdy2/public_html/wp/wp-content/plugins/jetpack/sync/class.jetpack-sync-module-callables.php on line 156
    [26-Sep-2018 21:40:21 UTC] PHP Warning: Illegal string offset ‘deactivate’ in /home/sturdy2/public_html/wp/wp-content/plugins/wp-editor/classes/WPEditor.php on line 333
    [26-Sep-2018 21:40:21 UTC] PHP Warning: Cannot assign an empty string to a string offset in /home/sturdy2/public_html/wp/wp-content/plugins/wp-editor/classes/WPEditor.php on line 333
    [26-Sep-2018 21:40:21 UTC] PHP Warning: Illegal string offset ‘activate’ in /home/sturdy2/public_html/wp/wp-content/plugins/wp-editor/classes/WPEditor.php on line 333
    [26-Sep-2018 21:40:21 UTC] PHP Warning: Cannot assign an empty string to a string offset in /home/sturdy2/public_html/wp/wp-content/plugins/wp-editor/classes/WPEditor.php on line 333
    [26-Sep-2018 21:40:21 UTC] PHP Warning: Illegal string offset ‘details’ in /home/sturdy2/public_html/wp/wp-content/plugins/wp-editor/classes/WPEditor.php on line 333
    [26-Sep-2018 21:40:21 UTC] PHP Warning: Cannot assign an empty string to a string offset in /home/sturdy2/public_html/wp/wp-content/plugins/wp-editor/classes/WPEditor.php on line 333
    [26-Sep-2018 21:40:21 UTC] PHP Warning: Illegal string offset ‘delete’ in /home/sturdy2/public_html/wp/wp-content/plugins/wp-editor/classes/WPEditor.php on line 333
    [26-Sep-2018 21:40:21 UTC] PHP Warning: Cannot assign an empty string to a string offset in /home/sturdy2/public_html/wp/wp-content/plugins/wp-editor/classes/WPEditor.php on line 333
    [26-Sep-2018 21:40:21 UTC] PHP Warning: Illegal string offset ‘edit’ in /home/sturdy2/public_html/wp/wp-content/plugins/wp-editor/classes/WPEditor.php on line 333
    [26-Sep-2018 21:40:21 UTC] PHP Warning: Cannot assign an empty string to a string offset in /home/sturdy2/public_html/wp/wp-content/plugins/wp-editor/classes/WPEditor.php on line 333
    [26-Sep-2018 21:40:21 UTC] PHP Warning: array_unshift() expects parameter 1 to be array, string given in /home/sturdy2/public_html/wp/wp-content/plugins/akismet/class.akismet-admin.php on line 89
    [26-Sep-2018 21:40:21 UTC] PHP Warning: array_filter() expects parameter 1 to be array, string given in /home/sturdy2/public_html/wp/wp-content/plugins/jetpack/sync/class.jetpack-sync-module-callables.php on line 156
    [26-Sep-2018 21:40:21 UTC] PHP Warning: Illegal string offset ‘deactivate’ in /home/sturdy2/public_html/wp/wp-content/plugins/wp-editor/classes/WPEditor.php on line 333
    [26-Sep-2018 21:40:21 UTC] PHP Warning: Cannot assign an empty string to a string offset in /home/sturdy2/public_html/wp/wp-content/plugins/wp-editor/classes/WPEditor.php on line 333
    [26-Sep-2018 21:40:21 UTC] PHP Warning: Illegal string offset ‘activate’ in /home/sturdy2/public_html/wp/wp-content/plugins/wp-editor/classes/WPEditor.php on line 333
    [26-Sep-2018 21:40:21 UTC] PHP Warning: Cannot assign an empty string to a string offset in /home/sturdy2/public_html/wp/wp-content/plugins/wp-editor/classes/WPEditor.php on line 333
    [26-Sep-2018 21:40:21 UTC] PHP Warning: Illegal string offset ‘details’ in /home/sturdy2/public_html/wp/wp-content/plugins/wp-editor/classes/WPEditor.php on line 333
    [26-Sep-2018 21:40:21 UTC] PHP Warning: Cannot assign an empty string to a string offset in /home/sturdy2/public_html/wp/wp-content/plugins/wp-editor/classes/WPEditor.php on line 333
    [26-Sep-2018 21:40:21 UTC] PHP Warning: Illegal string offset ‘delete’ in /home/sturdy2/public_html/wp/wp-content/plugins/wp-editor/classes/WPEditor.php on line 333
    [26-Sep-2018 21:40:21 UTC] PHP Warning: Cannot assign an empty string to a string offset in /home/sturdy2/public_html/wp/wp-content/plugins/wp-editor/classes/WPEditor.php on line 333
    [26-Sep-2018 21:40:21 UTC] PHP Warning: Illegal string offset ‘edit’ in /home/sturdy2/public_html/wp/wp-content/plugins/wp-editor/classes/WPEditor.php on line 333
    [26-Sep-2018 21:40:21 UTC] PHP Warning: Cannot assign an empty string to a string offset in /home/sturdy2/public_html/wp/wp-content/plugins/wp-editor/classes/WPEditor.php on line 333
    [26-Sep-2018 21:40:21 UTC] PHP Fatal error: Uncaught Error: Cannot unset string offsets in /home/sturdy2/public_html/wp/wp-content/plugins/all-in-one-seo-pack/all_in_one_seo_pack.php:327
    Stack trace:
    #0 /home/sturdy2/public_html/wp/wp-includes/class-wp-hook.php(288): aiosp_add_action_links(”, ‘all-in-one-seo-…’)
    #1 /home/sturdy2/public_html/wp/wp-includes/plugin.php(203): WP_Hook->apply_filters(”, Array)
    #2 /home/sturdy2/public_html/wp/wp-content/plugins/jetpack/sync/class.jetpack-sync-module-callables.php(155): apply_filters(‘plugin_action_l…’, ”, ‘all-in-one-seo-…’, NULL, ‘all’)
    #3 /home/sturdy2/public_html/wp/wp-includes/class-wp-hook.php(286): Jetpack_Sync_Module_Callables->set_plugin_action_links(”)
    #4 /home/sturdy2/public_html/wp/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
    #5 /home/sturdy2/public_html/wp/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #6 /home/sturdy2/public_html/wp/wp-admin/admin.php(156): do_action(‘admin_init’)
    #7 /home/sturdy2/public_html/wp/wp-admin/update-core.php(10): require_on in /home/sturdy2/public_html/wp/wp-content/plugins/all-in-one-seo-pack/all_in_one_seo_pack.php on line 327

    Moderator t-p

    (@t-p)

    Your wp-editor plugin seems to be the error.

    Access your server via SFTP or FTP, or a file manager in your hosting account’s control panel (consult your hosting provider’s documentation for specifics on these), navigate to /wp-content/plugins/ and delete/rename wp-editor plugin.

    If that does not help, then try manually resetting ALL your plugins (no Dashboard access required). If that resolves the issue, reactivate each one individually until you find the cause.

    Here is another tutorial: https://www.wpbeginner.com/plugins/how-to-deactivate-all-plugins-when-not-able-to-access-wp-admin/

    Thread Starter sturdy2

    (@sturdy2)

    Well, thanks once again: all is good. Your help is much appreciated.

    Moderator t-p

    (@t-p)

    Glad to know its all good ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Trouble restoring site backup’ is closed to new replies.