Generates error if using widgets in your theme
-
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.
-
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.
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 );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.
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>', )); }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
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
Thank you. Yes, it’s fixed perfectly. Cheers.
Hello @onetrev ,
We are happy to assist you 🙂 🙂
Thanks,
Gaurav Sharma
from tagembed : Embed Youtube Channel, Instagram Slider, RSS Feed & Many More
The topic ‘Generates error if using widgets in your theme’ is closed to new replies.