Site logo

Archived topic

Sometimes my pages appear broken!

3 replies · Started by johnaps on May 25, 2022

Viewing posts 1–4 of 4

Hello!

For a long time now, sometimes my pages appear kinda broken, as if my child theme function.php is loading or is loaded after page, i dont know. I say that because it seems like the customizations made there arent loaded.

This happens very few times, but it does happen for a long time now and i need to troubleshoot this.

You can see it happen here...
https://drive.google.com/file/d/1elAxUkSppQNsG366mHmwjM_M2pHC8iIY/view
Example url but it is hard to test it for yourselfs https://soforth0t3st.kinsta.cloud/%CF%83%CE%B1%CE%BC%CF%80%CF%8C/epaggelmatika-sampo-emanuele-398/

It can happen anytime, but it can usually trigger it if i clear wp-rocket cache and do a hard refresh on browser (cntr + shift + R).

Can you please give me any ideas on how can i start troubleshooting this?

The only notices with wp_debug set to true are the following which i dont think are related

Notice: Constant COOKIE_DOMAIN already defined in /www/soforth0t3st_998/public/wp-config.php on line 185
Notice: Constant COOKIEPATH already defined in /www/soforth0t3st_998/public/wp-config.php on line 187
Notice: Constant SITECOOKIEPATH already defined in /www/soforth0t3st_998/public/wp-config.php on line 189
Notice: Constant PLUGINS_COOKIE_PATH already defined in /www/soforth0t3st_998/public/wp-config.php on line 191
Notice: Constant ADMIN_COOKIE_PATH already defined in /www/soforth0t3st_998/public/wp-config.php on line 193

Same notices are even when the page gets broken...

I have also tried deactivating wp-rocket and assetcleanup and the same does happen in some few page loads...

Hi there,

it looks as those some styles were not loaded on the page.
Any plugins like Asset Cleanup or WP Rocket that are manipulating the CSS and potentially caching those files are most likely the cause of the problem.
And the problem may persist after disabling them, if the page was Cached ( on your server, the ISP, router or browser ) incorrectly.

So you may be experiencing a Cached page not getting updated after those plugins do their thing.

I will look into that approach David, and thank you for your input.

Just to have more roads to explore, i wanted to ask if your mind does also come up with any ideas relating to a loading problem of php, based on what you saw?

Or something else entirely if you think i can explore other things as well...

If it were a PHP issue then generally i would expect to see an error or parts of the page to be actually missing. Whereas the video looked like a case of missing styles. If/When it happens again right click > inspect the page and check the Console in the developers tools for any missing resources or errors

This archived topic is closed to new replies.