Title: [Plugin: Network Latest Posts] PHP debug notice
Last modified: August 20, 2016

---

# [Plugin: Network Latest Posts] PHP debug notice

 *  Resolved [ihavetoomany](https://wordpress.org/support/users/ihavetoomany/)
 * (@ihavetoomany)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-network-latest-posts-php-debug-notice/)
 * Someting makes my WP throw this message when I turn on debug mode:
 * Notice: wp_register_style was called incorrectly. Scripts and styles should not
   be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts,
   or init hooks. Please see Debugging in WordPress for more information. (This 
   message was added in version 3.3.)…/wp-includes/functions.php on line 2758
 * 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 init hooks. Please see Debugging in WordPress for more information. (This 
   message was added in version 3.3.) in …/wp-includes/functions.php on line 2758
 * If deactivate your plug it goes away…
 * The plughin works fine thou…I just wanted you to know…
 * [http://wordpress.org/extend/plugins/network-latest-posts/](http://wordpress.org/extend/plugins/network-latest-posts/)

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

 *  Plugin Author [Jose Luis SAYAGO](https://wordpress.org/support/users/iluminatus/)
 * (@iluminatus)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-network-latest-posts-php-debug-notice/#post-3065505)
 * Hello, thanks for your feedback. I was already aware of this because someone 
   had notified me about it some days ago by email. I’m a little bit busy so I couldn’t
   release a fix before. v3.1.4 should fix this.
 * In case someone is wondering how to fix this notice it’s actually pretty simple
   though.. WordPress is really careful with its loading hook hierarchy, NLPosts
   register styles to handle default or customized css files within the init function
   but also inside some other functions.
 * If we call this hook before `wp_enqueue_scripts`, `admin_enqueue_scripts` or `
   init` you get this kind of Notice.
 * NLPosts was being initialized using:
 * > add_action(“plugins_loaded”,”network_latest_posts_init”);
 * I changed it by this:
 * > add_action(“wp_enqueue_scripts”,”network_latest_posts_init”);
 * That’s it,
    Cheers.
 *  Thread Starter [ihavetoomany](https://wordpress.org/support/users/ihavetoomany/)
 * (@ihavetoomany)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-network-latest-posts-php-debug-notice/#post-3065515)
 * …awsome…and a 5 star rating for you!

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

The topic ‘[Plugin: Network Latest Posts] PHP debug notice’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/network-latest-posts_61c601.svg)
 * [Network Latest Posts](https://wordpress.org/plugins/network-latest-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/network-latest-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/network-latest-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/network-latest-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/network-latest-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/network-latest-posts/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [ihavetoomany](https://wordpress.org/support/users/ihavetoomany/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-network-latest-posts-php-debug-notice/#post-3065515)
 * Status: resolved