This topic has 23 replies, 2 voices, and was last updated 7 years, 11 months ago ago by Olga Barlow
Multiple pages on my site are throwing the same error causing issues when adding items to the cart and processing payments.
this is the console error:
Failed to load resource: Origin https://montessoricontainers.com/rebuild is not allowed by Access-Control-Allow-Origin.
It tends to do this on the first load of the page or action. Any help would be greatly appreciated. Thanks!
Hello,
I have checked your site and don’t see any error in console on checkout page http://prntscr.com/djmw0q
Also, I did not face 500 error. Could you tell me what products did you add to cart to get this issues?
Regards
It happens randomly, however we noticed that disabling CMB2 reduces the number of times it occurs. The apache error log shows “end of script output before headers”.
With the CMB2 plugin enabled, add any item to the cart and go to checkout as a new customer (not logged in), check and uncheck the “Ship to a different address” box. The sliding section will appear and hide. This had triggered that error many times for us.
The 500 error was triggering on line 1 of the code according to the console, but the page continued to display so the user wasn’t notified of the error.
I was just able to duplicate the error on the homepage. See private link to screenshot
I also just replicated the error on the main site again. Here are 2 screenshots. You’ll see that the error occurred twice. Once on page load, and again after I selected the “Ship to different address” box. When the error occurs, the “Your Order” section is grayed out with an overlay. If I uncheck and recheck the “Ship to…” box, if the error doesn’t occur then the Your Order box is no longer grayed out.
Hello,
Provide me, please, FTP access. We need to check your site more detailed.
Regards
Ok, FTP access info attached privately!
Thank you!
Hello,
Do you have the problem on both sites? I still can’t replicate the issue to help you and I’m confused.
Could you try to disable out theme and do the same actions to reproduce the problem. We need to understand if problem is related to our theme or not.
Regards
Thanks for the reply! We’ve tested on two other basic themes and have not received the error. It has something to do with a JS or AJAX that is native to the X-Store theme.
We thought it might be plugin related so we specifically installed a clean version of WP in the /rebuild folder without any additional plugins and still get the error. We did see a a much lower error rate when we disabled the CMB2 plugin, however it’s still sporadic and doesn’t always throw the error.
We just spent the last few minutes trying to reproduce the error again. It must have something to do with a script that runs to refresh or calculate a change on the page (AJAX related?). Changing the address, adding to cart, removing from cart, etc all seem to occasionally trigger the error for us. We’ve tried and successfully triggered the error in both Chrome and Safari on both OSX and Windows.
We were able to get it to happen by adding an item to the cart, then clicking the checkout button in the minicart (error on checkout page load)
We also were able to produce the error while filling in the address on checkout page.
We did notice that it also popped up once for us when our browser AutoComplete filled in our information. Not sure if you can try that to see if you get the error.
We also were able to produce the error on the cart page of the site when removing an item from the cart.
We did also notice that on occasion when clicking the quick “Add to cart” button in the image overlay
the infinity symbol spins and never shows the item added to the cart, but if you click the cart the item is already added.
Hello,
Check the video https://www.dropbox.com/s/f60flzt4vrfmgxw/no-error.mp4?dl=0 , please.
I don’t see any errors in console. And I can’t understand what I’m doing wrong. Could you point me in right direction? Because I would like to help you but can’t understand the issue.
Regards
please see private content ….
Hello,
Could you, please, try to enable parent theme and check. Because I was able to face the issue with child theme but it disappeared with parent theme.
Let me know about results.
Regards
I encountered the same error with the Parent theme. Most of the styling looks the same but you can see the 8theme footer in the parent theme which is still enabled. See link to video in the private content.
Hello,
You have this code http://prntscr.com/dmhtia in footer copyrights area and very likely it caused a problem because if you check the warning message you’ll see that refinedimpact site gives you not found error.
We don’t have any requests to this resource in our theme. It means either you use plugin that adds this requests or it’s just a content that you added.
Regards
Hi Olga. We thought the same thing, and we tried removing that remote image thinking that was the problem, and we were still able to produce the error. I can remove it if you would like to test again. Let me know.
Also, that image is only located in the copyright area of the child theme, not the parent theme. The error still persists in the parent theme.
I just removed that image from the child theme footer in case you want to test again.
Feel free to make any modifications necessary to resolve this issue, as I created the /rebuild WordPress install is specifically to test this error.
Hello,
Problem is related to server settings. Let’s continue our conversation in chat it will be faster and more effective.
Regards
Hi Olga. I just changed the FCGI timeout for our Apache server as suggested in the StackOverflow post and was still able to produce the error on both versions of the site, the live one and the rebuild.
I’m looking into other possible causes on the server side and will let you know what I find.
I’m looking into the new error now…
Connection reset by peer: [client x.x.x.x:x] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer: http://site.com
Am going to try and change the FcgidOutputBufferSize to 0 as suggested in the following thread:
Got the error again, even after changing both of those settings. This time I got the error when removing an item from the cart. Screenshot attached.
Hello,
Contact your hosting provider, please. Error in the error logs is not related to theme settings. It’s server settings.
Regards
Tagged: 500 server error, errors, failed to load resource, woocommerce, wordpress, xstore
You must be logged in to reply to this topic.Log in/Sign up