• Can’t activate this plugin on PHP 8.0 and higher

    convert-experiments/convert-experiments.php:123 Stack trace: #0 /Users/xyz/local-sites/app/public/wp-admin/includes/plugin.php(2314): include_once() #1 /Users/jmslbam/local-sites/app/public/wp-admin/plugins.php(192): plugin_sandbox_scrape('convert-experim...') #2 {main} thrown in /Users/xyz/local-sites/app/public/wp-content/plugins/convert-experiments/convert-experiments.php on line 123

    PHP 7.4 gives this notice

    Deprecated: Function create_function() is deprecated in /Users/xyz/local-sites/app/public/wp-content/plugins/convert-experiments/convert-experiments.php on line 123
Viewing 1 replies (of 1 total)
  • Thread Starter jmslbam

    (@jmslbam)

    Suggested solution:

    function yoast_convert_experiments_init(){
    	new \Yoast_Convert_Experiments();
    }
    add_action( 'plugins_loaded', 'yoast_convert_experiments_init');

    create_function is deprecated and a anonymous function can’t be removed via remove_action

Viewing 1 replies (of 1 total)
  • The topic ‘PHP 8.0 erro / PHP 7.4 compatibility’ is closed to new replies.