Title: PHP Error: wp-includes/functions.php on line 5768
Last modified: March 4, 2022

---

# PHP Error: wp-includes/functions.php on line 5768

 *  Resolved [dennistennis](https://wordpress.org/support/users/dennistennis/)
 * (@dennistennis)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-error-wp-includes-functions-php-on-line-5768/)
 * Hi There,
 * When editing widgets – Appearance -> Widgets- we get the error shown on top of
   the screen:
 * 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). Please see Debugging in WordPress for more information. (This message
   was added in version 5.8.0.) in <path>/wp-includes/functions.php on line 5768
 * Plugin on/off analysis showed that this plugin is causing this message.
 * Thanks for any help.
 * Dennis

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

 *  Plugin Author [bradvin](https://wordpress.org/support/users/bradvin/)
 * (@bradvin)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-error-wp-includes-functions-php-on-line-5768/#post-15430964)
 * hi Dennis,
 * Thanks for reporting this. I have reproduced and fixed, and will release in the
   next update.
 *  [cheekymate06](https://wordpress.org/support/users/cheekymate06/)
 * (@cheekymate06)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-error-wp-includes-functions-php-on-line-5768/#post-15437048)
 * Just letting you know that I got patchstack to update however they did say rhe
   below for future reference
 *  “Hi, their database entries have been updated. Please inform them that they 
   are not using the WordPress SVN correctly. They need to update the /trunk/ folder
   on the SVN as well per WordPress SVN’s documentation.”

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

The topic ‘PHP Error: wp-includes/functions.php on line 5768’ is closed to new replies.

 * ![](https://ps.w.org/foogallery/assets/icon-256x256.gif?rev=2602542)
 * [Photo Gallery by FooGallery : Responsive Image Gallery, Masonry Gallery & Carousel](https://wordpress.org/plugins/foogallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/foogallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/foogallery/)
 * [Active Topics](https://wordpress.org/support/plugin/foogallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/foogallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/foogallery/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [cheekymate06](https://wordpress.org/support/users/cheekymate06/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/php-error-wp-includes-functions-php-on-line-5768/#post-15437048)
 * Status: resolved