Blank Pages and Redirect Loop Issue Solved
-
We were seeing the pages on our wordpress site appearing blank for users who are not logged in. I checked error logs and found nothing. The server itself was returning a 200 status code.
After narrowing the issue down to WC Vendors, I installed WC Vendors and WooCommerce in a clean wordpress install with nothing else. The issue occurred on the clean install so it is not a theme or plugin conflict.
After taking a look through the WC Vendor plugin code, I found the issue being caused by the check_access() function in WCV_Orders which is mapped to template_redirect. This seems to be tied to the Orders Page setting which was not set by default.
After setting the order page setting in WCV settings the issue stopped occuring. If you clear the order page setting again, all site pages appear blank again. If you complete the woocommerce setup and leave orders page blank, accessing pages will cause a redirect loop.
I’m guessing that at least the orders page setting is supposed to be set by default after installing. I would also guess that blank pages and redirect loops are not supposed to occur when it’s not set so I wanted to detail my findings here. Let me know if I should be submitting that as a bug report somewhere.
- The topic ‘Blank Pages and Redirect Loop Issue Solved’ is closed to new replies.