Conversation
supportI just updated the plugin to version 1.0.7 and it caused a critical error on my website. I am running PHP 7.4.13 on WordPress 5.5.3. I currently have the plugin deactivated. Reactivating the plugin results in the critical error again. Please address this issue as soon as possible. Thank you. Version 1.0.7 | By Sharaz Shahid | View details This plugin failed to load properly and is paused during recovery mode. An error of type E_ERROR was caused in line 53 of the file /chroot/home/xxxx/xxxx/public_html/wp-content/plugins/code-widget/class-code-widget.php. Error message: Uncaught Error: Call to undefined method Code_Widget::deactivate_feedback() in /chroot/home/xxxx/xxxx/public_html/wp-content/plugins/code-widget/class-code-widget.php:53 Stack trace: #0 /chroot/home/xxxx/xxxx/public_html/wp-includes/class-wp-widget-factory.php(61): Code_Widget->__construct() #1 /chroot/home/xxxx/xxxx/public_html/wp-includes/widgets.php(115): WP_Widget_Factory->register() #2 /chroot/home/xxxx/xxxx/public_html/wp-content/plugins/code-widget/class-code-widget.php(380): register_widget() #3 /chroot/home/xxxx/xxxx/public_html/wp-includes/class-wp-hook.php(287): register_code_widget() #4 /chroot/home/xxxx/xxxx/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters() #5 /chroot/home/xxxx/xxxx/public_html/wp-includes/plugin.php(478): WP_Hook->do_action() #6 /chroot/home/xxxx/xxxx/public_html/wp-includes/widgets.php(1773): do_action() #7 /chroot/home/xxxx/xxxx/public_html/wp-includes/class-wp-hook.php(287)
I get this error: Fatal error: Uncaught Error: Call to undefined method Code_Widget::deactivate_feedback() in ****public_html/haarv/wp-content/plugins/code-widget/class-code-widget.php:53 Stack trace: #0 ****public_html/haarv/wp-includes/class-wp-widget-factory.php(61): Code_Widget->__construct() #1 ****public_html/haarv/wp-includes/widgets.php(115): WP_Widget_Factory->register(‘Code_Widget’) #2 ****public_html/haarv/wp-content/plugins/code-widget/class-code-widget.php(380): register_widget(‘Code_Widget’) #3 ****public_html/haarv/wp-includes/class-wp-hook.php(287): register_code_widget(”) #4 ****public_html/haarv/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #5 ****public_html/haarv/wp-includes/plugin.php(478): WP_Hook->do_action(A in ****public_html/haarv/wp-content/plugins/code-widget/class-code-widget.php on line 53
Same here
Same here, on my client’s site (adventuresofemptynesters.com). This reply was modified 5 years, 5 months ago by Caitlin Shannon .
Same error on my end as well. It looks like a typo issue during last change https://plugins.trac.wordpress.org/changeset/2430431/code-widget Widget constructor is calling public function __construct() { 53 $this->deactivate_feedback(); But the newly defined method is called “public function deactivation_feedback() ” PHP Fatal error: Uncaught Error: Call to undefined method Code_Widget::deactivate_feedback() in /data/s113/dom17620/dom17620/wp-content/plugins/code-widget/class-code-widget.php:53 Stack trace: #0 /data/s113/dom17620/wordpress-versions/5.1.7/wp-includes/class-wp-widget-factory.php(100): Code_Widget->__construct() #1 /data/s113/dom17620/wordpress-versions/5.1.7/wp-includes/widgets.php(115): WP_Widget_Factory->register(‘Code_Widget’) I This reply was modified 5 years, 5 months ago by oianculescu .
same problem. i revert to version 1.0.6 from my backup.
I also reverted. I tried to contact the author of the plug-in. No response. I tried to reach him via Twitter, also, without response. I’m guessing this plug-in is destined to be removed from my site.
REDITED: Heads up, if: like me, you reinstalled the old version, then turn off the automatic plugin updater (thoughtfully) provided by WordPress. Just had to really dig that last update out from the innards of my local development setup. Hate to think what it would have looked like on a live site, (continued.) My pennies worth, .. looking for a fix because its quite a good plugin. My errors are as follows:- Fatal error: Uncaught Error: Call to undefined method Code_Widget::deactivate_feedback() in C:\Users\User\Local Sites\b92\app\public\wp-content\plugins\code-widget\class-code-widget.php on line 53 ( ! ) Error: Call to undefined method Code_Widget::deactivate_feedback() in C:\Users\User\Local Sites\b92\app\public\wp-content\plugins\code-widget\class-code-widget.php on line 53 Call Stack # Time Memory Function Location 1 0.0001 365736 {main}( ) …\index.php:0 2 0.0001 366016 require( ‘C:\Users\User\Local Sites\b92\app\public\wp-blog-header.php’ ) …\index.php:17 3 0.0001 366560 require_once( ‘C:\Users\User\Local Sites\b92\app\public\wp-load.php’ ) …\wp-blog-header.php:13 4 0.0002 367000 require_once( ‘C:\Users\User\Local Sites\b92\app\public\wp-config.php’ ) …\wp-load.php:37 5 0.0002 371688 require_once( ‘C:\Users\User\Local Sites\b92\app\public\wp-settings.php’ ) …\wp-config.php:77 6 0.2194 9076544 do_action( ) …\wp-settings.php:546 7 0.2194 9077560 WP_Hook->do_action( ) …\plugin.php:478 8 0.2194 9077560 WP_Hook->apply_filters( ) …\class-wp-hook.php:311 9 0.2356 9089568 wp_widgets_init( ) …\class-wp-hook.php:287 10 0.2384 9122296 do_action( ) …\widgets.php:1773 11 0.2384 9122672 WP_Hook->do_action( ) …\plugin.php:478 12 0.2384 9122672 WP_Hook->apply_filters( ) …\class-wp-hook.php:311 13 0.2384 9123800 register_code_widget( ) …\class-wp-hook.php:287 14 0.2384 9123800 register_widget( ) …\class-code-widget.php:380 15 0.2385 9123800 WP_Widget_Factory->register( ) …\widgets.php:115 16 0.2385 9123992 Code_Widget->__construct( ) …\class-wp-widget-factory.php:61 line 53 is the culprit .. Laters coders. This reply was modified 5 years, 5 months ago by MrsJessicaSimpson .
Line 53 is the culprit on mine, too. I unfortunately didn’t save the entire message, and I’m not going to crash my website again just to get it. But I do remember that it had this same part that MrsJessicaSimposon posted: Fatal error: Uncaught Error: Call to undefined method Code_Widget::deactivate_feedback() in C:\Users\User\Local Sites\b92\app\public\wp-content\plugins\code-widget\class-code-widget.php on line 53 ( ! ) Error: Call to undefined method Code_Widget::deactivate_feedback() in C:\Users\User\Local Sites\b92\app\public\wp-content\plugins\code-widget\class-code-widget.php on line 53 My problem is that it’s been some years since I built WP sites from scratch. I’m a lawyer these days. But my developer has disappeared, so I’m back to trying to maintain my site myself. And I’m not sure why the Code Widget is on my site, yet. Guess I better figure it out.
The last response from this developer appears to have been 3 months ago. Since it’s obvious to me that this plugin is probably no longer supported, I have dumped it and moved on to something else that is better supported.
That was exactly what I was thinking, midihead. What did you replace it with? Thanks.
I replaced it with the Insert PHP Code Snippet plugin ( https://wordpress.org/plugins/insert-php-code-snippet/ )
I’m seeing a new version (1.0.8) that came out last night, and it doesn’t appear to throw any errors on my site now that I’ve updated. So I think we’re good now!
Confirmed. The notes for this release specifically state that it fixed the incorrect call to deactivate_feedback(). I did a backup of my site, then updated. And it worked.
Hi all, Sorry for the late response. The issue already has been resolve in v 1.0.8. Please update to the latest version.
I get this error: Fatal error: Uncaught Error: Call to undefined method Code_Widget::deactivate_feedback() in ****public_html/haarv/wp-content/plugins/code-widget/class-code-widget.php:53 Stack trace: #0 ****public_html/haarv/wp-includes/class-wp-widget-factory.php(61): Code_Widget->__construct() #1 ****public_html/haarv/wp-includes/widgets.php(115): WP_Widget_Factory->register(‘Code_Widget’) #2 ****public_html/haarv/wp-content/plugins/code-widget/class-code-widget.php(380): register_widget(‘Code_Widget’) #3 ****public_html/haarv/wp-includes/class-wp-hook.php(287): register_code_widget(”) #4 ****public_html/haarv/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #5 ****public_html/haarv/wp-includes/plugin.php(478): WP_Hook->do_action(A in ****public_html/haarv/wp-content/plugins/code-widget/class-code-widget.php on line 53
Same here
Same here, on my client’s site (adventuresofemptynesters.com). This reply was modified 5 years, 5 months ago by Caitlin Shannon .
Same error on my end as well. It looks like a typo issue during last change https://plugins.trac.wordpress.org/changeset/2430431/code-widget Widget constructor is calling public function __construct() { 53 $this->deactivate_feedback(); But the newly defined method is called “public function deactivation_feedback() ” PHP Fatal error: Uncaught Error: Call to undefined method Code_Widget::deactivate_feedback() in /data/s113/dom17620/dom17620/wp-content/plugins/code-widget/class-code-widget.php:53 Stack trace: #0 /data/s113/dom17620/wordpress-versions/5.1.7/wp-includes/class-wp-widget-factory.php(100): Code_Widget->__construct() #1 /data/s113/dom17620/wordpress-versions/5.1.7/wp-includes/widgets.php(115): WP_Widget_Factory->register(‘Code_Widget’) I This reply was modified 5 years, 5 months ago by oianculescu .
same problem. i revert to version 1.0.6 from my backup.
I also reverted. I tried to contact the author of the plug-in. No response. I tried to reach him via Twitter, also, without response. I’m guessing this plug-in is destined to be removed from my site.
REDITED: Heads up, if: like me, you reinstalled the old version, then turn off the automatic plugin updater (thoughtfully) provided by WordPress. Just had to really dig that last update out from the innards of my local development setup. Hate to think what it would have looked like on a live site, (continued.) My pennies worth, .. looking for a fix because its quite a good plugin. My errors are as follows:- Fatal error: Uncaught Error: Call to undefined method Code_Widget::deactivate_feedback() in C:\Users\User\Local Sites\b92\app\public\wp-content\plugins\code-widget\class-code-widget.php on line 53 ( ! ) Error: Call to undefined method Code_Widget::deactivate_feedback() in C:\Users\User\Local Sites\b92\app\public\wp-content\plugins\code-widget\class-code-widget.php on line 53 Call Stack # Time Memory Function Location 1 0.0001 365736 {main}( ) …\index.php:0 2 0.0001 366016 require( ‘C:\Users\User\Local Sites\b92\app\public\wp-blog-header.php’ ) …\index.php:17 3 0.0001 366560 require_once( ‘C:\Users\User\Local Sites\b92\app\public\wp-load.php’ ) …\wp-blog-header.php:13 4 0.0002 367000 require_once( ‘C:\Users\User\Local Sites\b92\app\public\wp-config.php’ ) …\wp-load.php:37 5 0.0002 371688 require_once( ‘C:\Users\User\Local Sites\b92\app\public\wp-settings.php’ ) …\wp-config.php:77 6 0.2194 9076544 do_action( ) …\wp-settings.php:546 7 0.2194 9077560 WP_Hook->do_action( ) …\plugin.php:478 8 0.2194 9077560 WP_Hook->apply_filters( ) …\class-wp-hook.php:311 9 0.2356 9089568 wp_widgets_init( ) …\class-wp-hook.php:287 10 0.2384 9122296 do_action( ) …\widgets.php:1773 11 0.2384 9122672 WP_Hook->do_action( ) …\plugin.php:478 12 0.2384 9122672 WP_Hook->apply_filters( ) …\class-wp-hook.php:311 13 0.2384 9123800 register_code_widget( ) …\class-wp-hook.php:287 14 0.2384 9123800 register_widget( ) …\class-code-widget.php:380 15 0.2385 9123800 WP_Widget_Factory->register( ) …\widgets.php:115 16 0.2385 9123992 Code_Widget->__construct( ) …\class-wp-widget-factory.php:61 line 53 is the culprit .. Laters coders. This reply was modified 5 years, 5 months ago by MrsJessicaSimpson .
Line 53 is the culprit on mine, too. I unfortunately didn’t save the entire message, and I’m not going to crash my website again just to get it. But I do remember that it had this same part that MrsJessicaSimposon posted: Fatal error: Uncaught Error: Call to undefined method Code_Widget::deactivate_feedback() in C:\Users\User\Local Sites\b92\app\public\wp-content\plugins\code-widget\class-code-widget.php on line 53 ( ! ) Error: Call to undefined method Code_Widget::deactivate_feedback() in C:\Users\User\Local Sites\b92\app\public\wp-content\plugins\code-widget\class-code-widget.php on line 53 My problem is that it’s been some years since I built WP sites from scratch. I’m a lawyer these days. But my developer has disappeared, so I’m back to trying to maintain my site myself. And I’m not sure why the Code Widget is on my site, yet. Guess I better figure it out.
The last response from this developer appears to have been 3 months ago. Since it’s obvious to me that this plugin is probably no longer supported, I have dumped it and moved on to something else that is better supported.
That was exactly what I was thinking, midihead. What did you replace it with? Thanks.
I replaced it with the Insert PHP Code Snippet plugin ( https://wordpress.org/plugins/insert-php-code-snippet/ )
I’m seeing a new version (1.0.8) that came out last night, and it doesn’t appear to throw any errors on my site now that I’ve updated. So I think we’re good now!
Confirmed. The notes for this release specifically state that it fixed the incorrect call to deactivate_feedback(). I did a backup of my site, then updated. And it worked.
Hi all, Sorry for the late response. The issue already has been resolve in v 1.0.8. Please update to the latest version.