Page 1 of 1

Apache/2.0.54 PHP/5.0.5 -- Error when entering the admin area

Posted: Mon Sep 12, 2005 8:30 am
by frquadrat
Hi,

after upgrading my server to PHP 5.0.5, the site itself works correctly, but I'm not able to enter the admin area anymore.
CMS Version is 0.10.1

The following error message is shown in the browser as soon as I enter the admin-url into the browser:

          Fatal error: Only variables can be passed by reference in /var/www/cms/lib/classes/class.admintheme.inc.php on line 143

Any hints? Any information I could give you to get a better clue of what's going on?

Re: Apache/2.0.54 PHP/5.0.5 -- Error when entering the admin area

Posted: Mon Sep 12, 2005 5:33 pm
by sjg
The short answer: it's fixed in svn :)

The long answer: restrictions on the way references are used were enforced in PHP 4.4 and PHP 5.0.5. I guess I didn't really understand references as well as I thought I did when I wrote some of that code.
The quick fix for that problem is to change line 143 from

Code: Select all

            $this->script = array_pop(explode('/',$this->url));
to

Code: Select all

            $this->script = array_pop(@explode('/',$this->url));
Unfortunately, other places have similar errors. If you're using News, you'll also have to get the new News module from svn. Be aware that svn is undergoing a lot of changes right now with Wishy's overhaul. Sorry to be the bearer of bad news :(

___Samuel___

Re: Apache/2.0.54 PHP/5.0.5 -- Error when entering the admin area

Posted: Sun Jan 08, 2006 3:33 pm
by wolke
It runs !!!!!
Many Thanks !!!!!

Best Regards - Wolke.