• Marcello

    (@marcellobiglia)


    Hi
    I’m using widget-logic plugin with WordPress 4.2.2.

    I read that there’s no test against this wordpress version and I get warnings about use of deprecated functions: register_sidebar_widget and register_widget_control.

    Could this situation be critical?

    There will be an update of plugin in order to resolve this issue?

    I am developing a new site and I’m wondering if widget-logic it’s a good choice and if it will be maintained in the future.

    Tnx

    Marcello

    https://wordpress.org/plugins/widget-logic/

Viewing 3 replies - 1 through 3 (of 3 total)
  • emilysparkle

    (@emilysparkle)

    i am also wondering about this… i’m getting a bunch of errors on my site and they all seem to have to do with widget-logic. i’m using wordpress 4.4.2.

    Parse error: syntax error, unexpected '=' in /wp-content/plugins/widget-logic/widget_logic.php(286) : eval()'d code on line 1
    
    Parse error: syntax error, unexpected '=' in /wp-content/plugins/widget-logic/widget_logic.php(286) : eval()'d code on line 1
    
    Parse error: syntax error, unexpected '=' in /wp-content/plugins/widget-logic/widget_logic.php(286) : eval()'d code on line 1
    
    Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
    
    __construct()
    
    instead. in /wp-includes/functions.php on line 3624
    
    Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
    
    __construct()
    
    instead. in /wp-includes/functions.php on line 3624
    
    Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
    
    __construct()
    
    instead. in /wp-includes/functions.php on line 3624
    
    Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
    
    __construct()
    
    instead. in /wp-includes/functions.php on line 3624
    
    Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
    
    __construct()
    
    instead. in /wp-includes/functions.php on line 3624
    
    Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
    
    __construct()
    
    instead. in /wp-includes/functions.php on line 3624
    
    Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
    
    __construct()
    
    instead. in /wp-includes/functions.php on line 3624
    
    Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
    
    __construct()
    
    instead. in /wp-includes/functions.php on line 3624
    
    Parse error: syntax error, unexpected '=' in /wp-content/plugins/widget-logic/widget_logic.php(286) : eval()'d code on line 1
    
    Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
    
    __construct()
    
    instead. in /wp-includes/functions.php on line 3624
    
    Parse error: syntax error, unexpected '=' in /wp-content/plugins/widget-logic/widget_logic.php(286) : eval()'d code on line 1
    
    Parse error: syntax error, unexpected '=' in /wp-content/plugins/widget-logic/widget_logic.php(286) : eval()'d code on line 1
    
    Notice: get_the_excerpt was called with an argument that is deprecated since version 2.3 with no alternative available. in /wp-includes/functions.php on line 3739
    
    Notice: Undefined offset: -1 in /wp-includes/post-template.php on line 268
    
    Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method allow_php_in_posts::shortcode_advanced() should not be called statically in /wp-includes/plugin.php on line 235
    
    Strict Standards: Non-static method allow_php_in_posts::option_get() should not be called statically in /wp-content/plugins/allow-php-in-posts-and-pages/allowphp.php on line 396
    
    Notice: get_settings is deprecated since version 2.1! Use get_option() instead. in /wp-includes/functions.php on line 3573
    
    Parse error: syntax error, unexpected '=' in /wp-content/plugins/widget-logic/widget_logic.php(286) : eval()'d code on line 1
    emilysparkle

    (@emilysparkle)

    hi again. my host is claiming widget-logic is causing resources spikes on my site…. below are the logs

    +———–+———–+—-+—-+—-+—+—-+—-+—+—+—+——+——+—–+——+——+——+—+—–+—–+—–+—–+—–+
    | From | To |aCPU|mCPU|lCPU|aIO|mIO |lIO |aEP|mEP|lEP|aVMem |mVMem |lVMem|aPMem |mPMem |lPMem |EPf|VMemF|PMemF|aIOPS|mIOPS|lIOPS|
    +———–+———–+—-+—-+—-+—+—-+—-+—+—+—+——+——+—–+——+——+——+—+—–+—–+—–+—–+—–+
    |03-24 04:00|03-24 05:00| 0 | 5 | 9 | 2 |804 |3072| 0 | 3 | 20|59.3M |187.2M| 1.0G|63.9M |191.2M|256.0M| 0 | 0 | 0 | 0 | 22 | 1024|
    |03-24 05:00|03-24 06:00| 0 | 4 | 9 | 0 | 72 |3072| 0 | 2 | 20|68.4M |187.2M| 1.0G|71.0M |182.8M|256.0M| 0 | 0 | 0 | 0 | 5 | 1024|
    |03-24 06:00|03-24 07:00| 0 | 8 | 9 | 62|3072|3072| 0 | 13| 20|68.6M |280.8M| 1.0G|71.9M |256.0M|256.0M| 0 | 0 | 5 | 4 | 281 | 1024|
    |03-24 07:00|03-24 08:00| 0 | 8 | 9 | 29|2011|3072| 0 | 3 | 20|106.1M|279.3M| 1.0G|107.9M|255.0M|256.0M| 0 | 0 | 0 | 2 | 218 | 1024|
    |03-24 08:00|03-24 09:00| 0 | 8 | 9 | 74|2694|3072| 0 | 5 | 20|126.7M|332.2M| 1.0G|125.0M|256.0M|256.0M| 0 | 0 | 2 | 5 | 282 | 1024|
    |03-24 09:00|03-24 10:00| 0 | 8 | 9 | 70|2854|3072| 0 | 12| 20|122.1M|292.0M| 1.0G|127.2M|256.0M|256.0M| 0 | 0 | 3 | 5 | 336 | 1024|
    |03-24 10:00|03-24 11:00| 1 | 9 | 9 |269|3072|3072| 0 | 9 | 20|161.7M|293.3M| 1.0G|157.0M|256.0M|256.0M| 0 | 0 | 23 | 24 | 423 | 1024|
    |03-24 11:00|03-24 12:00| 0 | 8 | 9 | 51|2260|3072| 0 | 6 | 20|150.3M|290.5M| 1.0G|144.6M|256.0M|256.0M| 0 | 0 | 1 | 4 | 218 | 1024|
    |03-24 12:00|03-24 13:00| 0 | 9 | 9 | 6 |999 |3072| 0 | 19| 20|117.8M|315.2M| 1.0G|117.5M|254.1M|256.0M| 0 | 0 | 0 | 0 | 89 | 1024|
    |03-24 13:00|03-24 14:00| 0 | 9 | 9 | 7 |1386|3072| 0 | 4 | 20|103.2M|271.4M| 1.0G|102.4M|248.9M|256.0M| 0 | 0 | 0 | 0 | 123 | 1024|

    There were CPU and I/O wait limits spikes

    Here is information from your error_log file located under your public_html/ folder

    [24-Mar-2016 19:35:37 UTC] PHP Parse error: syntax error, unexpected ‘=’ in /home/public_html/wp-content/plugins/widget-logic/widget_logic.php(286) : eval()’d code on line 1
    [24-Mar-2016 19:35:37 UTC] PHP Parse error: syntax error, unexpected ‘=’ in /home/public_html/wp-content/plugins/widget-logic/widget_logic.php(286) : eval()’d code on line 1
    [24-Mar-2016 19:35:37 UTC] PHP Parse error: syntax error, unexpected ‘=’ in /home/public_html/wp-content/plugins/widget-logic/widget_logic.php(286) : eval()’d code on line 1
    [24-Mar-2016 19:35:37 UTC] PHP Parse error: syntax error, unexpected ‘=’ in /home/public_html/wp-content/plugins/widget-logic/widget_logic.php(286) : eval()’d code on line 1
    [24-Mar-2016 19:35:37 UTC] PHP Parse error: syntax error, unexpected ‘=’ in /home/public_html/wp-content/plugins/widget-logic/widget_logic.php(286) : eval()’d code on line 1

    Hi Everyone,

    If you are looking for plugin alternative you might want to check : https://wordpress.org/plugins/widget-options/ . Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Deprecated functions and wp 4.2.2 compatibility’ is closed to new replies.