-
AuthorPosts
-
February 7, 2018 at 12:10 pm #909060
Hi, I’ve been asked by my client to update all plugins etc. on this site http://www.manororganicfarm.co.uk
I successfully updated WordPress and all plugins but then tried to update Woocommerce and the site crashed. I restored the site from a back-up. I then updated the Enfold theme to the latest version. I still need to update Woocommerce (it’s currently running a very old version at 2.3.2) but I’m now worried that the same thing will happen again. Are there are known issues between the latest version of Woocommerce and Enfold? Is it because I didn’t update the Theme first? This is the error log produced when I tried to update Woocommerce before the Enfold theme had been updated:
32444 manororganicfarm.co.uk [Thu Feb 01 10:36:24 2018] [error] [client 82.4.104.41:39778] AH01215: Stack trace:: /home/sites/manororganicfarm.co.uk/public_html/index.php 32449 manororganicfarm.co.uk [Thu Feb 01 10:36:24 2018] [error] [client 82.4.104.41:39778] AH01215: #0 /home/sites/manororganicfarm.co.uk/public_html/wp-includes/class-wp-hook.php(286): avia_style_generator->create_styles(”): /home/sites/manororganicfarm.co.uk/public_html/index.php32447 manororganicfarm.co.uk [Thu Feb 01 10:36:24 2018] [error] [client 82.4.104.41:39778] AH01215: #1 /home/sites/manororganicfarm.co.uk/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array): /home/sites/manororganicfarm.co.uk/public_html/index.php 32444 manororganicfarm.co.uk [Thu Feb 01 10:36:24 2018] [error] [client 82.4.104.41:39778] AH01215: #2 /home/sites/manororganicfarm.co.uk/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array): /home/sites/manororganicfarm.co.uk/public_html/index.php32447 manororganicfarm.co.uk [Thu Feb 01 10:36:24 2018] [error] [client 82.4.104.41:39778] AH01215: #3 /home/sites/manororganicfarm.co.uk/public_html/wp-includes/general-template.php(2614): do_action(‘wp_head’): /home/sites/manororganicfarm.co.uk/public_html/index.php 32444 manororganicfarm.co.uk [Thu Feb 01 10:36:24 2018] [error] [client 82.4.104.41:39778] AH01215: #4 /home/sites/manororganicfarm.co.uk/public_html/wp-content/themes/enfold/enfold/header.php(53): wp_head(): /home/sites/manororganicfarm.co.uk/public_html/index.php32451 manororganicfarm.co.uk [Thu Feb 01 10:36:24 2018] [error] [client 82.4.104.41:39778] AH01215: #5 /home/sites/manororganicfarm.co.uk/public_html/wp-includes/template.php(688): require_once(‘/home/sites/man…’): /home/sites/manororganicfarm.co.uk/public_html/index.php 32445 manororganicfarm.co.uk [Thu Feb 01 10:36:24 2018] [error] [client 82.4.104.41:39778] AH01215: #6 /home/sites/manororganicfarm.co.uk/public_html/wp-includes/template.php(647): load_template(‘/home/sites/man…’, true): /home/sites/manororganicfarm.co.uk/public_html/index.php 32451 manororganicfarm.co.uk [Thu Feb 01 10:36:24 2018] [error] [client 82.4.104.41:39778] AH01215: #7 /home/sites/manororganic in /home/sites/manororganicfarm.co.uk/public_html/wp-content/themes/enfold/enfold/framework/php/class-style-generator.php on line 123: /home/sites/manororganicfarm.co.uk/public_html/index.php 32456 manororganicfarm.co.uk [Thu Feb 01 10:36:30 2018] [error] [client 80.90.193.161:43662] AH01215: PHP Fatal error: Uncaught Error: Function name must be a string in /home/sites/manororganicfarm.co.uk/public_html/wp-content/themes/enfold/enfold/framework/php/class-style-generator.php:1 23: /home/sites/manororganicfarm.co.uk/public_html/index.php 32466 manororganicfarm.co.uk [Thu Feb 01 10:36:30 2018] [error] [client 80.90.193.161:43662] AH01215: Stack trace:: /home/sites/manororganicfarm.co.uk/public_html/index.php32460 manororganicfarm.co.uk [Thu Feb 01 10:36:30 2018] [error] [client 80.90.193.161:43662] AH01215: #0 /home/sites/manororganicfarm.co.uk/public_html/wp-includes/class-wp-hook.php(286): avia_style_generator->create_styles(”): /home/sites/manororganicfarm.co.uk/public_html/index.php 32462 manororganicfarm.co.uk [Thu Feb 01 10:36:30 2018] [error] [client 80.90.193.161:43662] AH01215: #1 /home/sites/manororganicfarm.co.uk/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array): /home/sites/manororganicfarm.co.uk/public_html/index.php 32456 manororganicfarm.co.uk [Thu Feb 01 10:36:30 2018] [error] [client 80.90.193.161:43662] AH01215: #2 /home/sites/manororganicfarm.co.uk/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array): /home/sites/manororganicfarm.co.uk/public_html/index.php32466 manororganicfarm.co.uk [Thu Feb 01 10:36:30 2018] [error] [client 80.90.193.161:43662] AH01215: #3 /home/sites/manororganicfarm.co.uk/public_html/wp-includes/general-template.php(2614): do_action(‘wp_head’): /home/sites/manororganicfarm.co.uk/public_html/index.php 32462 manororganicfarm.co.uk [Thu Feb 01 10:36:30 2018] [error] [client 80.90.193.161:43662] AH01215: #4 /home/sites/manororganicfarm.co.uk/public_html/wp-content/themes/enfold/enfold/header.php(53): wp_head(): /home/sites/manororganicfarm.co.uk/public_html/index.php32459 manororganicfarm.co.uk [Thu Feb 01 10:36:30 2018] [error] [client 80.90.193.161:43662] AH01215: #5 /home/sites/manororganicfarm.co.uk/public_html/wp-includes/template.php(688): require_once(‘/home/sites/man…’): /home/sites/manororganicfarm.co.uk/public_html/index.php 32466 manororganicfarm.co.uk [Thu Feb 01 10:36:30 2018] [error] [client 80.90.193.161:43662] AH01215: #6 /home/sites/manororganicfarm.co.uk/public_html/wp-includes/template.php(647): load_template(‘/home/sites/man…’, true): /home/sites/manororganicfarm.co.uk/public_html/index.php 32461 manororganicfarm.co.uk [Thu Feb 01 10:36:30 2018] [error] [client 80.90.193.161:43662] AH01215: #7 /home/sites/manororganic in /home/sites/manororganicfarm.co.uk/public_html/wp-content/themes/enfold/enfold/framework/php/class-style-generator.php on line 123: /home/sites/manororganicfarm.co.uk/public_html/index.php 32481 manororganicfarm.co.uk [Thu Feb 01 10:36:55 2018] [error] [client 82.4.104.41:60712] AH01215: Stack trace:: /home/sites/manororganicfarm.co.uk/public_html/index.php 32484 manororganicfarm.co.uk [Thu Feb 01 10:36:55 2018] [error] [client 82.4.104.41:60712] AH01215: PHP Fatal error: Uncaught Error: Function name must be a string in /home/sites/manororganicfarm.co.uk/public_html/wp-content/themes/enfold/enfold/framework/php/class-style-generator.php:1 23: /home/sites/manororganicfarm.co.uk/public_html/index.php 32487 manororganicfarm.co.uk [Thu Feb 01 10:36:55 2018] [error] [client 82.4.104.41:60712] AH01215: #0 /home/sites/manororganicfarm.co.uk/public_html/wp-includes/class-wp-hook.php(286): avia_style_generator->create_styles(”): /home/sites/manororganicfarm.co.uk/public_html/index.php 32483 manororganicfarm.co.uk [Thu Feb 01 10:36:55 2018] [error] [client 82.4.104.41:60712] AH01215: #1 /home/sites/manororganicfarm.co.uk/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array): /home/sites/manororganicfarm.co.uk/public_html/index.php 32482 manororganicfarm.co.uk [Thu Feb 01 10:36:55 2018] [error] [client 82.4.104.41:60712] AH01215: #2 /home/sites/manororganicfarm.co.uk/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array): /home/sites/manororganicfarm.co.uk/public_html/index.php32487 manororganicfarm.co.uk [Thu Feb 01 10:36:55 2018] [error] [client 82.4.104.41:60712] AH01215: #3 /home/sites/manororganicfarm.co.uk/public_html/wp-includes/general-template.php(2614): do_action(‘wp_head’): /home/sites/manororganicfarm.co.uk/public_html/index.php 32483 manororganicfarm.co.uk [Thu Feb 01 10:36:55 2018] [error] [client 82.4.104.41:60712] AH01215: #4 /home/sites/manororganicfarm.co.uk/public_html/wp-content/themes/enfold/enfold/header.php(53): wp_head(): /home/sites/manororganicfarm.co.uk/public_html/index.php32481 manororganicfarm.co.uk [Thu Feb 01 10:36:55 2018] [error] [client 82.4.104.41:60712] AH01215: #5 /home/sites/manororganicfarm.co.uk/public_html/wp-includes/template.php(688): require_once(‘/home/sites/man…’): /home/sites/manororganicfarm.co.uk/public_html/index.php 32482 manororganicfarm.co.uk [Thu Feb 01 10:36:55 2018] [error] [client 82.4.104.41:60712] AH01215: #6 /home/sites/manororganicfarm.co.uk/public_html/wp-includes/template.php(647): load_template(‘/home/sites/man…’, true): /home/sites/manororganicfarm.co.uk/public_html/index.php 32488 manororganicfarm.co.uk [Thu Feb 01 10:36:55 2018] [error] [client 82.4.104.41:60712] AH01215: #7 /home/sites/manororganic in /home/sites/manororganicfarm.co.uk/public_html/wp-content/themes/enfold/enfold/framework/php/class-style-generator.php on line 123: /home/sites/manororganicfarm.co.uk/public_html/index.php
February 7, 2018 at 1:22 pm #909109Hey kathrynmichaud,
I have not seen any issues with Enfold & woocommerce, I have updated my localhost to the newest Enfold, woocommerce, & WordPress with no issues.
I see you are using PHP Version: 5.6.32
I suggest make a backup, ask your host to update your PHP to version 7.0 (not v7.2), then update WordPress to v4.9.4, then try to update woocommerce.Best regards,
MikeFebruary 7, 2018 at 1:51 pm #909139Hi Mike
I have done as you suggested and changed to PHP Version 7.0 but I’m the same thing has happened. Can you see why this is from the current error log:
32721 manororganicfarm.co.uk [Wed Feb 07 11:10:52 2018] [error] [client 216.244.66.250:42670] AH01215: PHP Fatal error: Call to undefined method WC_Product_Simple::get_type() in /home/sites/manororganicfarm.co.uk/public_html/wp-content/themes/enfold/config-woocommerce/config.php on line 306: /home/sites/manororganicfarm.co.uk/public_html/index.php
32738 manororganicfarm.co.uk [Wed Feb 07 11:11:02 2018] [error] [client 216.244.66.250:50438] AH01215: PHP Fatal error: Call to undefined method WC_Product_Simple::get_type() in /home/sites/manororganicfarm.co.uk/public_html/wp-content/themes/enfold/config-woocommerce/config.php on line 306: /home/sites/manororganicfarm.co.uk/public_html/index.php
32738 manororganicfarm.co.uk [Wed Feb 07 11:11:06 2018] [error] [client 216.244.66.250:54036] AH01215: PHP Fatal error: Call to undefined method WC_Product_Variable::get_type() in /home/sites/manororganicfarm.co.uk/public_html/wp-content/themes/enfold/config-woocommerce/config.php on line 306: /home/sites/manororganicfarm.co.uk/public_html/index.php
32740 manororganicfarm.co.uk [Wed Feb 07 11:11:10 2018] [error] [client 216.244.66.250:56970] AH01215: PHP Fatal error: Call to undefined method WC_Product_Simple::get_type() in /home/sites/manororganicfarm.co.uk/public_html/wp-content/themes/enfold/config-woocommerce/config.php on line 306: /home/sites/manororganicfarm.co.uk/public_html/index.php
502 manororganicfarm.co.uk [Wed Feb 07 11:14:05 2018] [error] [client 216.244.66.250:45908] AH01215: PHP Fatal error: Call to undefined method WC_Product_Variable::get_type() in /home/sites/manororganicfarm.co.uk/public_html/wp-content/themes/enfold/config-woocommerce/config.php on line 306: /home/sites/manororganicfarm.co.uk/public_html/index.php
739 manororganicfarm.co.uk [Wed Feb 07 11:17:15 2018] [error] [client 89.240.206.41:51980] AH01215: PHP Fatal error: Call to undefined method WC_Product_Simple::get_type() in /home/sites/manororganicfarm.co.uk/public_html/wp-content/themes/enfold/config-woocommerce/config.php on line 306: /home/sites/manororganicfarm.co.uk/public_html/index.php
1155 manororganicfarm.co.uk [Wed Feb 07 11:21:47 2018] [error] [client 216.244.66.227:32882] AH01215: PHP Fatal error: Call to undefined method WC_Product_Simple::get_type() in /home/sites/manororganicfarm.co.uk/public_html/wp-content/themes/enfold/config-woocommerce/config.php on line 306: /home/sites/manororganicfarm.co.uk/public_html/index.php
1447 manororganicfarm.co.uk [Wed Feb 07 11:25:47 2018] [error] [client 216.244.66.198:41658] AH01215: PHP Fatal error: Call to undefined method WC_Product_Simple::get_type() in /home/sites/manororganicfarm.co.uk/public_html/wp-content/themes/enfold/config-woocommerce/config.php on line 306: /home/sites/manororganicfarm.co.uk/public_html/index.php
1464 manororganicfarm.co.uk [Wed Feb 07 11:25:54 2018] [error] [client 216.244.66.198:47566] AH01215: PHP Fatal error: Call to undefined method WC_Product_Simple::get_type() in /home/sites/manororganicfarm.co.uk/public_html/wp-content/themes/enfold/config-woocommerce/config.php on line 306: /home/sites/manororganicfarm.co.uk/public_html/index.php
1486 manororganicfarm.co.uk [Wed Feb 07 11:26:19 2018] [error] [client 216.244.66.198:38982] AH01215: PHP Fatal error: Call to undefined method WC_Product_Simple::get_type() in /home/sites/manororganicfarm.co.uk/public_html/wp-content/themes/enfold/config-woocommerce/config.php on line 306: /home/sites/manororganicfarm.co.uk/public_html/index.php
1492 manororganicfarm.co.uk [Wed Feb 07 11:26:24 2018] [error] [client 216.244.66.198:42912] AH01215: PHP Fatal error: Call to undefined method WC_Product_Simple::get_type() in /home/sites/manororganicfarm.co.uk/public_html/wp-content/themes/enfold/config-woocommerce/config.php on line 306: /home/sites/manororganicfarm.co.uk/public_html/index.php
1498 manororganicfarm.co.uk [Wed Feb 07 11:26:28 2018] [error] [client 216.244.66.198:46504] AH01215: PHP Fatal error: Call to undefined method WC_Product_Variable::get_type() in /home/sites/manororganicfarm.co.uk/public_html/wp-content/themes/enfold/config-woocommerce/config.php on line 306: /home/sites/manororganicfarm.co.uk/public_html/index.php
1764 manororganicfarm.co.uk [Wed Feb 07 11:29:41 2018] [error] [client 164.132.161.40:54898] AH01215: PHP Fatal error: Call to undefined method WC_Product_Simple::get_type() in /home/sites/manororganicfarm.co.uk/public_html/wp-content/themes/enfold/config-woocommerce/config.php on line 306: /home/sites/manororganicfarm.co.uk/public_html/index.php
1851 manororganicfarm.co.uk [Wed Feb 07 11:30:21 2018] [error] [client 40.77.167.57:57182] AH01215: PHP Fatal error: Call to undefined method WC_Product_Simple::get_type() in /home/sites/manororganicfarm.co.uk/public_html/wp-content/themes/enfold/config-woocommerce/config.php on line 306: /home/sites/manororganicfarm.co.uk/public_html/index.php
2466 manororganicfarm.co.uk [Wed Feb 07 11:34:04 2018] [error] [client 17.142.153.29:57500] AH01215: PHP Fatal error: Call to undefined method WC_Product_Simple::get_type() in /home/sites/manororganicfarm.co.uk/public_html/wp-content/themes/enfold/config-woocommerce/config.php on line 306: /home/sites/manororganicfarm.co.uk/public_html/index.php
2628 manororganicfarm.co.uk [Wed Feb 07 11:36:04 2018] [error] [client 40.77.167.57:59382] AH01215: PHP Fatal error: Call to undefined method WC_Product_Variable::get_type() in /home/sites/manororganicfarm.co.uk/public_html/wp-content/themes/enfold/config-woocommerce/config.php on line 306: /home/sites/manororganicfarm.co.uk/public_html/index.php
3081 manororganicfarm.co.uk [Wed Feb 07 11:41:00 2018] [error] [client 141.8.142.117:52742] AH01215: PHP Fatal error: Call to undefined method WC_Product_Variable::get_type() in /home/sites/manororganicfarm.co.uk/public_html/wp-content/themes/enfold/config-woocommerce/config.php on line 306: /home/sites/manororganicfarm.co.uk/public_html/index.php
3239 manororganicfarm.co.uk [Wed Feb 07 11:43:25 2018] [error] [client 40.77.167.57:51196] AH01215: PHP Fatal error: Call to undefined method WC_Product_Simple::get_type() in /home/sites/manororganicfarm.co.uk/public_html/wp-content/themes/enfold/config-woocommerce/config.php on line 306: /home/sites/manororganicfarm.co.uk/public_html/index.php
3351 manororganicfarm.co.uk [Wed Feb 07 11:44:40 2018] [error] [client 82.4.104.41:50122] AH01215: PHP Fatal error: Cannot redeclare class WC_Shipping_Zone in /home/sites/manororganicfarm.co.uk/public_html/wp-content/plugins/woocommerce/includes/class-wc-shipping-zone.php on line 18: /home/sites/manororganicfarm.co.uk/public_html/wp-admin/update-core.php
3367 manororganicfarm.co.uk [Wed Feb 07 11:45:01 2018] [error] [client 216.244.66.227:37324] AH01215: PHP Fatal error: Cannot redeclare class WC_Shipping_Zone in /home/sites/manororganicfarm.co.uk/public_html/wp-content/plugins/woocommerce/includes/class-wc-shipping-zone.php on line 18: /home/sites/manororganicfarm.co.uk/public_html/index.php
3385 manororganicfarm.co.uk [Wed Feb 07 11:45:09 2018] [error] [client 82.4.104.41:42480] AH01215: PHP Fatal error: Cannot redeclare class WC_Shipping_Zone in /home/sites/manororganicfarm.co.uk/public_html/wp-content/plugins/woocommerce/includes/class-wc-shipping-zone.php on line 18: /home/sites/manororganicfarm.co.uk/public_html/index.php
3434 manororganicfarm.co.uk [Wed Feb 07 11:45:58 2018] [error] [client 82.4.104.41:50208] AH01215: PHP Fatal error: Cannot redeclare class WC_Shipping_Zone in /home/sites/manororganicfarm.co.uk/public_html/wp-content/plugins/woocommerce/includes/class-wc-shipping-zone.php on line 18: /home/sites/manororganicfarm.co.uk/public_html/index.phpFebruary 7, 2018 at 3:02 pm #909204Hi,
I couldn’t login to your ftp, are you using any woocommerce plugins? If so try to use ftp to rename the different plugins folders which will deactivate them and allow you to get into the site where you can update the plugins and the main woocommerce plugin.Best regards,
MikeFebruary 7, 2018 at 3:06 pm #909208Hi,
You said you have a backup, what do you use to backup your site?Best regards,
MikeFebruary 7, 2018 at 3:16 pm #909216Hi, yes I can restore the site from a back-up – the hosting company take an automatic back-up every 24 hours.
February 7, 2018 at 3:32 pm #909224I’ve restored the site now. Shall I deactivate all the plugins and then try to update Woocommerce? There are a lot of other Woocommerce plugins in use. Not sure why you couldn’t connect via FTP – you could try the FTP Server IP that I’ve attached below.
Thank you for your help.
Kathryn
February 7, 2018 at 8:29 pm #909373Hi,
Before you proceed with those ways of debug, can you please update Enfold to the latest version that is available today please?
Thank you
Best regards,
BasilisFebruary 8, 2018 at 12:14 pm #909720Hi, yes I’ve done that. I have now updated Woocommerce successfully and identified that it’s the Table Rate Shipping plugin that’s causing the problem so I’ve deactivated it. Presumably it’s this line in the error log that’s the issue:
PHP Fatal error: Cannot redeclare class WC_Shipping_Zone in /home/sites/manororganicfarm.co.uk/public_html/wp-content/plugins/woocommerce/includes/class-wc-shipping-zone.php on line 18: /home/sites/manororganicfarm.co.uk/public_html/index.php
I don’t suppose you have any idea what that means/how I can fix it?
Thank you!
Kathryn
February 8, 2018 at 12:59 pm #909734Hi,
That is great news, I found this error discussed here: https://github.com/woocommerce/woocommerce/issues/10843
seems the solution was to not use it anymore as the new woocommerce (at the time) replaced the function, please see if this is your case. Otherwise, try contacting the plugin author.
Shall we close this then?Best regards,
MikeFebruary 8, 2018 at 2:46 pm #909785Hi Mike
Yes you can go ahead and close this. Thanks for your help.
Kathryn
February 8, 2018 at 2:55 pm #909790 -
AuthorPosts
- The topic ‘Updating Woocommerce’ is closed to new replies.