Support Forum
I'm hoping @fidosysop-2 may be able to chime in here since I'm having trouble getting Cloudflare to play nice with SimplePress...
To make a long story short, I'm testing Cloudflare on our staging domain. Everything worked fine with the free account. As soon as I upgraded the CF account to enable the firewall features, the forums layout went all wonky, as if all the styles are broken.
I have purged the cache at Cloudflare, cleared browser cache, flushed style and script cache within SimplePress, but nothing helps. In fact I have paused Cloudflare but the style issues remain. I reverted to the default Reboot theme, still everything looks broken.
As suggested, I had the combined caching turned off in SimplePress and the minify option enabled at Cloudflare. Rocket Loader is disabled. But now, even with both of those turned off, I can't get the forums to display properly...as I mentioned, even with Cloudflare paused.
Any recommendations are greatly appreciated.
Simple:Press powers the Tripawds Discussion Forums.
It's better to hop on three legs than to limp on four.
The Tripawds Blogs Community is made possible by The Tripawds Foundation.
are you using both are css and js cache, plus the cdn? after turning those off, did you flush the cdn? can you directly load the theme css file in the browser?
hopefully, Doc will stop on by...
Visit Cruise Talk Central and Mr Papa's World
Mr Papa said
are you using both are css and js cache, plus the cdn?
At this point neither, I have Cloudflare paused, and the forum layout is still whacked after purging all cache via browser, SP and CF.
can you directly load the theme css file in the browser?
Yes, and I read how Cloudflare likes validation, so I confirmed that all the CSS files falidate.
What doesn't make sense to me is that the issue started as soon as I turned on the Clouflare firewall feature, yet it remains even though I have paused all Cloudflare features so it is only handling DNS.
Just not sure what next troubleshooting steps to try...already did the usual plugin/theme conflict testing.
Thanks for your thoughts!
Simple:Press powers the Tripawds Discussion Forums.
It's better to hop on three legs than to limp on four.
The Tripawds Blogs Community is made possible by The Tripawds Foundation.
Mr Papa said
can you directly load the theme css file in the browser?
I thought so...upon further investigation, I discovered the following file is not loading:
/wp-content/sp-resources/forum-themes/reboot/styles/reboot.php
That would explain things. But I can't figure out why. The file loads the rendered css stylesheet on our live site just fine. Cloudflare is still turned off. And I found the following error in the server logs:
[Wed Feb 21 20:15:30.853683 2018] [access_compat:error] [pid 1389] [client 174.237.136.165:11268] AH01797: client denied by server configuration: /home/triblogs/public_html/wp-content/sp-resources/forum-themes/reboot/styles/reboot.php, referer: tripawds.net/forums/
Trying to figure that one out now... <scratches: head>
Thanks for the nudg in the right direction as usual!
Simple:Press powers the Tripawds Discussion Forums.
It's better to hop on three legs than to limp on four.
The Tripawds Blogs Community is made possible by The Tripawds Foundation.
could be a permission issue... one of the parent folders?
Visit Cruise Talk Central and Mr Papa's World
Mr Papa said
could be a permission issue...
Thanks again, I checked all related directories and no permissions issues there.
Trying to wade through the mod_security config to shed some light on the vague "denied by server config" warning, but not finding anything there either.
Simple:Press powers the Tripawds Discussion Forums.
It's better to hop on three legs than to limp on four.
The Tripawds Blogs Community is made possible by The Tripawds Foundation.
Another possibility of course, is that it just doesn't want to allow you to run a .php file as a .css file which is what is being asked of it. But I do not know cloudflare so not sure how you would find that out or adjust for it. But maybe looking to see if you can find any reference to this might help track something down.
YELLOW
SWORDFISH
|
Yellow Swordfish said
Another possibility of course, is that it just doesn't want to allow you to run a .php file as a .css file...
Brilliant minds think alike. I considered this too and found this doc detailing what file types Cloudflare will cache for static ontent. And no, they do not cache .php files, which seems odd since @fidosysop-2 never reported such an issue like this.
Anyway, this issue didn't stop there for me. I pointed our DNS back to our previous nameservers to completely rule out Cloudflare. The reboot stylesheet is still throwing a 404 with "denied by server config" errors. For the life of me, I cannot figure out why. The file is there, and it is not a permissions issue. Still working with my server guy to determine if/how mod_sec may be at play here. Any other suggestions for troubleshooting are always appreciated.
Simple:Press powers the Tripawds Discussion Forums.
It's better to hop on three legs than to limp on four.
The Tripawds Blogs Community is made possible by The Tripawds Foundation.
try switching to a css only simple press theme... sounding more and more like @yellow-swordfish hypothesis of server not allowing php file as the css... if you switch to css only and it works, even more data to support that...
Visit Cruise Talk Central and Mr Papa's World
Mr Papa said
if you switch to css only and it works, even more data to support that...
Indeed – the CSS Only Theme displays the forum as expected. Reverting to Reboot Child Theme breaks the layout again.
Now, to determine how everything was working fine with the Reboot Child Theme then went wonky with timing that coincided precisely with the Cloudflare activation (now disabled)...that is my new challenge.
Simple:Press powers the Tripawds Discussion Forums.
It's better to hop on three legs than to limp on four.
The Tripawds Blogs Community is made possible by The Tripawds Foundation.
1 Guest(s)