• Resolved Carret

    (@carret)


    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 3 years, 5 months ago by Carret.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Ketan Patel

    (@patelketan)

    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

    (@carret)

    Plugin Support Riddhi Shukla

    (@ridhimashukla)

    Hi,

    Can you try to deactivate our plugin and check still facing same issue or not.

    Let me know after that.

    Thread Starter Carret

    (@carret)

    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’.

    Plugin Contributor Ketan Patel

    (@patelketan)

    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.