WidgetOptions / widget-options

Additional Widget options for better widget control. Available on
https://widget-options.com/
GNU General Public License v3.0
34 stars 16 forks source link

Catchable fatal error #30

Closed DamirPecnik closed 7 years ago

DamirPecnik commented 7 years ago

HI

I am running Gantry 5 and RocketTheme Theme and when i use Widget Options i get this in the latest version!

Catchable fatal error: Object of class Closure could not be converted to string in /home/xxxx/public_html/wp-content/plugins/widget-options/includes/widgets/extras.php on line 133

Was working fine some time ago...

regards

phpbits commented 7 years ago

Hi @DamirPecnik ,

Would you mind changing the file with this one : https://github.com/phpbits/widget-options/blob/develop/includes/widgets/extras.php and add the code below to your functions.php and let me know how it goes.

add_filter( 'widgetopts_is_active_sidebar_support', function( $a ){
     return false;
 } );

Cheers, Jeffrey

phpbits commented 7 years ago

@DamirPecnik I'll assume that the filter fixes the issue since I haven't get any response. Thanks!

Cheers, Jeffrey

DamirPecnik commented 7 years ago

Will see if it works next week and get back to you.

DamirPecnik commented 6 years ago

This is working! Any idea why that code is needed, can you add that in plugin strait away so there is no need to edit the functions file?

phpbits commented 6 years ago

@DamirPecnik Sounds perfect! You'll be needing to add this code if only there's a conflict with the theme which is really minimal. Let me know if in any case you encounter any other issues. Cheers!

attaakbar commented 6 years ago

@phpbits Hi dude, I was facing this problem too and it is resolved now. BUT now the problem is I am using woocommerce price, attributes filter widgets on sidebar that I want to show only on shop page. I selected show on checked pages and check home, then products then product-categories (Taxonomy) BUT no difference. PLEASE HELP. Also I want to know that you told us to change the original extras.php file, will not this be override on update?