- This topic has 7 replies, 3 voices, and was last updated 3 weeks, 2 days ago by Tom.
May 12, 2020 at 2:01 am #1280402hans_grif
WP send me a error warning about a technical problem. If i understand it correctly these are php errors. Are they caused by the php version of my provider (PHP version 7.2.24)? Or did i made a mistake in the setup of the website or/and woocommerce?
Een fout van het type E_ERROR werd veroorzaakt op regelnummer 264 van het bestand /home/grifontwerpdev/public_html/wp-content/plugins/gp-premium/woocommerce/functions/functions.php. Foutmelding: Uncaught Error: Call to undefined function is_woocommerce() in /home/grifontwerpdev/public_html/wp-content/plugins/gp-premium/woocommerce/functions/functions.php:264
#0 /home/grifontwerpdev/public_html/wp-includes/class-wp-hook.php(288): generatepress_wc_sidebar_layout(‘no-sidebar’)
#1 /home/grifontwerpdev/public_html/wp-includes/plugin.php(206): WP_Hook->apply_filters(‘no-sidebar’, Array)
#2 /home/grifontwerpdev/public_html/wp-content/themes/generatepress/inc/theme-functions.php(62): apply_filters(‘generate_sideba…’, ‘no-sidebar’)
#3 /home/grifontwerpdev/public_html/wp-content/themes/generatepress/inc/css-output.php(509): generate_get_layout()
#4 /home/grifontwerpdev/public_html/wp-content/themes/generatepress/inc/css-output.php(736): generate_spacing_css()
#5 /home/grifontwerpdev/public_html/wp-includes/class-wp-hook.php(288): generate_set_dynamic_css_cache(”)
#6 /home/grifontwerpdev/public_html/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array)
WordPress 5.3.2 / GeneratePress 2.4.1 / GP Premium 1.9.1 / PHP 7.2.24May 12, 2020 at 5:21 am #1280624DavidStaffCustomer SupportMay 13, 2020 at 1:37 am #1282033hans_grif
Seems a bit drastic 🙂 The way I understand it, and correct my if I am wrong, is that the error is caused by GP Premium. The error occurred after installing the WooCommerce plugin. GP Premium seems to want to take advantage of a feature in WooCommerce, which is not available. But I don’t understand what function.
Maybe I have something wrong / or not installed in WooCommerce? But what? Can you see what it is from the error?
Or maybe I did set up something wrong in GP on my website? But what? Can you see what it is from the error?May 13, 2020 at 5:11 am #1282266DavidStaffCustomer Support
Maybe a bit drastic 🙂 but still the easiest method to check for conflicts as we don’t have any known errors relating to this.
What it says to me is that Woocommerce is not installed correctly – or a function is trying to make that call on a non woocommerce page. Is the Woo plugin enabled ?May 13, 2020 at 6:29 am #1282345hans_grif
Thanks. But, maybe a silly question, how can I check if disabling a plugin fixes the problem. I get a warning once a day from WordPress about the problem. Is there a way to immediately see if the problem has been fixed?May 13, 2020 at 9:06 am #1282782TomLead DeveloperLead Developer
That error is saying the
is_woocommerce()function doesn’t exist, which is 100% does as long as WooCommerce is activated. What’s strange is that our WooCommerce module doesn’t actually load any code unless WooCommerce is activated.
Are you using any caching plugins/server caching? That would perhaps explain why it’s only happening sometimes – maybe it’s preventing WooCommerce from loading properly?May 14, 2020 at 1:39 am #1283686hans_grif
Can Auptimize be the cause of this?May 14, 2020 at 10:00 am #1284564TomLead DeveloperLead Developer
No, I don’t believe so. It would need to be a more aggressive caching system to do something like this. It’s just a guess on my part that it’s cache related.
Do you have any caching plugins/server caching on the site?
- You must be logged in to reply to this topic.