Can not open Site Administration, it keep loading forever

Can not open Site Administration, it keep loading forever

by Amira Elsayed -
Number of replies: 4

I have a moodle website that was working fine on my server when I move it to client server a very strange behavior appear


Sometimes after I login to website as admin and try to open the Site Administration it keep loading forever without any error in apache log or Server log or even browser console 


and then the whole website stop opening for sometime and after that I open the website and it works 


I have tried the scenario in different time slots in days and from different machines      


    000.000.000.000 - - [01/Oct/2020:12:45:09 +0200] "GET /theme/image.php/lambda/core/1600129509/i/loading_small HTTP/1.1" 200 1515 "https://lms-staging.com/theme/styles.php/lambda/1600129509_1/all" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36"

    000.000.000.000 - - [01/Oct/2020:12:24:10 +0200] "POST /lib/ajax/getsiteadminbranch.php HTTP/1.1" 200 7348 "https://lms-staging.com/my/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36"

    000.000.000.000 - - [01/Oct/2020:12:45:42 +0200] "GET /lib/ajax/service-nologin.php?info=core_output_load_template_with_dependencies&cachekey=1600129509&args=%5B%7B%22index%22%3A0%2C%22methodname%22%3A%22core_output_load_template_with_dependencies%22%2C%22args%22%3A%7B%22component%22%3A%22core%22%2C%22template%22%3A%22pix_icon%22%2C%22themename%22%3A%22%22%2C%22lang%22%3A%22en%22%7D%7D%5D HTTP/1.1" 200 161 "https://lms-staging.com/my/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36"



I am using lambada theme and moodle version 3.9

Can anyone help please ?

Average of ratings: -
In reply to Amira Elsayed

Re: Can not open Site Administration, it keep loading forever

by Ken Task -
Picture of Particularly helpful Moodlers
Does the client site have the same fully qualified domain name as the server where you developed/moved from? Does config.php file have correct info for new hosting?
Is new server using any additional protections for web ... like mod_security, etc.
You probably should use FireFox tools to test new server.
'SoS', Ken
In reply to Ken Task

Re: Can not open Site Administration, it keep loading forever

by Amira Elsayed -

Does the client site have the same fully qualified domain name as the server where you developed/moved from? // yes

Does config.php file have correct info for new hosting? // yes

Is new server using any additional protections for web ... like mod_security, etc. // I do not know, the server is managed by client beside the problem happen sometimes and not happen sometimes

You probably should use FireFox tools to test new server. // tools like what


In reply to Amira Elsayed

Re: Can not open Site Administration, it keep loading forever

by Thorsten Bartel -
Picture of Core developers
Are you positive that "lms-staging.com" is your own / your client's domain? It sounds rather generic to me...
You might want to check the Search- and Replace-Tool and update any old links lingering in the database:
https://docs.moodle.org/39/en/Moodle_migration#Update_links_containing_wwwroot_in_the_database

WARNING: When manipulating the database with this script, always make a backup in advance!
In reply to Amira Elsayed

Re: Can not open Site Administration, it keep loading forever

by Guillermo Dova -
First of course, do a full backup, then this is what I would try:
- delete cache folders (/moodledata/cache, /moodledata/localcache, /moodledata/temp)
- check /.htaccess if any config is in conflict with the new hosting
- check php version is correct
- clean browser cache
hope it helps