Title: WP 5.8 PHP Notice: wp_enqueue_script() was called incorrectly
Last modified: October 4, 2021

---

# WP 5.8 PHP Notice: wp_enqueue_script() was called incorrectly

 *  Resolved [Carret](https://wordpress.org/support/users/carret/)
 * (@carret)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/wp-5-8-php-notice-wp_enqueue_script-was-called-incorrectly/)
 * Hello, you can see this notice in widgets:
 * PHP Notice: wp_enqueue_script() was called incorrectly. “wp-editor” script should
   not be enqueued together with the new widgets editor (wp-edit-widgets or wp-customize-
   widgets)
 * I have tried it with deactivating all the plugins except this one, WP v5.8.1.
    -  This topic was modified 4 years, 8 months ago by [Carret](https://wordpress.org/support/users/carret/).

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

 *  [Ketan Patel](https://wordpress.org/support/users/patelketan/)
 * (@patelketan)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/wp-5-8-php-notice-wp_enqueue_script-was-called-incorrectly/#post-14937793)
 * Hello,
 * We have checked our plugin in the local server but have not found any PHP notice.
 * Please share a screenshot of which place you are facing the issue.
 * Thanks,
 *  Thread Starter [Carret](https://wordpress.org/support/users/carret/)
 * (@carret)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/wp-5-8-php-notice-wp_enqueue_script-was-called-incorrectly/#post-14944171)
 * Screenshot: [https://imgur.com/a/lpHZyRt](https://imgur.com/a/lpHZyRt)
 *  [Riddhi Shukla](https://wordpress.org/support/users/ridhimashukla/)
 * (@ridhimashukla)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/wp-5-8-php-notice-wp_enqueue_script-was-called-incorrectly/#post-14946118)
 * Hi,
 * Can you try to deactivate our plugin and check still facing same issue or not.
 * Let me know after that.
 *  Thread Starter [Carret](https://wordpress.org/support/users/carret/)
 * (@carret)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/wp-5-8-php-notice-wp_enqueue_script-was-called-incorrectly/#post-14946776)
 * Hi,
    Yes I already did and have checked again. When I deactivate this plugin,
   and there are no more active ones, the error disappears. With this plugin deactivated
   and activating others, the error does not appear again.
 * The warning is caused by this line:
 * wp_register_script (‘spfaq-block-js’, SP_FAQ_URL.’assets/js/blocks.build.js’,
   array (‘ wp-blocks’, ‘wp-i18n’, ‘wp-element’, ‘wp-editor’, ‘wp-components’), 
   SP_FAQ_VERSION, true);
 * in sp-faq/includes/admin/supports/gutenberg-block.php
 * by containing ‘wp-editor’.
 *  [Ketan Patel](https://wordpress.org/support/users/patelketan/)
 * (@patelketan)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/wp-5-8-php-notice-wp_enqueue_script-was-called-incorrectly/#post-14964784)
 * Hello,
 * We have found this error and we will solve this issue next version.
 * Thanks,

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

The topic ‘WP 5.8 PHP Notice: wp_enqueue_script() was called incorrectly’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/sp-faq_b7d2d9.svg)
 * [WP responsive FAQ with category plugin](https://wordpress.org/plugins/sp-faq/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sp-faq/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sp-faq/)
 * [Active Topics](https://wordpress.org/support/plugin/sp-faq/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sp-faq/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sp-faq/reviews/)

## Tags

 * [block](https://wordpress.org/support/topic-tag/block/)
 * [widgets](https://wordpress.org/support/topic-tag/widgets/)

 * 5 replies
 * 3 participants
 * Last reply from: [Ketan Patel](https://wordpress.org/support/users/patelketan/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/wp-5-8-php-notice-wp_enqueue_script-was-called-incorrectly/#post-14964784)
 * Status: resolved