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!Site URL: hidden Theme version: 1.0.5 WooCommerce version: 2.6.9
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?
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 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.Site URL: hidden
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.
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.
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.
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.
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.
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.
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.
You must be logged in to reply to this topic.Log in/Sign up
One standard license is valid only for 1 project. Running multiple projects on a single license is a copyright violation.
The message was successfully sent
Your shopping cart is empty