• I was editing the widgets section for my website when I received this 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?Debugging in WordPress?for more information. (This message was added in version 5.8.0.) in?/home/drloanle/public_html/wp-includes/functions.php?on line?6031″ I don’t know where to edit them. Help me.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Alor UX

    (@jerrymayalor555)

    Hi @drloanle,

    I understand the frustration you’re facing. It seems like there might be a conflict between the wp-editor script and the new widget editor.

    Note: Please make sure to have the latest backup of your website before modifying your theme’s file.

    To resolve this, I would like to share a PHP code that will make your widget page work again. This code will revert to the old widget editor, but you can still manage it. I have tried this before, and it works on my end. Just follow the steps below:

    • Go to the WordPress Dashboard.
    • Go to Appearance > Theme File Editor.
    • Edit your functions.php file.
    • Copy and paste the code in the functions.php file.
    // deactivate new block editor
    function phi_theme_support() {
        remove_theme_support( 'widgets-block-editor' );
    }
    add_action( 'after_setup_theme', 'phi_theme_support' );
    • Click the Update file.
    • Now refresh your admin page and go to Appearance > Widgets.
    • You should be able to access this page.

    Recommendation: Using a child theme for your website is a great help. Please try the following suggestion and let me know how it goes.

    Warm regards,

    Jerry

Viewing 1 replies (of 1 total)
  • The topic ‘error when using widgets’ is closed to new replies.