Home Forums WoodMart support forum Error – Woodmart/WooCommerce

Error – Woodmart/WooCommerce

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #210380

    PedroPina
    Participant

    Hi 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 Pina

    #210402

    Artem Temos
    Keymaster

    Hi,

    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.

    #210410

    PedroPina
    Participant

    Hi 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 23

    The 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 13

    We 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 Pina

    #210413

    Artem Temos
    Keymaster

    Could 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

    #210448

    PedroPina
    Participant

    Hi 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 554

    On 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 Pina

    #210452

    Artem Temos
    Keymaster

    Actually, it has AJAX add to cart function on the shop page because it is related to WooCommerce and not to the theme.

    #210453

    PedroPina
    Participant

    Hi Artem,

    Thanks, we thought it didn’t have AJAX.

    So what can we get out of all these errors?

    Thanks,
    Pedro Pina

    #210482

    Artem Temos
    Keymaster

    Have 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.

    #210498

    PedroPina
    Participant

    Hi 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 Pina

    #210623

    Artem Temos
    Keymaster

    Hello,

    Feel free to contact us if you will have any further problems.

    Kind Regards

Viewing 10 posts - 1 through 10 (of 10 total)