I know this has technically been answered a few times previously, but I am not a PHP coder, so I’m afraid I need a little more directed response to my specific code… As others had posted – I’m using a plugin widget in wordpress that has stopped working after upgrading to PHP 8.2 – failing on the create function apparently. I believe the offending code is as follows:
Plugin#1:
add_action(‘widgets_init’, $myFunc);
add_action( ‘widgets_init’, create_function(”, ‘return register_widget(“BHRRDisplayCategoriesWidget”);’) );?>
Plugin#2:
add_action(‘widgets_init’, create_function(”, ‘return register_widget(“BHRRSubpagesWidget”);’));
Happy to share the entire source file if needed. Just need a hand with this folks. It’s affecting my wife’s canine rescue website and I would like to get out of the doghouse! 🙂
Sean.
Tried updating the plugin – no longer supported. Tried modifying according to some examples I saw but I think I screwed them up fairly spectacularly.
I have searched and tried – I am just simply not proficient with php. Many thanks!
Sean Boers is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.