Edit templates => White screen [SOLVED]

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
Andor
Forum Members
Forum Members
Posts: 49
Joined: Sun Feb 19, 2006 1:42 pm

Edit templates => White screen [SOLVED]

Post by Andor »

I just moved the app to a new server. As far as I can see it all works fine, except for one thing: when trying to edit a template, the screen goes white :o

I can copy and create a new template, but not edit it.

What, typically, can I check or change in order to fix these kind of problems?

My setup:
CMSMS 1.0.8
PHP 4.4.7
MySQL 4.1
Apache 1.3.31

Thanks
Last edited by Andor on Fri Jun 29, 2007 9:51 am, edited 1 time in total.
jatinder
Forum Members
Forum Members
Posts: 17
Joined: Thu Apr 12, 2007 1:49 pm

Re: Edit templates => White screen

Post by jatinder »

Usually, white screens are caused in PHP when an error occurs and the error_reporting is set to 0.

Set error_reporting to E_ALL and then try again.
ars17

Re: Edit templates => White screen

Post by ars17 »

What modules do you have installed?  I had the same problem with editing global content blocks not too long ago.  I could get to the edit screen but once I hit submit or apply, the screen went white.  I discovered it was the Archiver module causing some error and once it was uninstalled, normal operation was restored.   

BTW, I found out what module was causing the error by looking at the php error logs as suggested...so check the errors and logs (if you can) and see if you can figure out what's happening.

Adam
Andor
Forum Members
Forum Members
Posts: 49
Joined: Sun Feb 19, 2006 1:42 pm

Re: Edit templates => White screen [SOLVED]

Post by Andor »

Rather embarrassing really  :-[  edittemplate.php just wasn't there in full - for some reason it didn't ftp over completely. Well, now it works!

A question though: how do I set and where do I check the php error logs? Through the hosting admin system or in CMSMS?
jatinder
Forum Members
Forum Members
Posts: 17
Joined: Thu Apr 12, 2007 1:49 pm

Re: Edit templates => White screen [SOLVED]

Post by jatinder »

If you are on cPanel based hosting, you can view the errors from the cPanel itself by clicking on "Error Log".

To enable error reporting, add this entry in your .htaccess file.

Code: Select all

php_flag error_reporting E_ALL & ~E_NOTICE
php_flag log_errors 1
To display the errors in the browser itself, add this line also in addition to the above:
php_flag display_errors 1
This should be used during development phase only. display_errors should always be off for production sites.


You can find more about error reporting at: http://www.php.net/manual/en/ref.errorf ... -reporting
Post Reply

Return to “CMSMS Core”