Support » Plugin: Organize Series » PHP Deprecated

  • Resolved webentwicklerin

    (@gbyat)



    please replace

    Function create_function() is deprecated in /path/to/wordpress/wp-content/plugins/organize-series/orgSeries-widgets.php on line 219

    Function create_function() is deprecated in /path/to/wordpress/wp-content/plugins/organize-series/orgSeries-widgets.php on line 220

    please replace

    add_action('widgets_init', create_function('', 'return register_widget("orgSeries_widget_latestseries");'));
    add_action('widgets_init', create_function('', 'return register_widget("orgSeries_widget_seriestoc");'));

    width

    add_action( 'widgets_init', function(){
    	register_widget( 'orgSeries_widget_latestseries' );
    	register_widget( 'orgSeries_widget_seriestoc' );	
    });
Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello,

    Our logs are filling with deprecated notices as well.

    [14-Mar-2018 05:32:35 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; os_Shortcodes has a deprecated constructor in /home/soobabiz/public_html/wp-content/plugins/organize-series-shortcodes/os-shortcodes-main.php on line 9

    Thanks for reporting this. I’ve created a github issue and the fix will be in the next release (where I will also be bumping up the required version to PHP5.6+).

    This should be fixed in the latest version (2.5.10)

    Hello,

    I installed v2.5.10 and am now seeing this message filling our log files.
    I am not sure if they all apply to this plugin.
    Thought you’d want to know.

    Thanks for a great plugin!
    Phil D

    [09-Apr-2018 15:12:36 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; os_Shortcodes has a deprecated constructor in /home/soobabiz/public_html/wp-content/plugins/organize-series-shortcodes/os-shortcodes-main.php on line 9

    [09-Apr-2018 15:12:36 UTC] PHP Notice: wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /home/soobabiz/public_html/wp-includes/functions.php on line 4147

    [09-Apr-2018 15:12:36 UTC] PHP Notice: wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /home/soobabiz/public_html/wp-includes/functions.php on line 4147

    [09-Apr-2018 15:12:36 UTC] PHP Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /home/soobabiz/public_html/wp-includes/functions.php on line 4147

    [09-Apr-2018 15:12:36 UTC] PHP Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /home/soobabiz/public_html/wp-includes/functions.php on line 4147

    [09-Apr-2018 15:12:36 UTC] PHP Notice: wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /home/soobabiz/public_html/wp-includes/functions.php on line 4147

    [09-Apr-2018 15:12:36 UTC] PHP Notice: wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /home/soobabiz/public_html/wp-includes/functions.php on line 4147

    [09-Apr-2018 15:12:36 UTC] PHP Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /home/soobabiz/public_html/wp-includes/functions.php on line 4147

    [09-Apr-2018 15:12:36 UTC] PHP Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /home/soobabiz/public_html/wp-includes/functions.php on line 4147

    [09-Apr-2018 15:12:36 UTC] PHP Notice: is_search was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/soobabiz/public_html/wp-includes/functions.php on line 4147

    Please create new threads for new issues. I had already marked this resolved for the reported issues but now you’ve added a new issue. Also, the warnings seem to indicate this does not have anything to do with Organize Series core but instead with the shortcodes add-on for Organize Series, so it probably doesn’t fit in this forum. You can report bugs for add-ons here (Select “add-on bug report” from the dropdown options). Thanks.

    Thanks for your reply. Proceeding as instructed.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘PHP Deprecated’ is closed to new replies.