Only "Elemental" theme working after moving site
Permalink
I made a C5.7.4.1 website on my local sandbox using MAMP. It uses the "Fundamental" theme and works as expected on my local server.
However, after I move the site to the production server, any page using the "Fundamental" theme only displays if I clear the cache right before visiting the page. If I don't clear the cache, the page stop loading after the first CSS file.
Pages not using the theme (Dashboard, etc) show up just fine.
Of course, all caches are disabled.
No errors are displayed.
If I switch the entire site to the "Elemental" theme, then everything works again. Changing for any other theme recreates the cache problem.
This seems a problem with the CSS generation from LESS files, but I can't figure how to fix this.
Update: Increasing the memory allocation for php scripts to 256M solved the problem.
However, after I move the site to the production server, any page using the "Fundamental" theme only displays if I clear the cache right before visiting the page. If I don't clear the cache, the page stop loading after the first CSS file.
Pages not using the theme (Dashboard, etc) show up just fine.
Of course, all caches are disabled.
No errors are displayed.
If I switch the entire site to the "Elemental" theme, then everything works again. Changing for any other theme recreates the cache problem.
This seems a problem with the CSS generation from LESS files, but I can't figure how to fix this.
Update: Increasing the memory allocation for php scripts to 256M solved the problem.
Did you run automated jobs after the move?
I did run the sript "http://www.mysite.com/ccm/system/upgrade... ", but maybe you are thinking about other jobs ?
In the dashboard, under System & Settings, click Automated Jobs. When I move sites, I run automated jobs and it puts the site as it was prior to moving.
I ran the jobs, but with no avail.
Is it possible that server's memory for php scripts get exhausted ?
The php log shows:
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 82 bytes) in ~/concrete5.7.4.1/application/files/cache/lessphp_g0jrq41ue5ssgko4cc4c4wsksc8wwc4.lesscache on line 50, referer: ~/concrete5.7.4.1/index.php/dashboard/system/optimization/clearcache/cache_cleared
Is it possible that server's memory for php scripts get exhausted ?
The php log shows:
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 82 bytes) in ~/concrete5.7.4.1/application/files/cache/lessphp_g0jrq41ue5ssgko4cc4c4wsksc8wwc4.lesscache on line 50, referer: ~/concrete5.7.4.1/index.php/dashboard/system/optimization/clearcache/cache_cleared
SOLVED: It was indeed a memory issue. Putting " memory_limit = 256M " in the php.ini config file fixed the problem.