PHP Depcreated functions & Warnings
-
In my local dev environment, I work with WP_DEBUG on and noticed this plugin has a couple issues that cause pages of PHP warnings to be displayed before any content is rendered. I use PHP 7.2 which is when create_function depcreation warning came up. Any chance you could push some updates to keep a clean dev environment?
Thanks!
( ! ) Deprecated: Function create_function() is deprecated in /srv/www/www.site.com/current/web/app/plugins/tickera-event-ticketing-system/includes/widgets/cart-widget.php on line 89
####To fix line 89 (Anonymous function?)
add_action( ‘widgets_init’, function() { return register_widget(“TC_Cart_Widget”); } );Deprecated: Function create_function() is deprecated in /srv/www/www.chqi.com/current/web/app/plugins/tickera-event-ticketing-system/includes/widgets/upcoming-events-widget.php on line 99
####To fix line 99 (Anonymous function?)
add_action( ‘widgets_init’, function() { return register_widget(“TC_Upcoming_Events_Widget”);; } );( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in /srv/www/www.site.com/current/web/app/plugins/tickera-event-ticketing-system/tickera.php on line 1269
####To fix line 1269
return count((array)$tc_gateway_active_plugins);
- The topic ‘PHP Depcreated functions & Warnings’ is closed to new replies.