• Resolved rimmerdev

    (@rimmerdev)


    Hello,
    I am attempting to install TotalUpkeep to restore the backup I have from a previous wordpress instance, however whenever I try to enable the plugin (with no other plugins enabled), I am given the following error(s):

    [02-Nov-2021 15:33:19 UTC] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in /homepages/39/d4296035556/htdocs/wordpress/wp-includes/class-wp-hook.php on line 303
    [02-Nov-2021 15:33:19 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /homepages/39/d4296035556/htdocs/wordpress/wp-includes/class-wp-hook.php:303) in /homepages/39/d4296035556/htdocs/wordpress/wp-admin/admin-header.php on line 9
    [02-Nov-2021 15:33:19 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /homepages/39/d4296035556/htdocs/wordpress/wp-includes/class-wp-hook.php:303) in /homepages/39/d4296035556/htdocs/wordpress/wp-includes/option.php on line 1097
    [02-Nov-2021 15:33:19 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /homepages/39/d4296035556/htdocs/wordpress/wp-includes/class-wp-hook.php:303) in /homepages/39/d4296035556/htdocs/wordpress/wp-includes/option.php on line 1098
    [02-Nov-2021 15:33:19 UTC] PHP Notice:  fread(): read of 8192 bytes failed with errno=21 Is a directory in /homepages/39/d4296035556/htdocs/wordpress/wp-includes/functions.php on line 6465
    

    And the entire site will 404. I am using version 5.8.1 of wordpress and the following server environment:

    Server architecture Linux 4.4.284-icpu-077 x86_64
    Web server Apache
    PHP version 7.4.25 (Supports 64bit values)

    • This topic was modified 3 years, 4 months ago by rimmerdev.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor Jesse Owens

    (@jessecowens)

    Hello @rimmerdev

    Thanks for reaching out! We’ll do everything we can to help you get that previous WordPress instance up-and-running.

    I tried to duplicate this problem in an environment as close to yours as I could, and I couldn’t recreate the same problem. Generally speaking, this error means that a hook was fired that didn’t provide the proper callback function.

    You mentioned that you don’t have any other plugins active, can you confirm you’re using the current version of Total Upkeep 1.14.3, or that you’re adding it directly from the repository using Plugins > Add New > Search?

    The error logs you provided are just warnings, and shouldn’t be causing a total site failure, but it’s tough to determine exactly what might be causing the problem from the information that’s in there. One way we might be able to get more information is with the Query Monitor plugin, which has a section for inspecting Hooks and Actions, which should provide the full stack trace of the error.

    Thread Starter rimmerdev

    (@rimmerdev)

    Thanks for getting back to me,

    I can confirm I’m using the version you linked there, version 1.14.13

    When I installed and renabled it for the first time to test it with query monitor, I got the following error:

    Fatal error: Uncaught Error: Call to a member function wordpress_option_updated() on null
    in /homepages/39/d4296035556/htdocs/wordpress/wp-content/plugins/boldgrid-backup-stop/includes/class-boldgrid-backup-activator.php on line 136
    
    Call stack:
    
    Boldgrid_Backup_Activator::maybe_sync_options()
    wp-content/plugins/boldgrid-backup-stop/includes/class-boldgrid-backup-activator.php:101
    Boldgrid_Backup_Activator::on_post_activate()
    wp-content/plugins/boldgrid-backup-stop/includes/class-boldgrid-backup-activator.php:158
    Boldgrid_Backup_Activator::post_activate_notice()
    wp-includes/class-wp-hook.php:303
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:327
    WP_Hook::do_action()
    wp-includes/plugin.php:470
    do_action()
    wp-admin/admin-header.php:287
    require_once()
    wp-admin/plugins.php:603

    Other things include, in the Hooks and actions section, an error:

    ::auto_update_core()
    Error: The parameter class is expected to be either a string or an object

    And an expansion on the previous errors:

    Warning	
    call_user_func_array() expects parameter 1 to be a valid callback, first array member is not a valid class name or object	1	
    wp-includes/class-wp-hook.php:303
    do_action('admin_init')
    wp-admin/admin.php:175
    Core
    -
    Warning	
    call_user_func_array() expects parameter 1 to be a valid callback, first array member is not a valid class name or object	9	
    wp-includes/class-wp-hook.php:303
    apply_filters('auto_update_plugin')
    wp-admin/includes/update.php:1080
    wp_is_auto_update_forced_for_item()
    wp-admin/includes/class-wp-plugins-list-table.php:235
    WP_Plugins_List_Table->prepare_items()
    wp-admin/plugins.php:533
    • This reply was modified 3 years, 4 months ago by rimmerdev.
    Plugin Contributor Jesse Owens

    (@jessecowens)

    Hello @rimmerdev

    Thanks for the additional information! That does give us the solution.

    Right now, you’ve got the plugin’s folder named boldgrid-backup-stop, which is unusual. I was able to recreate the same error when I renamed the directory to match that.

    If you can use FTP, SSH, or your web host’s file manager tool to rename the directory back to the normal boldgrid-backup, you should be able to fix the error.

    Thread Starter rimmerdev

    (@rimmerdev)

    Hello,

    I renamed boldgrid back to it’s regular name, and it enabled fine. However, after I clicked on my dashboard (or any button after enabling), it stopped and now my site has gone back to constant 404 no matter which URL I try to connect to.

    In the debug log the following errors repeat over and over:

    [03-Nov-2021 15:21:18 UTC] PHP Warning:  fread() expects parameter 1 to be resource, bool given in /homepages/39/d4296035556/htdocs/wordpress/wp-content/plugins/boldgrid-backup/admin/class-boldgrid-backup-admin-cli.php on line 139
    [03-Nov-2021 15:21:18 UTC] PHP Warning:  popen(echo "This file is safe to delete." > /homepages/39/d4296035556/htdocs/wordpress/wp-content/boldgrid_backup_kWs8gKNDOJxP/safe-to-delete.txt 2>/dev/null,r): Resource temporarily unavailable in /homepages/39/d4296035556/htdocs/wordpress/wp-content/plugins/boldgrid-backup/admin/class-boldgrid-backup-admin-cli.php on line 137
    [03-Nov-2021 15:21:18 UTC] PHP Warning:  fread() expects parameter 1 to be resource, bool given in /homepages/39/d4296035556/htdocs/wordpress/wp-content/plugins/boldgrid-backup/admin/class-boldgrid-backup-admin-cli.php on line 139
    [03-Nov-2021 15:21:18 UTC] PHP Warning:  popen(crontab -l 2>/dev/null,r): Resource temporarily unavailable in /homepages/39/d4296035556/htdocs/wordpress/wp-content/plugins/boldgrid-backup/admin/class-boldgrid-backup-admin-cli.php on line 137
    [03-Nov-2021 15:21:18 UTC] PHP Warning:  fread() expects parameter 1 to be resource, bool given in /homepages/39/d4296035556/htdocs/wordpress/wp-content/plugins/boldgrid-backup/admin/class-boldgrid-backup-admin-cli.php on line 139
    [03-Nov-2021 15:21:18 UTC] PHP Warning:  popen(env 2>/dev/null,r): Resource temporarily unavailable in /homepages/39/d4296035556/htdocs/wordpress/wp-content/plugins/boldgrid-backup/admin/class-boldgrid-backup-admin-cli.php on line 137
    [03-Nov-2021 15:21:18 UTC] PHP Warning:  fread() expects parameter 1 to be resource, bool given in /homepages/39/d4296035556/htdocs/wordpress/wp-content/plugins/boldgrid-backup/admin/class-boldgrid-backup-admin-cli.php on line 139
    [03-Nov-2021 15:21:18 UTC] PHP Warning:  popen(php -qf /homepages/39/d4296035556/htdocs/wordpress/wp-content/plugins/boldgrid-backup/cron/cli-support.php > /homepages/39/d4296035556/htdocs/wordpress/wp-content/boldgrid_backup_kWs8gKNDOJxP/cli-support.txt 2>/dev/null,r): Resource temporarily unavailable in /homepages/39/d4296035556/htdocs/wordpress/wp-content/plugins/boldgrid-backup/admin/class-boldgrid-backup-admin-cli.php on line 137

    Along with occasionally:
    [03-Nov-2021 15:22:35 UTC] PHP Warning: mysqli_real_connect(): (HY000/1203): User o4773469 already has more than 'max_user_connections' active connections in /homepages/39/d4296035556/htdocs/wordpress/wp-includes/wp-db.php on line 1653

    Plugin Contributor Jesse Owens

    (@jessecowens)

    Hi @rimmerdev

    Thanks for the additional info! This is a pretty strange issue.

    The warnings you see here are related to Total Upkeep’s self-checks that are run in Total Upkeep > Preflight Check. They suggest that your server’s settings are configured to report that popen is a valid execution function, but when the plugin actually tries to use popen, the command fails. You can avoid those warnings by modifying your php.ini‘s disable_functions setting to include popen.

    All that said, those are still only warnings and shouldn’t be causing 404’s on your site. However, it is possible that the warning regarding MySQL max_user_connections could be impacting your site. I’d expect that issue to cause an error that says Error Establishing a Database Connection, not a 404. Your system administrator should be able to help you increase your MySQL max_user_connections setting. Typically, you can find that in /etc/my.cnf, and you’ll need to have root (or sudo) access to change that file.

    Generally speaking, when you see 404’s on every page, it’s related to WordPress’ Permalinks system. If that’s the case, usually you’ll be able to use the Dashboard normally, but all of the front-end pages lead to the “Page Not Found” template from your theme. Here are a couple of things you can try to see if the problem is related to Permalinks.

    First, navigate to Settings > Permalinks and change the setting to Plain. Check to see if your pages load using plain permalinks.

    If that works, change the Permalink setting back to your preferred URL structure, and check your pages again.

    If you’re still seeing a 404, double-check that your site’s .htaccess file includes the WordPress Htaccess Code you can find here, under the Basic WP section. Here’s some more info from the BoldGrid Support Center about how to troubleshoot your permalinks.

    Thread Starter rimmerdev

    (@rimmerdev)

    Hello,

    Thankyou for working with me on this issue! It is indeed a strange one.

    Adding the function to disable_functions seemed to disable some errors, and my provider said that changing max_user_connections didn’t have any affect on the 404 error.

    Permalinks is already set to be plain, but the effect is not quite that – it isn’t a 404 error local to the website, the entire site goes down, including the dashboard. In the console it says Failed to load resource: the server responded with a status of 404 (Not Found). You can try it yourself:

    https://matthew-rimmer.co.uk/
    https://matthew-rimmer.co.uk/wp-admin/

    The only way I get my site back is by renaming the plugin as this disables it in wordpress and gets me access.

    I’ll also note my provider attempted to disable their generated .htaccess file, but this had no effect.

    • This reply was modified 3 years, 4 months ago by rimmerdev.
    • This reply was modified 3 years, 4 months ago by rimmerdev.
    • This reply was modified 3 years, 4 months ago by rimmerdev.
    Plugin Contributor Joseph W

    (@joe9663)

    Hi @rimmerdev,

    We’d like to get some extra background regarding this problem to see if we can figure out a solution and any additional information you can give us is greatly appreciated!

    Just to confirm, you were previously able to activate Total Upkeep on your website and created a backup. Then something happened and you reactivated Total Upkeep to restore your backup, which then caused the entire site to 404. Is that correct?

    What event occurred on your website that prompted your backup restoration attempt? Are there corrupted files you are trying to fix or was the cause something else?

    Are you able to restore your backup file in a Cloud WordPress installation through your BoldGrid Central account?

    What information, if any, was your host able to provide about the Resource temporarily unavailable message related to popen?

    Hopefully we can get this one figured out soon!

    Plugin Contributor Jesse Owens

    (@jessecowens)

    Hello-

    It’s been a little over a week since we heard back from you, so I’m marking this topic as resolved. Please let us know if you’re still having trouble, we’re happy to help!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Enabling plugin crashes wordpress’ is closed to new replies.