• Just curious if y’all are going to make it PHP 8-able (or maybe it’s just me?) We are using Memberpress and this (awesome) plugin to hide/show content based on membership level (works really well).
    Just updated to PHP 8.0 and many of the pages crapped out (critical error from WP). Rolled back to 7.4 and all is well. The error logs pointed to this plugin as the culprit.

    PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, no array or string giv…………l_user_func_array() expects parameter 1 to be a valid callback, no array or string given in /home/684708.cloudwaysapps.com/fufemvsfun/public_html/wp-content/plugins/if-menu/if-menu.php on line 110′,

    though that IS just a warning, so… maybe not?? Just throwing it out there to see if anyone else saw this issue after an 8.0 upgrade.

Viewing 5 replies - 1 through 5 (of 5 total)
  • I’m seeing the same issue. Under PHP 8 I get a fatal error:

    PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, no array or string given in /wp-content/plugins/if-menu/if-menu.php:110

    and the following warnings:

    PHP Warning: Undefined array key "single-page" in /wp-content/plugins/if-menu/if-menu.php on line 110
    PHP Warning: Trying to access array offset on value of type null in /wp-content/plugins/if-menu/if-menu.php on line 110

    Downgrading to PHP 7.4 fixes the fatal error but I still see the warnings.

    shagee

    (@shagee)

    We are facing the same problem. Any update on this?

    olaflexemo

    (@olaflexemo)

    same here… php 8.1.9

    olaflexemo

    (@olaflexemo)

    replacing line 110 with the following snippet seems to have helped fix it:

    if ( $conditions[$if_conditions[$index]][‘condition’] ?? false ) {
    $singleCondition .= call_user_func_array($conditions[$if_conditions[$index]][‘condition’], $params) ? $bit1 : $bit2;
    } else {
    $singleCondition .= $bit2;
    }

    Memberpress was working fine with PHP 8.0.17 but when I went to upload tax csv file – it messed everything up. Removed all the update buttons in the settings section of Memberpress menu, removed ability to use Memberpress designed login and account screens. It probably did a host of other code screwups. Customer Service Tech Support has yet to provide a fix

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP 8.0 breaks the site (with this plugin in place)’ is closed to new replies.