• Resolved ejw773

    (@ejw773)


    I’m trying to upgrade a site from PHP 8.0 to PHP 8.2, but the Contests by Rewards Fuel plugin was causing the site to crash (500 error). I did the update with the plugin disabled, and it worked fine. When I tried to enable the plugin after the upgrade, I got the following information:

    Plugin could not be activated because it triggered a fatal error.

    Deprecated: Use of “self” in callables is deprecated in /nas/content/live/seminary/wp-content/plugins/contests-from-rewards-fuel/includes/Class_rf.php on line 14

    Deprecated: Use of “self” in callables is deprecated in /nas/content/live/seminary/wp-content/plugins/contests-from-rewards-fuel/includes/Class_rf.php on line 15

    Deprecated: Use of “self” in callables is deprecated in /nas/content/live/seminary/wp-content/plugins/contests-from-rewards-fuel/includes/Class_rf.php on line 9

    Fatal error: Invalid callback self::exc_handler, cannot access “self” when no class scope is active in Unknown on line 0

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Rewards Fuel

    (@rewardsfuel)

    Hello,

    Sorry about my delay in reply\. We’ve updated our version to help with the error you reported. Please try downloading again and let me know if you have any issues.

    Thread Starter ejw773

    (@ejw773)

    I installed the update, and it broke some things on the site. Here are the logs:

    [28-Aug-2023 12:37:36 UTC] PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, stdClass given in /nas/content/live/bjuseminary/wp-content/plugins/contests-from-rewards-fuel/includes/Class_rf.php:100
    Stack trace: 0 /nas/content/live/bjuseminary/wp-content/plugins/contests-from-rewards-fuel/includes/Class_rf.php(49): Class_rf->rf_exe(‘log’, Object(stdClass), false) 1 [internal function]: Class_rf->exc_handler(Object(TypeError)) 2 {main}

    thrown in /nas/content/live/bjuseminary/wp-content/plugins/contests-from-rewards-fuel/includes/Class_rf.php on line 100
    [28-Aug-2023 12:37:36 UTC] PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, stdClass given in /nas/content/live/bjuseminary/wp-content/plugins/contests-from-rewards-fuel/includes/Class_rf.php:100
    Stack trace: 0 /nas/content/live/bjuseminary/wp-content/plugins/contests-from-rewards-fuel/includes/Class_rf.php(31): Class_rf->rf_exe(‘log’, Object(stdClass), false) 1 [internal function]: Class_rf->err_handler(1024, ‘Function is_emb…’, ‘/nas/content/li…’, 5905) 2 /nas/content/live/bjuseminary/wp-includes/functions.php(5905): trigger_error(‘Function is_emb…’, 1024) 3 /nas/content/live/bjuseminary/wp-includes/query.php(882): _doing_it_wrong(‘is_embed’, ‘Conditional que…’, ‘(This message w…’) 4 /nas/content/live/bjuseminary/wp-includes/robots-template.php(93): is_embed() 5 /nas/content/live/bjuseminary/wp-includes/class-wp-hook.php(310): wp_robots_noindex_embeds(Array) 6 /nas/content/live/bjuseminary/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) 7 /nas/content/live/bjuseminary/wp-includes/robots-template.php(32): apply_filters(‘wp_robots’, Array) 8 /nas/content/live/bjuseminary/wp-includes/functions.php(3818): wp_robots() 9 /nas/content/live/bjuseminary/wp-includes/functions.php(3740): _default_wp_die_handler(‘<div class=”wp-…’, ‘WordPress &rsaq…’, Array) 10 /nas/content/live/bjuseminary/wp-includes/class-wp-fatal-error-handler.php(239): wp_die(Object(WP_Error), ”, Array) 11 /nas/content/live/bjuseminary/wp-includes/class-wp-fatal-error-handler.php(154): WP_Fatal_Error_Handler->display_default_error_template(Array, Object(WP_Error)) 12 /nas/content/live/bjuseminary/wp-includes/class-wp-fatal-error-handler.php(58): WP_Fatal_Error_Handler->display_error_template(Array, Object(WP_Error)) 13 [internal function]: WP_Fatal_Error_Handler->handle() 14 {main}

    thrown in /nas/content/live/bjuseminary/wp-content/plugins/contests-from-rewards-fuel/includes/Class_rf.php on line 100

    Plugin Author Rewards Fuel

    (@rewardsfuel)

    Thanks for letting me know. I’ve patched that error with a new release. Please let me know if you see any further issues.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Deprecated use of “self”’ is closed to new replies.