Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Cloudflare Not Playing Nice
Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Feb 17, 2018 - 8:12 pm

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.

TripawdsSimple: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.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 18, 2018 - 1:09 am

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...

Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Feb 21, 2018 - 9:30 pm

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!

TripawdsSimple: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.

Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Feb 21, 2018 - 9:48 pm

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!

TripawdsSimple: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.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 21, 2018 - 11:05 pm

could be a permission issue... one of the parent folders?

Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Feb 22, 2018 - 2:36 pm

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.confused

TripawdsSimple: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.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 22, 2018 - 3:33 pm

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Feb 23, 2018 - 5:22 pm

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.

TripawdsSimple: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.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 23, 2018 - 8:19 pm

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...

Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Feb 27, 2018 - 7:49 pm

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.

TripawdsSimple: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.

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626