1
votes

I am having a strange problem where my product pages are blank most of the time in woocommerce. If you click a product, sometimes it may or may not load, and if it doesn't, you have to refresh it multiple times until the page finally shows the content. I noticed this only happens to users who are not logged into wp-admin.

I had W3 caching plugin but I deactivated and deleted and the problem still persists? I am not sure how this started... I am using the most updated version of woocommerce.

Website: http://museiam.ca/

I would appreciate any help as I'm quite stumped.

1
Are you sure you are giving the page time to load? I notice there there is a loading bar and sprite at the top of the page, but if you scroll down a bit they disappear and it does look like the page has stopped loading.Howli
The loading bar wrapper is just not fixed, so when you scroll it will disappear. I am giving it time to load, as the loading bar completes and the page is blank. The header and footer still show however not the product content. Not sure why :(John B.
Hi again. I took a look at my error log and came accross this "Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace." Would this in anyway have something to do with it? I can post more of the error log if you wish!John B.
I also noticed this error in my error log. I am sure it is one of the two. "ModSecurity: Access denied with code 406 (phase 1). Operator EQ matched 0 at REQUEST_HEADERS. [file "/etc/httpd/modsecurity.d/eig_rules.conf"] [line "237"] [id "900177"] [msg "Brute Force Attempt HTTP 1.0 w/o Accept Header"] [hostname "www.dynamic-gym.com"] [uri "/wordpress/wp-admin/edit.php"] [unique_id "VK2yg0KT9KIAACE4cM4AAAVA"]"John B.

1 Answers

2
votes

Issue #1 - Failing to load, redirect loop

According to your comments about the error logs the product page is doing a redirect to itself, and getting stuck in that loop. This explains the "10 internal redirects" error message. The access log error is likely just a side effect of having so many of the same repeat requests in such a brief time window.

Note that I could not reproduce this issue, but I got a very similar issue (below). I was unable to determine why this is happening through poking around. This may take some code investigation (aka, on your end). Is this a custom WP theme?

Issue #2 - Loading complete, but not displayed

A second type of error occurs which is similar. Middle-click or open a product in a new tab. Or click on a direct link to a product, such as: http://museiam.ca/product/black-cut-sleeve-sweater/

The content will load, but it will be a white page. In this case, the javascript has loaded content but did not complete the loading event to make it visible.

You can confirm the second issue by opening your dev tools (for chrome: F12), and entering the following javascript into the script console:

jQuery('.global_content_wrapper').css('opacity', 1)

This should make the content visible.

EDIT: It seems issue #2 is also inconsistent, sometimes it does work - though much less often than following a link from within the website. These two issues may be one in the same.