Page 1 of 1
Edit templates => White screen [SOLVED]
Posted: Wed Jun 27, 2007 12:20 am
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
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
Re: Edit templates => White screen
Posted: Wed Jun 27, 2007 6:11 am
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.
Re: Edit templates => White screen
Posted: Thu Jun 28, 2007 5:16 am
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
Re: Edit templates => White screen [SOLVED]
Posted: Fri Jun 29, 2007 9:50 am
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?
Re: Edit templates => White screen [SOLVED]
Posted: Fri Jun 29, 2007 12:41 pm
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