Title: Throwing PHP Notice
Last modified: August 22, 2016

---

# Throwing PHP Notice

 *  [a022278](https://wordpress.org/support/users/a022278/)
 * (@a022278)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/throwing-php-notice/)
 * It appears that the load_resources() function in class.akismet-admin.php is throwing
   a PHP Notice:
 *     ```
       PHP Notice:  wp_enqueue_script was called <strong>incorrectly</strong>. Scripts and styles should not be registered or enqueued until the <code>wp_enqueue_scripts</code>, <code>admin_enqueue_scripts</code>, or <code>login_enqueue_scripts</code> hooks.
       PHP Notice:  wp_enqueue_style was called <strong>incorrectly</strong>. Scripts and styles should not be registered or enqueued until the <code>wp_enqueue_scripts</code>, <code>admin_enqueue_scripts</code>, or <code>login_enqueue_scripts</code> hooks.
       ```
   
 * [https://wordpress.org/plugins/akismet/](https://wordpress.org/plugins/akismet/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Christopher Finke](https://wordpress.org/support/users/cfinke/)
 * (@cfinke)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/throwing-php-notice/#post-5448663)
 * Which version of WordPress are you running? `load_resources()` is hooked to `
   admin_enqueue_scripts`, so it seems strange that WP would complain about `admin_enqueue_scripts`
   not having run yet.

Viewing 1 replies (of 1 total)

The topic ‘Throwing PHP Notice’ is closed to new replies.

 * ![](https://ps.w.org/akismet/assets/icon-256x256.png?rev=2818463)
 * [Akismet Anti-spam: Spam Protection](https://wordpress.org/plugins/akismet/)
 * [Support Threads](https://wordpress.org/support/plugin/akismet/)
 * [Active Topics](https://wordpress.org/support/plugin/akismet/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/akismet/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/akismet/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Christopher Finke](https://wordpress.org/support/users/cfinke/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/throwing-php-notice/#post-5448663)
 * Status: not resolved