Title: PHP Deprecated
Last modified: February 18, 2018

---

# PHP Deprecated

 *  Resolved [webentwicklerin](https://wordpress.org/support/users/gbyat/)
 * (@gbyat)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/php-deprecated-5/)
 * 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' );	
       });
       ```
   
    -  This topic was modified 8 years, 3 months ago by [webentwicklerin](https://wordpress.org/support/users/gbyat/).

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [SooBahkDo](https://wordpress.org/support/users/soobahkdo/)
 * (@soobahkdo)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/php-deprecated-5/#post-10074529)
 * 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
 *  [Darren Ethier (nerrad)](https://wordpress.org/support/users/nerrad/)
 * (@nerrad)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/php-deprecated-5/#post-10157111)
 * Thanks for reporting this. I’ve created a [github issue](https://github.com/roughsmoothengine/organize-series/issues/38)
   and the fix will be in the next release (where I will also be bumping up the 
   required version to PHP5.6+).
 *  [Darren Ethier (nerrad)](https://wordpress.org/support/users/nerrad/)
 * (@nerrad)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/php-deprecated-5/#post-10159606)
 * This should be fixed in the latest version (2.5.10)
 *  [SooBahkDo](https://wordpress.org/support/users/soobahkdo/)
 * (@soobahkdo)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/php-deprecated-5/#post-10162076)
 * 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](https://codex.wordpress.org/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](https://codex.wordpress.org/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](https://codex.wordpress.org/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](https://codex.wordpress.org/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](https://codex.wordpress.org/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](https://codex.wordpress.org/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](https://codex.wordpress.org/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](https://codex.wordpress.org/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](https://codex.wordpress.org/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
 *  [Darren Ethier (nerrad)](https://wordpress.org/support/users/nerrad/)
 * (@nerrad)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/php-deprecated-5/#post-10162309)
 * 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](https://organizeseries.com/contact/)(
   Select “add-on bug report” from the dropdown options). Thanks.
 *  [SooBahkDo](https://wordpress.org/support/users/soobahkdo/)
 * (@soobahkdo)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/php-deprecated-5/#post-10162344)
 * 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.

 * ![](https://ps.w.org/organize-series/assets/icon-256x256.png?rev=3386599)
 * [Issues and Series for Newspapers, Magazines, Publishers, Writers](https://wordpress.org/plugins/organize-series/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/organize-series/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/organize-series/)
 * [Active Topics](https://wordpress.org/support/plugin/organize-series/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/organize-series/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/organize-series/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [SooBahkDo](https://wordpress.org/support/users/soobahkdo/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/php-deprecated-5/#post-10162344)
 * Status: resolved