• Resolved onetrev

    (@onetrev)


    If you have Tagembed activated and are enabling widgets in your theme then you get the following error message on the Widgets screen in the WP admin:

    Notice: 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)

    I’ve seen a lot of plugins (Yoast SEO, Gravity Forms, etc) have to fix this since WP 5.8 when this change was made. Hopefully you can implement the same fix.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Tagembed

    (@tagembed)

    Hello @onetrev ,

    Thanks for sharing your feedback with us.

    Could you please confirm that you are using 4.1 version of tagembed plugin.

    Regards,

    Emma

    From Tagembed : Embed Instagram feed, facebook feed, Google Reviews and Many More.

    Thread Starter onetrev

    (@onetrev)

    Correct, Version 4.1. WP 6.1. Of course to see the Notice you have to have debug enabled in your config file. ??

    define( 'WP_DEBUG', true );

    Plugin Author Tagembed

    (@tagembed)

    Hello @onetrev ,

    You are always so kind to share great feedback but we are not able to find this error while debug is enabled.

    It seems, that issue occurred 2 days ago when API server was down for some time.

    Is it still Showing ?

    Could you please schedule a call with us. We will not take much time of yours.

    https://calendly.com/tagembed/15min

    Regards,

    Gaurav Sharma

    from tagembed : Embed Instagram Feed, Facebook Feed, Google Reviews & Many More.

    • This reply was modified 2 years, 2 months ago by Tagembed. Reason: Added Calendly URL
    • This reply was modified 2 years, 2 months ago by Tagembed.
    Thread Starter onetrev

    (@onetrev)

    Hi Gaurav,

    The error is still occuring. Before we schedule a call to demo this issue I should have explained this error occurs only if the theme has widgitized areas registered. So if you do something like this you should be able to replicate the bug.

    add_action( 'widgets_init', 'register_sidebars' );

    function register_sidebars()
    {
    ? register_sidebar(array(
    ? ? 'id' => 'footer-area',
    ? ? 'name' => 'Footer Area',
    ? ? 'description' => 'Website footer area.',
    ? ? 'before_widget' => '<div id="%1$s" class="widget ?%2$s">',
    ? ? 'after_widget' => '</div>',
    ? ? 'before_title' => '<h4 class="widgettitle">',
    ? ? 'after_title' => '</h4>',
    ? ));
    }
    Plugin Author Tagembed

    (@tagembed)

    Hello @onetrev ,

    Thank you so much. We are able to find the error under Appearance >> Widgets section.

    Working on it. Will update the upcoming version accordingly.

    Regards,

    Gaurav Sharma

    from tagembed : Embed Instagram Feed, Facebook Feed & Many More

    Plugin Author Tagembed

    (@tagembed)

    Hello @onetrev ,

    The issue has been fixed. Please update to the latest version of the plugin.

    Thanks,

    Gaurav Sharma

    from tagembed : Embed Facebook Feed, Instagram Feed, Google Reviews & Many More

    Thread Starter onetrev

    (@onetrev)

    Thank you. Yes, it’s fixed perfectly. Cheers.

    Plugin Author Tagembed

    (@tagembed)

    Hello @onetrev ,

    We are happy to assist you ?? ??

    Thanks,

    Gaurav Sharma

    from tagembed : Embed Youtube Channel, Instagram Slider, RSS Feed & Many More

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Generates error if using widgets in your theme’ is closed to new replies.