XStore Errors – Failed to load resource then 500 Server Error

This topic has 23 replies, 2 voices, and was last updated 7 years, 11 months ago ago by Olga Barlow

  • Avatar: Mike_RI
    Mike_RI
    Participant
    December 15, 2016 at 00:54

    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!

    Please, contact administrator
    for this information.
    22 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    December 15, 2016 at 08:08

    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

    Avatar: Mike_RI
    Mike_RI
    Participant
    December 15, 2016 at 15:04

    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.

    Avatar: Mike_RI
    Mike_RI
    Participant
    December 15, 2016 at 16:15

    I was just able to duplicate the error on the homepage. See private link to screenshot

    Please, contact administrator
    for this information.
    Avatar: Mike_RI
    Mike_RI
    Participant
    December 16, 2016 at 14:12

    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.

    Please, contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    December 16, 2016 at 14:41

    Hello,

    Provide me, please, FTP access. We need to check your site more detailed.

    Regards

    Avatar: Mike_RI
    Mike_RI
    Participant
    December 16, 2016 at 14:47

    Ok, FTP access info attached privately!

    Thank you!

    Please, contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    December 16, 2016 at 17:16

    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

    Avatar: Mike_RI
    Mike_RI
    Participant
    December 16, 2016 at 22:03

    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.

    Avatar: Mike_RI
    Mike_RI
    Participant
    December 16, 2016 at 22:22

    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.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    December 19, 2016 at 16:17

    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

    Avatar: Mike_RI
    Mike_RI
    Participant
    December 19, 2016 at 20:14

    please see private content ….

    Please, contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    December 20, 2016 at 11:00

    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

    Avatar: Mike_RI
    Mike_RI
    Participant
    December 20, 2016 at 15:37

    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.

    Please, contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    December 22, 2016 at 08:21

    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

    Avatar: Mike_RI
    Mike_RI
    Participant
    December 22, 2016 at 12:41

    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.

    Avatar: Mike_RI
    Mike_RI
    Participant
    December 22, 2016 at 12:45

    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.

    Avatar: Mike_RI
    Mike_RI
    Participant
    December 22, 2016 at 12:50

    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.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    December 23, 2016 at 09:04

    Hello,

    Problem is related to server settings. Let’s continue our conversation in chat it will be faster and more effective.

    Regards

    Avatar: Mike_RI
    Mike_RI
    Participant
    December 23, 2016 at 13:15

    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.

    Please, contact administrator
    for this information.
    Avatar: Mike_RI
    Mike_RI
    Participant
    December 23, 2016 at 13:58

    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:

    http://stackoverflow.com/questions/33811543/php-and-mod-fcgid-ap-pass-brigade-failed-in-handle-request-ipc-function

    Avatar: Mike_RI
    Mike_RI
    Participant
    December 23, 2016 at 14:02

    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.

    Please, contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    December 23, 2016 at 16:23

    Hello,

    Contact your hosting provider, please. Error in the error logs is not related to theme settings. It’s server settings.

    Regards

  • Viewing 23 results - 1 through 23 (of 23 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.