• 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]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator James Huff

    (@macmanx)

    Since that is a commercial theme, we ask that you please go to their official support channel, so you can get support from the people who know it best: https://themexriver.helpviser.com

    Forum volunteers do not have access to commercial products, so they would not know why it is not working correctly. Other community members who may have faced your issue might be able to help you, but your best bet is your product’s developer. We encourage you to use the official support venues, as it allows the developers to be aware of issues with their code and gives back to the community in a more robust way.

    In case there is a conflict with one of your plugins, try manually resetting your plugins (no Dashboard access required). If that resolves the issue, reactivate each one individually until you find the cause.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal Error Code Megacorp Theme in WP’ is closed to new replies.