• Resolved xldyniac

    (@xldyniac)


    Hi!

    For the past several months the plugin kept causing this fatal error when updating, any ideas why? This is what the automated email says:

    _______________________

    WordPress version 6.1.3
    Active theme: (version )
    Current plugin: Really Simple SSL (version 7.0.4)
    PHP version 8.1.2-1ubuntu2.11

    Error Details
    =============
    An error of type E_ERROR was caused in line 2507 of the file /var/www/html/wp-content/plugins/really-simple-ssl/class-admin.php. Error message: Uncaught TypeError: call_user_func(): Argument #1 ($callback) must be a valid callback, first array member is not a valid class name or object in /var/www/html/wp-content/plugins/really-simple-ssl/class-admin.php:2507
    Stack trace:
    #0 /var/www/html/wp-content/plugins/really-simple-ssl/class-admin.php(2373): rsssl_admin->validate_function()
    #1 /var/www/html/wp-content/plugins/really-simple-ssl/class-admin.php(2546): rsssl_admin->get_notices_list()
    #2 /var/www/html/wp-content/plugins/really-simple-ssl/settings/settings.php(107): rsssl_admin->count_plusones()
    #3 /var/www/html/wp-includes/class-wp-hook.php(308): rsssl_add_option_menu()
    #4 /var/www/html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #5 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #6 /var/www/html/wp-admin/includes/menu.php(155): do_action()
    #7 /var/www/html/wp-admin/menu.php(428): require_once(‘…’)
    #8 /var/www/html/wp-admin/admin.php(158): require(‘…’)
    #9 /var/www/html/wp-admin/plugins.php(10): require_once(‘…’)
    #10 {main}
    thrown

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    Thanks for reporting the error. If you go to the settings page from Really Simple SSL, do you see a plus one notice in the dashboard? If I know which one is causing the error that would narrow it down.

    Do you do the update automated, through WP CLI, or manually in the overview?

    Thread Starter xldyniac

    (@xldyniac)

    Thanks for the quick reply @rogierlankhorst ! What does the “plus one notice” mean? On the dashbord, Status shows “?” for the score, Hardening shows “?” vulnerabilities and “1” update (I’m still on wordpress 6.1.2). I always do manual updates, never used the auto-update.

    BTW, seems like 7.0.5 was just released? I updated to that version without the “fatal error”.

    • This reply was modified 2 years, 11 months ago by xldyniac.
    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    In most upgrades, the notices cache was cleared. This didn’t happen on the last upgrade.

    I’m sorry, I wasn’t very clear. With plus ones I meant any notifications below the progress bar with a red 1 behind it.

    The error you posted is about one of those plus ones, but I can’t see which one.

    The function that fails might be protected during the upgrade, causing it to fail.

    Thread Starter xldyniac

    (@xldyniac)

    Hmm… I did check before the last (7.0.5) update, but didn’t see any red thingys. Below the progress bar everything is green (completed) or blue (upgrade).

    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    @xldyniac It looks like there’s a specific combination of conditions that causes this error, because I can’t reproduce it yet. To find the problem, I’d need to see a log of the failed function.

    I have created a branch here, it would be great if you can install it to see if we can get to the bottom of this:
    https://github.com/Really-Simple-Plugins/really-simple-ssl/tree/test-branch

    It logs the function that runs on when the notices are collected. In this branch, the clear cache also runs on upgrade, so you should get the error again. With the log that results I should be able to see the function that is causing the problem.

    To install:
    – In FTP, rename the current Really Simple SSL folder
    – Download and unpack the zip file above, rename the folder to “really-simple-ssl”
    – upload to the wp-content/plugins folder.

    Then visit the plugins overview page. The upgrade should now run. If you can post the logs here, I should be able to see which function is not available for your setup during the upgrade.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘WordPress caught a fatal error when updating plugin’ is closed to new replies.