Blank Site for guests
-
NSFW
2 days now i think, i say this based on pageviews
my site looks blank for guests but is visible for logged users.
Autoptimize is set to be the same for logged and non logged users.The page I need help with: [log in to see the link]
-
AO doesn’t seem to be active now central4all ?
i closed it, now is open
check this page because first seems to be workingtested in anymous/ private browser window in both Chrome & FF; seems to work for me?
see e.g. https://i.imgur.com/zpLkAJO.jpg and https://i.imgur.com/mZYRD1L.jpg
Please try the link i gave you the second one,
https://prnt.sc/sha7w0
it seems that there is a problem with wpforo,
i just found outconfirmed broken, try disabling CSS or JS or HTML or the other optimizations to pinpoint?
Inline and Defer CSS
Inline all CSS
Disabled for this to work, because both creating this problemAggregate JS-files
Also aggregate inline JS
Force JavaScript in <head>
From js Already Disabled because in mobile version photos are not visiblePagespeed is almost at levels with autoptimize
Is there a way to
1) exclude wpforo from all optimizations
2) guests and logged members to see the same think?if not is useless, i have to guess each time if there error or not.
use this snippet to disable AO on your site’s forum;
add_filter('autoptimize_filter_noptimize','ao_noptiforum',10,0); function ao_noptiforum() { if (strpos($_SERVER['REQUEST_URI'],'escortsforum')!==false) { return true; } else { return false; } }Thank you , what about
2) guests and logged members to see the same think?
because i have to guess each time if there is a new error or not.
In the settings is set, you gave me in the past a code but it seems is not working.what code/ what setting?
In the settings i have enabled
Also optimize for logged in editors/ administrators? so i can see the same with the guests.
This was not functioning to my site and you gave me a code to add, i cant find it now.
Till now everything was working fine but the last two days i had this problemguess the code (no idea what I provided you with) disables AO in certain contexts (maybe wp foro or other conditions), so based on that code snippet your experience will always be different. try finding it and disabling it?
Till now everything was working fine but the last two days i had this problem
gues some plugins (or your theme) updated in the mean time?
Normal
Now non forum pages appear as white with your code
ah, my previous code is interfering somehow I guess, hard to troubleshoot without knowing what’s in that, but try this one;
add_filter('autoptimize_filter_noptimize','ao_noptiforum',10,1); function ao_noptiforum($in) { if (strpos($_SERVER['REQUEST_URI'],'escortsforum')!==false) { return true; } else { return $in; } }The forum is now working properly. Is there something similar we can do about images on mobile? When Aggregate JS-files? is checked then images appear white on mobile browsers (and only mobile browsers)
When I try to open the image I get this: data:image/svg+xml and some code, even though it’s not an svg image
The topic ‘Blank Site for guests’ is closed to new replies.