Styles/Theme not loading

Re: Styles/Theme not loading

by Ken Task -
Number of replies: 3
Picture of Particularly helpful Moodlers

Might be way off base here, but ...

There's lots of caching going on:

Check out: /moodledata/cache/cachestore_file/default_application/core_yuimodules

one could remove manually and that should rebuild.

With multiple Moodles on same server using the same PHP, what of zend_opcache?   Have a script that checks what opache has cached?

Can acquire one:

https://rtcamp.com/tutorials/php/zend-opcache/

and install on server to see as well as refresh.

'spirit of sharing', Ken


In reply to Ken Task

Re: Styles/Theme not loading

by Vasanthakumar Sithuraj -

Hi,

*Problem resolved, Solution at the end the message*

I had faced the same issue with the latest stable release as of now which is 2.9.2+

I have tried all the possible solutions mentioned in this thread as well as on Google / Stackoverflow.com; none of it fixed this problem and site was crashing every time I refresh cache using Ctl+F5 (with the exact same errors mentioned in this post).

I had to figure out myself that the "pagespeed" module was conflicting with something (which I don't know). I tried disabling pagespeed filters one by one, and the issue persisted even after disabling all the filters.

Finally I had to completely disable pagespeed module in my Apache by commenting out the following lines on my httpd.conf (and of course I need to restart my Apache server once after this change). Once done this my problem completely disappeared; but I could see my site is slightly slow, but it's much better than the completely broken one.


Disable pagespeed module as shown below by commenting the two lines in httpd.conf and restart Apache.

#Include conf/pagespeed.conf
#Include conf/pagespeed_libraries.conf


regards,
Vasanth


Average of ratings: Useful (2)
In reply to Vasanthakumar Sithuraj

Re: Styles/Theme not loading

by Ken Task -
Picture of Particularly helpful Moodlers

First, thanks for posting back solution to the issue.  More should do that.

Yep, very wise to turn off pagespeed (a google add-on for Apache servers which is now part of the GoogleGrave Yard.  There are now articles written each year on the topic.).    That's one minus for using Google API's and offerings ... what Google giveth, Google can Taketh away!    They do provide advanced warnings to give users of Google services (paid or free) time to find an alternative and adjust, but unless users stay on distribution list/watch list or something, many get 'blind sided'.  All that to say, I too, had been 'blind sided' by pagespeed  one Apache server (just glad I hadn't really decided it was  good enough to use and configured all the servers I support with it!).

Have started to pay more attention to Google 'things' in that light ... especially those that are plugins to Moodle.  Am of the opinion now, that even though there is a plugin, one might be wiser to see how else to integrate - example: don't use Google OAuth 2 authentication but your own LDAP, but provide custom menus to go to the entities Google Domain Drive/Docs/Sheets, etc..   Using FireFox/IE/Safari in a typical fashion would mean another login/password routine, but with Chrome and Chromebooks ... not so!

Also a reason for Moodle users to think about any add-ons/plugins.  Like many, I too, loaded up my 1st Moodle where I had learned to install add-ons and plugins and themes, only to be in a 'pickle' the first upgrade. :\  (Lesson learned though!)

Always something to think about, isn't there? ;)

'spriit of sharing', Ken

Average of ratings: Useful (1)
In reply to Ken Task

Re: Styles/Theme not loading

by John McDonald -
I'm using 2.6 as my production server. I'm working on upgrading to 3.X. I have literally everything working except the initial load of the site, the styles inconsistently show/don't show. Upon a page refresh, the styles display correctly. I have tried the slasharguments, pagespeed, etc. to still have the occassional issue. I've deleted the cache in the moodledata folder, I've deleted the root config.php and recreated it from install, and still have the issue. 


My 2.6 server is running win server 2008, IIS 7, PHP 5.5.9, MySQL 5.1.72. 

My 3.X servers are running Win server 2008, IIS 7, PHP 7.0.5, MySQL 5.7.12.

PHP is configured the same on both. The only difference with MySQL is the table type being barracuda vs antelope.


Any ideas are welcome! Thanks!