WPIntell

Source evidence

PHP Deprecated code

Christmas Countdown Widget 路 support 路 2020-12-07T15:36:00+00:00

complaintsentiment
mediumseverity
0.8relevance
4replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

4 / 27 rows with source links

14.8% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

23 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Malae unresolved
Hello, The following Deprecated PHP thrown in PHP 7.4. Can you please fix them. PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; cw_axmascount has a deprecated constructor in /wp-content/plugins/santas-christmas-countdown/xmascount.php on line 68 PHP Deprecated: Function create_function() is deprecated in /wp-content/plugins/santas-christmas-countdown/xmascount.php on line 111 PHP Deprecated: The called constructor method for WP_Widget in cw_axmascount is <strong>deprecated</strong> since version 4.3.0! Use <code>__construct()</code> instead. in /wp-includes/functions.php on line 4870 The deprecated PHP was flooding the wp-debug.log file and it grew to > 1 MB in a few days. I looked at the deprecated code and found three lines that need updating, after which. the plugin is now OK. If anybody is interested I will be happy to share the new code. I have been using this plugin, I would be interested in the updated code. @ alicewarcu I hope this will fix your problem, but take no responsibility for any issues that may arise. Please replace the deprecated lines, as shown below: Line 68 function cw_axmascount() is deprecated and should be replaced with: class cw_axmascount extends WP_Widget { function __construct() Line 111 add_action( 'widgets_init', create_function('', 'return register_widget("cw_axmascount");') ); is deprecated and should be replaced with: add_action( 'widgets_init', function(){return register_widget("cw_axmascount");}); Thank you 馃檪

Comments

4 shown
Malae 2020-12-09T05:42:00+00:00

The deprecated PHP was flooding the wp-debug.log file and it grew to > 1 MB in a few days. I looked at the deprecated code and found three lines that need updating, after which. the plugin is now OK. If anybody is interested I will be happy to share the new code.

alicewarcup 2021-02-05T17:36:00+00:00

I have been using this plugin, I would be interested in the updated code.

Malae 2021-02-06T08:26:00+00:00

@ alicewarcu I hope this will fix your problem, but take no responsibility for any issues that may arise. Please replace the deprecated lines, as shown below: Line 68 function cw_axmascount() is deprecated and should be replaced with: class cw_axmascount extends WP_Widget { function __construct() Line 111 add_action( 'widgets_init', create_function('', 'return register_widget("cw_axmascount");') ); is deprecated and should be replaced with: add_action( 'widgets_init', function(){return register_widget("cw_axmascount");});

alicewarcup 2021-02-23T16:46:00+00:00

Thank you 馃檪