Home › Forums › WoodMart support forum › Error – Woodmart/WooCommerce
Error – Woodmart/WooCommerce
- This topic has 9 replies, 2 voices, and was last updated 4 years, 5 months ago by Artem Temos.
-
AuthorPosts
-
July 13, 2020 at 10:00 am #210380
PedroPinaParticipantHi there,
Since last Friday, we’ve come across a few errors in our website, mainly the one below:
ERROR
2020-07-10T10:12:48+00:00 CRITICAL Uncaught Error: Call to undefined function woodmart_admin_scripts_localize() in /home/vossamkt2020/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/modules/attributes-meta-boxes.php:23Stack trace:#0 /home/vossamkt2020/public_html/wp-includes/class-wp-hook.php(287): woodmart_wc_attribute_update(11, Array, ‘attributegroup_…’)#1 /home/vossamkt2020/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array)#2 /home/vossamkt2020/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array)#3 /home/vossamkt2020/public_html/wp-content/plugins/woocommerce/includes/wc-attribute-functions.php(559): do_action(‘woocommerce_att…’, 11, Array, ‘attributegroup_…’)#4 /home/vossamkt2020/public_html/wp-content/plugins/woocommerce/includes/wc-attribute-functions.php(651): wc_create_attribute(Array)#5 /home/vossamkt2020/public_html/wp-content/plugins/woocommerce/packages/woocommerce-rest-api/src/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php(315): em /home/vossamkt2020/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/modules/attributes-meta-boxes.php na linha 23
Is this related to the WoodMart theme (can you check it out?) or some other problem?
Thanks,
Pedro PinaJuly 13, 2020 at 11:07 am #210402
Artem TemosKeymasterHi,
Please, describe to us your problems in a bit more details. Attach some screenshots and provide us with a list of steps on how to reproduce it on your website.
Thank you in advance.
July 13, 2020 at 11:44 am #210410
PedroPinaParticipantHi Artem,
This is how it goes then. The website is currently connected to a dropshipping supplier called BigBuy, which loads all products into WooCommerce. Since last Friday, when adding a product to the cart, the spinner doesn’t stop and the product is never added to the cart. If we have any product in the cart, it outputs an error whenever we try to see the cart or try to finish the order.
If we switch off the AJAX shop option, it simply drops an error when adding a product to the cart, or when trying to access the cart page (BigBuy Plugin error).
The steps to follow are simple, just try to add a product to the cart and proceed with the order.
The error.log file dumps the following error:
CRITICAL Uncaught Error: Call to undefined function woodmart_admin_scripts_localize() in /home/vossamkt2020/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/modules/attributes-meta-boxes.php:23Stack trace:#0 /home/vossamkt2020/public_html/wp-includes/class-wp-hook.php(287): woodmart_wc_attribute_update(11, Array, ‘attributegroup_…’)#1 /home/vossamkt2020/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array)#2 /home/vossamkt2020/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array)#3 /home/vossamkt2020/public_html/wp-content/plugins/woocommerce/includes/wc-attribute-functions.php(559): do_action(‘woocommerce_att…’, 11, Array, ‘attributegroup_…’)#4 /home/vossamkt2020/public_html/wp-content/plugins/woocommerce/includes/wc-attribute-functions.php(651): wc_create_attribute(Array)#5 /home/vossamkt2020/public_html/wp-content/plugins/woocommerce/packages/woocommerce-rest-api/src/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php(315): em /home/vossamkt2020/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/modules/attributes-meta-boxes.php na linha 23The other error outputted by the BigBuy plugin is:
Fatal error: Uncaught Error: Interface ‘Psr\Http\Message\UriInterface’ not found in /home/vossamkt2020/public_html/wp-content/plugins/bigbuy-wc-dropshipping-connector/vendor/guzzlehttp/psr7/src/Uri.php:13 Stack trace: #0 /home/vossamkt2020/public_html/wp-content/plugins/bigbuy-wc-dropshipping-connector/vendor/composer/ClassLoader.php(444): include() #1 /home/vossamkt2020/public_html/wp-content/plugins/bigbuy-wc-dropshipping-connector/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile(‘/home/vossamkt2…’) #2 [internal function]: Composer\Autoload\ClassLoader->loadClass(‘GuzzleHttp\\Psr7…’) #3 /home/vossamkt2020/public_html/wp-content/plugins/bigbuy-wc-dropshipping-connector/vendor/guzzlehttp/psr7/src/functions.php(65): spl_autoload_call(‘GuzzleHttp\\Psr7…’) #4 /home/vossamkt2020/public_html/wp-content/plugins/bigbuy-wc-dropshipping-connector/vendor/guzzlehttp/guzzle/src/Client.php(211): GuzzleHttp\Psr7\uri_for(‘/rest/shipping/…’) #5 /home/vossamkt2020/public_html/wp-content/plugins/bigbuy-wc-dropshi in /home/vossamkt2020/public_html/wp-content/plugins/bigbuy-wc-dropshipping-connector/vendor/guzzlehttp/psr7/src/Uri.php on line 13We understand this last error is beyond your scope, as it “belongs” to a plugin, but regarding the first error above, can you guys help us out?
Thanks,
Pedro PinaJuly 13, 2020 at 11:52 am #210413
Artem TemosKeymasterCould you please check how it works (AJAX add to cart function) with some default WordPress themes like TwentyTwenty or WooCommerce Storefront to understand is it our theme issue or not?
Regards
July 13, 2020 at 1:36 pm #210448
PedroPinaParticipantHi Artem,
We’ve tried with changing to TwentyTwenty, but this theme does not have the AJAX add to cart function. Anyway, the outputted error in error.log is the following (latest lines):
[13-Jul-2020 13:34:09 UTC] PHP Notice: Trying to get property ‘term_id’ of non-object in /home/vossamkt2020/public_html/wp-content/plugins/woocommerce/packages/woocommerce-rest-api/src/Controllers/Version1/class-wc-rest-product-attribute-terms-v1-controller.php on line 138
[13-Jul-2020 13:34:09 UTC] PHP Notice: Trying to get property ‘term_id’ of non-object in /home/vossamkt2020/public_html/wp-content/plugins/woocommerce/packages/woocommerce-rest-api/src/Controllers/Version1/class-wc-rest-product-attribute-terms-v1-controller.php on line 141
[13-Jul-2020 13:34:09 UTC] PHP Notice: Trying to get property ‘name’ of non-object in /home/vossamkt2020/public_html/wp-content/plugins/woocommerce/packages/woocommerce-rest-api/src/Controllers/Version1/class-wc-rest-product-attribute-terms-v1-controller.php on line 142
[13-Jul-2020 13:34:09 UTC] PHP Notice: Trying to get property ‘slug’ of non-object in /home/vossamkt2020/public_html/wp-content/plugins/woocommerce/packages/woocommerce-rest-api/src/Controllers/Version1/class-wc-rest-product-attribute-terms-v1-controller.php on line 143
[13-Jul-2020 13:34:09 UTC] PHP Notice: Trying to get property ‘description’ of non-object in /home/vossamkt2020/public_html/wp-content/plugins/woocommerce/packages/woocommerce-rest-api/src/Controllers/Version1/class-wc-rest-product-attribute-terms-v1-controller.php on line 144
[13-Jul-2020 13:34:09 UTC] PHP Notice: Trying to get property ‘count’ of non-object in /home/vossamkt2020/public_html/wp-content/plugins/woocommerce/packages/woocommerce-rest-api/src/Controllers/Version1/class-wc-rest-product-attribute-terms-v1-controller.php on line 146
[13-Jul-2020 13:34:09 UTC] PHP Notice: Trying to get property ‘term_id’ of non-object in /home/vossamkt2020/public_html/wp-content/plugins/woocommerce/packages/woocommerce-rest-api/src/Controllers/Version3/class-wc-rest-terms-controller.php on line 587
[13-Jul-2020 13:34:09 UTC] PHP Notice: Trying to get property ‘parent’ of non-object in /home/vossamkt2020/public_html/wp-content/plugins/woocommerce/packages/woocommerce-rest-api/src/Controllers/Version3/class-wc-rest-terms-controller.php on line 594
[13-Jul-2020 13:34:09 UTC] PHP Notice: Trying to get property ‘term_id’ of non-object in /home/vossamkt2020/public_html/wp-content/plugins/woocommerce/packages/woocommerce-rest-api/src/Controllers/Version3/class-wc-rest-terms-controller.php on line 554
[13-Jul-2020 13:34:09 UTC] PHP Notice: Trying to get property ‘taxonomy’ of non-object in /home/vossamkt2020/public_html/wp-content/plugins/woocommerce/packages/woocommerce-rest-api/src/Controllers/Version3/class-wc-rest-terms-controller.php on line 554
[13-Jul-2020 13:34:09 UTC] PHP Notice: Trying to get property ‘term_id’ of non-object in /home/vossamkt2020/public_html/wp-content/plugins/woocommerce/packages/woocommerce-rest-api/src/Controllers/Version1/class-wc-rest-product-attribute-terms-v1-controller.php on line 138
[13-Jul-2020 13:34:09 UTC] PHP Notice: Trying to get property ‘term_id’ of non-object in /home/vossamkt2020/public_html/wp-content/plugins/woocommerce/packages/woocommerce-rest-api/src/Controllers/Version1/class-wc-rest-product-attribute-terms-v1-controller.php on line 141
[13-Jul-2020 13:34:09 UTC] PHP Notice: Trying to get property ‘name’ of non-object in /home/vossamkt2020/public_html/wp-content/plugins/woocommerce/packages/woocommerce-rest-api/src/Controllers/Version1/class-wc-rest-product-attribute-terms-v1-controller.php on line 142
[13-Jul-2020 13:34:09 UTC] PHP Notice: Trying to get property ‘slug’ of non-object in /home/vossamkt2020/public_html/wp-content/plugins/woocommerce/packages/woocommerce-rest-api/src/Controllers/Version1/class-wc-rest-product-attribute-terms-v1-controller.php on line 143
[13-Jul-2020 13:34:09 UTC] PHP Notice: Trying to get property ‘description’ of non-object in /home/vossamkt2020/public_html/wp-content/plugins/woocommerce/packages/woocommerce-rest-api/src/Controllers/Version1/class-wc-rest-product-attribute-terms-v1-controller.php on line 144
[13-Jul-2020 13:34:09 UTC] PHP Notice: Trying to get property ‘count’ of non-object in /home/vossamkt2020/public_html/wp-content/plugins/woocommerce/packages/woocommerce-rest-api/src/Controllers/Version1/class-wc-rest-product-attribute-terms-v1-controller.php on line 146
[13-Jul-2020 13:34:09 UTC] PHP Notice: Trying to get property ‘term_id’ of non-object in /home/vossamkt2020/public_html/wp-content/plugins/woocommerce/packages/woocommerce-rest-api/src/Controllers/Version3/class-wc-rest-terms-controller.php on line 587
[13-Jul-2020 13:34:09 UTC] PHP Notice: Trying to get property ‘parent’ of non-object in /home/vossamkt2020/public_html/wp-content/plugins/woocommerce/packages/woocommerce-rest-api/src/Controllers/Version3/class-wc-rest-terms-controller.php on line 594
[13-Jul-2020 13:34:09 UTC] PHP Notice: Trying to get property ‘term_id’ of non-object in /home/vossamkt2020/public_html/wp-content/plugins/woocommerce/packages/woocommerce-rest-api/src/Controllers/Version3/class-wc-rest-terms-controller.php on line 554
[13-Jul-2020 13:34:09 UTC] PHP Notice: Trying to get property ‘taxonomy’ of non-object in /home/vossamkt2020/public_html/wp-content/plugins/woocommerce/packages/woocommerce-rest-api/src/Controllers/Version3/class-wc-rest-terms-controller.php on line 554On trying to add a product to the cart, the error in the cart page is the following:
Fatal error: Uncaught Error: Interface ‘Psr\Http\Message\UriInterface’ not found in /home/vossamkt2020/public_html/wp-content/plugins/bigbuy-wc-dropshipping-connector/vendor/guzzlehttp/psr7/src/Uri.php:13 Stack trace: #0 /home/vossamkt2020/public_html/wp-content/plugins/bigbuy-wc-dropshipping-connector/vendor/composer/ClassLoader.php(444): include() #1 /home/vossamkt2020/public_html/wp-content/plugins/bigbuy-wc-dropshipping-connector/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile(‘/home/vossamkt2…’) #2 [internal function]: Composer\Autoload\ClassLoader->loadClass(‘GuzzleHttp\\Psr7…’) #3 /home/vossamkt2020/public_html/wp-content/plugins/bigbuy-wc-dropshipping-connector/vendor/guzzlehttp/psr7/src/functions.php(65): spl_autoload_call(‘GuzzleHttp\\Psr7…’) #4 /home/vossamkt2020/public_html/wp-content/plugins/bigbuy-wc-dropshipping-connector/vendor/guzzlehttp/guzzle/src/Client.php(211): GuzzleHttp\Psr7\uri_for(‘/rest/shipping/…’) #5 /home/vossamkt2020/public_html/wp-content/plugins/bigbuy-wc-dropshi in /home/vossamkt2020/public_html/wp-content/plugins/bigbuy-wc-dropshipping-connector/vendor/guzzlehttp/psr7/src/Uri.php on line 13
Thanks,
Pedro PinaJuly 13, 2020 at 1:42 pm #210452
Artem TemosKeymasterActually, it has AJAX add to cart function on the shop page because it is related to WooCommerce and not to the theme.
July 13, 2020 at 1:57 pm #210453
PedroPinaParticipantHi Artem,
Thanks, we thought it didn’t have AJAX.
So what can we get out of all these errors?
Thanks,
Pedro PinaJuly 13, 2020 at 2:59 pm #210482
Artem TemosKeymasterHave you check the AJAX add to cart with the default theme?
Sorry, but we don’t have a solution to PHP errors that come with 3rd party plugins. You need to contact plugins’ developers for help in such a situation.
July 13, 2020 at 3:29 pm #210498
PedroPinaParticipantHi Artem,
We appreciate your support and effort to help us on this issue.
We did try to use the AJAX add to cart with the default theme and the issue persists.
We are going to try to contact the plugin developers to help us on this.
Thanks for the help.
Best Regards,
Pedro PinaJuly 14, 2020 at 5:36 am #210623
Artem TemosKeymasterHello,
Feel free to contact us if you will have any further problems.
Kind Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register