calebyourneighborhub
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Fatal error: Cannot declare class MYCLASS Woocommerce SettingsOk, I have found a way around the problem: Go to
/yourwebsite/wp-content/plugins/hide-price-until-login-modified/includes/hide-price-until-login-class.php
and on line 512 there is a call that looks like this:
add_filter( ‘woocommerce_get_settings_pages’, ‘hide_price_until_login_plugin_setting_class_initiate’ );
Comment it out and see if it fixes your problem. For me, it does not include the settings tab for the plugin in the Woocommerce settings, but it allows access to the Woocommerce settings at least.
Forum: Plugins
In reply to: [WooCommerce] Fatal error: Cannot declare class MYCLASS Woocommerce SettingsOk, temporarily deleting it does not work
Warning: include(settings/class-wc-settings-general.php): failed to open stream: No such file or directory in /home/jenkuzni/public_html/keywebsite/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-settings.php on line 50 Warning: include(): Failed opening 'settings/class-wc-settings-general.php' for inclusion (include_path='.:/usr/local/php70/pear') in /home/jenkuzni/public_html/keywebsite/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-settings.php on line 50 Warning: include(settings/class-wc-settings-general.php): failed to open stream: No such file or directory in /home/jenkuzni/public_html/keywebsite/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-settings.php on line 50 Warning: include(): Failed opening 'settings/class-wc-settings-general.php' for inclusion (include_path='.:/usr/local/php70/pear') in /home/jenkuzni/public_html/keywebsite/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-settings.php on line 50 Fatal error: Cannot declare class WC_Settings_Products, because the name is already in use in /home/jenkuzni/public_html/keywebsite/wp-content/plugins/woocommerce/includes/admin/settings/class-wc-settings-products.php on line 0 The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.
Forum: Plugins
In reply to: [WooCommerce] Fatal error: Cannot declare class MYCLASS Woocommerce SettingsSo I guess the call for the settings should just come from one place. I might try and removing the errors from the class-wc-settings-general.php or just temporarily deleting it. It might work then.
Unless we found the place where the plugin was causing the issue, then we could get rid of it there. If we found it in the plugin, then we could send a bug report to the plugin creators.
Forum: Plugins
In reply to: [WooCommerce] Fatal error: Cannot declare class MYCLASS Woocommerce SettingsInteresting. Do you know if there is a file that tries to call the Woocommerce settings at the same time as woocommerce? It looks like there are two calls going on for the settings from what I can tell.
Forum: Plugins
In reply to: [WooCommerce] Fatal error: Cannot declare class MYCLASS Woocommerce SettingsIt has not been completely resolved. Do you have a plugin that makes prices un-viewable until a user is signed in? I think it’s called Hide Price Until Login (Modified).
I have narrowed it down to that particular plugin, although I do not know what is causing the plugin to produce the error.
Let me know if you have the plugin, as we might be able to figure it out yet.