• This looks like WordPress error itself but it is come from hook that this plugin added and being called by WordPress. Disable this plugin and error (notice) disappears.

    Error details:

    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 <a>Debugging in WordPress</a> for more information. (This message was added in version 5.8.0.) in wp-includes\functions.php on line 6033

    1. {main}( )
    2. require( ‘wp-admin\widgets-form-blocks.php )
    3. require_once( ‘wp-admin\admin-header.php )
    4. do_action( $hook_name = ‘admin_head‘ )
    5. WP_Hook->do_action( $args = [0 => ”] )
    6. WP_Hook->apply_filters( $value = ”, $args = [0 => ”] )
    7. wp_check_widget_editor_deps( ” )
    8. _doing_it_wrong( $function_name = ‘wp_enqueue_script()’, $message = ‘”wp-editor” script should not be enqueued together with the new widgets editor (wp-edit-widgets or wp-customize-widgets).’, $version = ‘5.8.0’ )
    9. wp_trigger_error( $function_name = ”, $message = ‘Function wp_enqueue_script() was called <strong>incorrectly</strong>. “wp-editor” script should not be enqueued together with the new widgets editor (wp-edit-widgets or wp-customize-widgets). Please see <a href=”https://www.ads-software.com/documentation/article/debugging-in-wordpress/”>Debugging in WordPress</a> for more information. (This message was added in version 5.8.0.)’, $error_level = ??? )
    10. trigger_error( $message = ‘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 <a>Debugging in WordPress</a> for more information. (This message was added in version 5.8.0.)’, $error_level = 1024 )

    Currently testing with..
    PHP 8.1
    WordPress 6.5-alpha-57159

    Error occur since WordPress 5.8.1.

    • This topic was modified 10 months, 3 weeks ago by vee.
  • The topic ‘Notice: Function wp_enqueue_script() was called incorrectly.’ is closed to new replies.