Fatal Error Code Megacorp Theme in WP
-
I updated my site to php 8.1 and now i get this error on all pages. How can I fix this?
Fatal error: Uncaught Error: Call to undefined function create_function() in /home/compasahn/public_html/wp-content/plugins/theme_support_megacorp/includes/helpers/shortcodes.php:497 Stack trace: #0 /home/compasahn/public_html/wp-content/plugins/theme_support_megacorp/includes/helpers/shortcodes.php(197): Bunch_Shortcodes->add() #1 /home/compasahn/public_html/wp-content/plugins/theme_support_megacorp/includes/loader.php(17): Bunch_Shortcodes->__construct() #2 /home/compasahn/public_html/wp-content/plugins/theme_support_megacorp/includes/loader.php(46): _load_plugins_class() #3 /home/compasahn/public_html/wp-includes/class-wp-hook.php(307): _bunch_plugin_init() #4 /home/compasahn/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #5 /home/compasahn/public_html/wp-includes/plugin.php(474): WP_Hook->do_action() #6 /home/compasahn/public_html/wp-settings.php(587): do_action() #7 /home/compasahn/public_html/wp-config.php(114): require_once('/home/compasahn...') #8 /home/compasahn/public_html/wp-load.php(50): require_once('/home/compasahn...') #9 /home/compasahn/public_html/wp-blog-header.php(13): require_once('/home/compasahn...') #10 /home/compasahn/public_html/index.php(17): require('/home/compasahn...') #11 {main} thrown in /home/compasahn/public_html/wp-content/plugins/theme_support_megacorp/includes/helpers/shortcodes.php on line 497
The respective code snippet at 497 is:
$this->$base = create_function( '$atts, $contents = null, $base, $current', '$output = _WSH()->shortcodes->shortcode_output( $atts, $contents, $base, $current); return $output;' );
The page I need help with: [log in to see the link]
- The topic ‘Fatal Error Code Megacorp Theme in WP’ is closed to new replies.