Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi there. I’m taking a look at this issue for a clients site. I may do a custom solution that meets the same purpose. I’ll try to post here in the next few days with a solution.

    Hi, I had the same issue and asked that to ChatGPT. He (or she) gave me a solution and it worked for me.

    I got an error message telling line 118 of the file “wp-content/plugins/pro-categories-widget/pro-categories-widget.php” caused this error. This is line 118 “add_action( ‘widgets_init’, create_function( ”, ‘register_widget( “Pro_Categories_Widget” );’ ) );”

    ChatGPT taught me that “create_function” is no more supported in PHP8. So below cord using anonymous function was suggested by him. Please replace line 118 with this.

    add_action( ‘widgets_init’, function () { register_widget(‘Pro_Categories_Widget’); } );

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Does not work with PHP >7.4’ is closed to new replies.