PDA

View Full Version : Failing after login


maui
08-06-04, 01:48 AM
Hi there,

After the first login screen I am getting the dreaded white screen of death. I ran check.php in the docs dir and everything looks ok. I uncommented the E_ALL line in index.php and got the following error:

Fatal error: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition cappui of the object you are trying to operate on was loaded _before_ the session was started in /home/httpd/vhosts/expertfoods.com/httpdocs/admin/dotproject/index.php on line 74

Apparently, the UI object isn't coming out of the session in tact. Any ideas?

Thanks,

Mark

ajdonnison
08-06-04, 10:53 AM
This is very odd as the include is before the session start call. Even if you have session.auto_start set it should be countered by the code at around line 52 where we detect that and close and restart the session. Perhaps your classes/ui.class.php is incomplete or corrupted?

maui
09-06-04, 01:24 AM
It looks ok to me:


[root@expertfoodssvr1 classes]# wc -l ui.class.php
864 ui.class.php
[root@expertfoodssvr1 classes]# sum ui.class.php
51484 25

Does that seem right to you?

maui
12-06-04, 12:12 AM
Ok, I figured out what is going on. As it turns out the code you mentioned on line 52 uses get_cfg_var(). Unfortunately, get_cfg_var() returns the value from php.ini even if that value has been reset in the apache configuration file. The function that returns the actual value of the config parameter regardless of source is ini_get(). Once I replaced that call it works.