Title: PHP 8.3 warning &#8220;Function wp_enqueue_script() was called incorrectly.&#8221;
Last modified: July 2, 2024

---

# PHP 8.3 warning “Function wp_enqueue_script() was called incorrectly.”

 *  [Bjarne Oldrup](https://wordpress.org/support/users/oldrup/)
 * (@oldrup)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/php-8-3-warning-function-wp_enqueue_script-was-called-incorrectly/)
 * Hey!
 * Thank you for a great plugin. Impressive functionality.
 * I’m testing it with WP 6.6 RC2 and PHP 8.3, and when Ajax Search Lite is enabled,
   and I open Dashboard > Appearance > Widgets, I get the following warning:
 *     ```wp-block-code
       Notice: Function 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). Please see Debugging in WordPress for more information. (This message was added in version 5.8.0.) in /home/sustain2/oldrup.net/wp-includes/functions.php on line 6085
       ```
   
 * Disabling Ajax Search Lite makes it go away.
 * WP_DEBUG needs to be enabled, and I’m using a classic theme, suppose that’s required
   too.
 * Is that something you can reproduce?
 * Btw the functionality appears fine. It’s just a backend notice, so not critical
   by any means.
    -  This topic was modified 1 year, 11 months ago by [Bjarne Oldrup](https://wordpress.org/support/users/oldrup/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-8-3-warning-function-wp_enqueue_script-was-called-incorrectly%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [wpdreams](https://wordpress.org/support/users/wpdreams/)
 * (@wpdreams)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/php-8-3-warning-function-wp_enqueue_script-was-called-incorrectly/#post-17866090)
 * Hi,
 * Thank you for letting me know Bjarne!
 * It’s a known issue, a wrong dependency is called on for the block editor script.
   It should not cause any issues. I have already fixed it on the Pro version, the
   Lite version 4.12.1 will include the fix too 🙂
 * All the best,
   Ernest

Viewing 1 replies (of 1 total)

The topic ‘PHP 8.3 warning “Function wp_enqueue_script() was called incorrectly.”’
is closed to new replies.

 * ![](https://ps.w.org/ajax-search-lite/assets/icon-256x256.png?rev=3192672)
 * [Ajax Search Lite - Live Search & Filter](https://wordpress.org/plugins/ajax-search-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ajax-search-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ajax-search-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/ajax-search-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ajax-search-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ajax-search-lite/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [wpdreams](https://wordpress.org/support/users/wpdreams/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/php-8-3-warning-function-wp_enqueue_script-was-called-incorrectly/#post-17866090)
 * Status: not resolved