Dennis Kitchen
Dennis Kitchen

Reputation: 1

Uncaught Error: Call to undefined function create_function() $this->$base = create_function

I have to update vom php 7.4 to 8.0 and get an call to undefined function create_function error.

Is there someone who could help me to rewrite it correctly?

$this->$base = create_function( '$atts, $contents = null, $base, $current', 
'$output = _WSH()->shortcodes->shortcode_output( $atts, $contents, $base, $current);
return $output;'
);

I can edit php code very well, but I'm reaching my limits here. I can't completely rewrite something from a lower version to the next higher version without help.

Upvotes: 0

Views: 27

Answers (0)

Related Questions