Caching problem - template parse errors

General project discussion. NOT for help questions.
Post Reply
mwyrebski
New Member
New Member
Posts: 4
Joined: Wed Nov 07, 2007 10:57 am

Caching problem - template parse errors

Post by mwyrebski »

Hi,

For a few days i have weird problems with cached templates.

Every hour or so i get:

PHP Parse error:  parse error in /srv/www/vhosts/www2/tmp/templates_c/%%7E^7E8^7E8F1701%%template%3A20.php on line 159

or

PHP Parse error:  parse error, expecting `']'' in /srv/www/vhosts/www2/tmp/templates_c/%%7E^7E8^7E8F1701%%template%3A20.php

When inspecting these templates i noticed that they are cut in the middle. 
For example the end of one of the templates looks like this:



caching && !$this->_cache_including): echo '{nocache:af1ef4309abe1225ee5f46a10d13d131#2}'; endif;$_cache



Clearing cache solves this problem only for a while.

I use latest version of cmsms (1.2.3).  PHP Version 4.3.4,  Apache/2.0.49 (Linux/SuSE), mysql 4.0.18
I have tried to change some php.ini options (memory_limit, max_execution_time) but the problem still persist.

Server is quite beefy (2GB RAM, RAID 5, intel Quad core) with minimal load so the problem must be somewhere else.

I didn't change anything in server configuration nor installed any cmsms modules recently.  Problem just showed up
a few days ago without any reason.  My only suspicion is that maybe site grew too big? Now i have about 260 pages.


Did anyone encounter this kind of problem? Any suggestions? 

Alternatively is there a way to disable caching globally?


Any help is greatly appreciated.
mwyrebski
New Member
New Member
Posts: 4
Joined: Wed Nov 07, 2007 10:57 am

Re: Caching problem - template parse errors

Post by mwyrebski »

ok. i really like to respond to my own questions.

turns out that the problem was with disk space.

so if you are experiencing weird problems with template caching "df -h" is your friend. ;)
Pierre M.

Re: Caching problem - template parse errors

Post by Pierre M. »

Hello,
mwyrebski wrote: turns out that the problem was with disk space.
Thank you for sharing this. I would not have thought about disk space.
Feel free to improve the "trouble shooting" section in the wiki with your forum account.

Pierre M.
Post Reply

Return to “General Discussion”