Page 1 of 1

Intermittent blank pages

Posted: Thu Jul 13, 2006 8:51 am
by tsaiger
HI,

I have recently restored a CMS site after a server died on me. After restoring the DB i am getting intermittent blank pages, if you click on a link you may get the page, if go somwhere else and click on the liink again you may get a blank page. Sometimes CTRL/F5 reloads the page sometimes it doesn't.

Going into the admin and resaving the page also sometimes fixes it. I have tried it with Cache/No Cache but with no Cache it just get error codes.
I have also deleted the cache files from tmp including template_c but still get the issue.

Can anyone help?

Apart from blank pages I also get the following:
{nocache:6aef611a2e90f5a71e11ad45cc027309#1} {/nocache:6aef611a2e90f5a71e11ad45cc027309#1} {nocache:6aef611a2e90f5a71e11ad45cc027309#2} {/nocache:6aef611a2e90f5a71e11ad45cc027309#2} {nocache:6aef611a2e90f5a71e11ad45cc027309#3}

Apache log shows:
[client 83.104.37.211] PHP Warning:  fread(): Length parameter must be greater than 0. in /html/cmsdemo/lib/classes/class.content.inc.php on line 2010
[client 83.104.37.211] PHP Fatal error:  Call to a member function on a non-object in /html/cmsdemo/plugins/function.cms_selflink.php on line 111
[client 83.104.37.211] PHP Warning:  fread(): Length parameter must be greater than 0. in /html/cmsdemo/lib/classes/class.content.inc.php on line 2010
[client 83.104.37.211] PHP Fatal error:  Call to a member function on a non-object in /html/cmsdemo/plugins/function.cms_selflink.php on line 111

Re: Intermittent blank pages

Posted: Fri Jul 14, 2006 4:22 pm
by tsaiger
Ok, its become apparent that the contentcache.php file in tmp/cache is being re-written by something in the system as 0k (zero k). this is causing the system to be unable to read form the file creating a PHP error and resulting in a blank page.

If someon can tell me what and why this is occurring i will be most grateful.

Re: Intermittent blank pages

Posted: Wed Jul 19, 2006 9:52 am
by tsaiger
Ok, issue solved.

The PHP memory limit was too low. Editing the phph.ini file and raising the memory limits sorted it....

Re: Intermittent blank pages

Posted: Tue Aug 01, 2006 3:05 am
by Darwin Web Design
Thank you so much for posting your self resolved issue.  This same thing happened to me and if it wasn't for your entry I would have been totally stumped!  :-\