thyseus
(Thyseus)
1
Hi everyone,
i have encountered a Problem that i am not able to debug.
i have reproduced this Problem on two different Servers:
after upgrading my php 5.2.6 where everything works fine to
PHP 5.3.1-5ubuntu1 with Suhosin-Patch
using the package-contributed php.ini file, no view gets rendered anymore!
I have followed this Problem up to CController::render() that doesn’t get called at all.
The whole Page just stays blank. No error Message, no Trace, nothing.
When i am calling an action where no render() is called, everything works fine.
any ideas why this happens or where i could take a look? Has anything changed in the include behavior in php5.3.1??
I am using the latest yii1.1-dev snapshot
thank you for any ideas!
mikl
(Mike)
2
Check the display_errors setting in php.ini (e.g. with phpinfo()). Also check all the webserver’s logfiles.
thyseus
(Thyseus)
3
Interesting.
E_STRICT had no effect.
But looking in my apache log files i saw that it was a simple missing semicolon. Fixed it.
But WHY doesn’t this error get reported in the Web Browser?
public function loadUser($uid = 0)
{
if($this->_model === null)
{
if(isset($_GET['id']))
$this->_model = User::model()->findByPk($_GET['id']);
if($uid != 0)
$this->_model = User::model()->findByPk($uid); // <-- this ; was missing
if($this->_model === null)
throw new CHttpException(404,'The requested User does not exist.');
}
return $this->model;
}
mikl
(Mike)
4
So WHAT is your display_errors setting? 
thyseus
(Thyseus)
5
My display_errors WAS set to Off and that’s WHY it didn’t work
thanks again for teaching me to open up my eyes more precisely! 