PHP 8.2/8.1 – Uncaught TypeError in extract( $mantra_options );

  • Author
    Posts
  • #150372

    Hi
    recently have an issue with one site on my multisite which uses Mantra theme…
    I can no longer login to I as super admin, so can’t modify anything.
    There’s nothing in the logs so I tried setting up a new user from CLI and adding that user as admin to the site using:
    wp user set-role <userno> administrator –url=<siteURL>
    but get the error:
    Fatal error: Uncaught TypeError: extract(): Argument #1 ($array) must be of type array, null given in /var/www/clients/client7/web7/web/wp-content/themes/mantra/includes/theme-setup.php:53
    which is the call:
    extract( $mantra_options );

    I’ve had lots of similar issues upgrading PHP to 8.n as typing is more strict than it used to be and I don’t get away with what I used to, so guessing this may be the problem…
    Any ideas?

Viewing 1 post (of 1 total)

You need to log in to reply to this topic.