• Hi there,

    I’m reaching out on behalf of WordPress.com related to an issue reported by one of our users. During testing I found that the most recent version of this plugin (1.3.3) is not compatible with PHP 8.0. When used together, the following fatal is thrown. I tested this with all other plugins deactivated on WordPress 6.0.1.

    I do see that a thread was previously opened about this [here](https://wordpress.org/support/topic/login-logout-menu-plugin-does-not-work-in-php-8-0/) where it was reported that the latest update was compatible with 8.0 but this does not appear to be true.

    Fatal error: Uncaught Error: Call to undefined function create_function() in /srv/htdocs/wp-content/plugins/baw-login-logout-menu/bawllm.php:13
    Stack trace:
    #0 /wordpress/core/6.0.1/wp-admin/includes/plugin.php(2313): include_once()
    #1 /wordpress/core/6.0.1/wp-admin/includes/plugin.php(661): plugin_sandbox_scrape('baw-login-logou...')
    #2 phar:///usr/local/bin/wp-cli/vendor/wp-cli/extension-command/src/Plugin_Command.php(333): activate_plugin('baw-login-logou...', '', NULL)
    #3 [internal function]: Plugin_Command->activate(Array, Array)
    #4 phar:///usr/local/bin/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(100): call_user_func(Array, Array, Array)
    #5 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher\{closure}(Array, Array)
    #6 phar:///usr/local/bin/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(491): call_user_func(Object(Closure), Array, Array)
    #7 phar:///usr/local/bin/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(417): WP_CLI\Dispatcher\Subcommand->invoke(Array, Array, Array)
    #8 phar:///usr/local/bin/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(440): WP_CLI\Runner->run_command(Array, Array)
    #9 phar:///usr/local/bin/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1237): WP_CLI\Runner->run_command_and_exit()
    #10 phar:///usr/local/bin/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
    #11 phar:///usr/local/bin/wp-cli/vendor/wp-cli/wp-cli/php/bootstrap.php(78): WP_CLI\Bootstrap\LaunchRunner->process(Object(WP_CLI\Bootstrap\BootstrapState))
    #12 phar:///usr/local/bin/wp-cli/vendor/wp-cli/wp-cli/php/wp-cli.php(27): WP_CLI\bootstrap()
    #13 phar:///usr/local/bin/wp-cli/php/boot-phar.php(11): include('phar:///usr/loc...')
    #14 /usr/local/bin/wp-cli(4): include('phar:///usr/loc...')
    #15 {main}
      thrown in /srv/htdocs/wp-content/plugins/baw-login-logout-menu/bawllm.php on line 13
    
  • The topic ‘Incompatible with PHP 8.0’ is closed to new replies.