Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WooCommerce integration fail - HTTP Status Code: 500 (Internal store error) #2491

Closed
rbettoni opened this issue Dec 28, 2022 · 4 comments
Closed

Comments

@rbettoni
Copy link

rbettoni commented Dec 28, 2022

Hello :-)

I installed "WooCommerce Integration" module, created an API on WooCommerce as indicated and it seems it is not working properly. This is the error that appears when I try to save the settings. It also appears in app log:

error | production | 2022-12-28 02:42:43 | [WooCommerce] HTTP Status Code: 500 (Internal store error) | Requested resource: https://oficinapalimpsestus.com.br/loja/wp-json/wc/v3/orders

Any help will be fully appreciated.
Thank you
R.

@freescout-helpdesk
Copy link
Contributor

The error message states that there was an error in your store - check your store's error log.

@rbettoni
Copy link
Author

The error message states that there was an error in your store - check your store's error log.

Thank you for your reply. I checked all the logs in WooCommerce and the only record that appears when I try to integrate is this:

2022-12-28T07:42:43+00:00 CRITICAL Uncaught Error: Call to a member function get_cart_contents_count() on null in /home2/ofici679/public_html/wp-content/themes/fox/inc/plugin.woocommerce.php:546
Stack trace:
#0 /home2/ofici679/public_html/wp-content/themes/fox/parts/header-classic.php(59): fox_woocommerce_header_cart()
#1 /home2/ofici679/public_html/wp-includes/template.php(785): require('/home2/ofici679...')
#2 /home2/ofici679/public_html/wp-includes/template.php(718): load_template('/home2/ofici679...', false, Array)
#3 /home2/ofici679/public_html/wp-includes/general-template.php(204): locate_template(Array, true, false, Array)
#4 /home2/ofici679/public_html/wp-content/themes/fox/parts/header.php(44): get_template_part('parts/header', 'classic')
#5 /home2/ofici679/public_html/wp-includes/template.php(785): require('/home2/ofici679...')
#6 /home2/ofici679/public_html/wp-includes/template.php(718): load_template('/home2/ofici679...', false, Array)
#7 /home2/ofici679/public_html/wp-includes/general-template.php(204): locate_template(Array, true, em /home2/ofici679/public_html/wp-content/themes/fox/inc/plugin.woocommerce.php, na linha 546

I appreciate your help -- I'm new to all of this. I don't know if this is the right place to ask for this kind of help.

Thanks

@freescout-helpdesk
Copy link
Contributor

The problem is in the WordPress theme you are using or some plugin. The only way to find out is to check it on your server.

@rbettoni
Copy link
Author

rbettoni commented Jan 2, 2023

Dear friends,
Thank you for trying to help.
I have contacted Woocommerce, we made a lot of tests, including an API call specific to extract the results from the same URL reported by the Module: https:// oficinapalimpsestus .com . br/loja/wp-json/wc/v3/orders

When performing the tests, no error occurred. They said this: if API call is returning data with no errors, and considering all the log files analyzed, the problem is not with your website.

They asked me to contact you again. Can you please help me solve the problem or suggesting what to do? I can post here all the conversation with the log files etc.
Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants