Pre-Installation Prob: Fatal error: Call to a member function

Permalink
After I unzipped the zip file, I get the following when i try to access the directory
Fatal error: Call to a member function getCollectionAttributeValue() on a non-object in /concrete5.2.0/concrete/elements/header_required.php on line 19

Any ideas? I checked the requirements for the server to be able to work. I tried chmod the files but still same thing. No idea what's wrong, there has to do with the object, It seems that the $c is not created.
HELP!

pvs
 
synlag replied on at Permalink Reply
synlag
pvs replied on at Permalink Reply
pvs
nop! it's not that
jeffwillden replied on at Permalink Reply
I tried to re-download and re-unzip from the shell on the server in case FTP scrambled something, same result.
jeffwillden replied on at Permalink Reply
I eventually solved this error by adding the following two lines to a file named php.ini in the Concrete root folder:

suhosin.request.max_vars = 1024
suhosin.post.max_vars = 1024

Apparently the PHP security tool Suhosin limits the number of variables that can be passed and these statements lift those limits enough for Concrete5 to run.
gorgyme replied on at Permalink Reply
I tried this as we also run suhosin on our servers - didn't work. Still getting the getCollectionAttributeValue() fatal error. Any other ideas?
gorgyme replied on at Permalink Reply
Just managed to work out what was the issue, might be the same for some of you.

If you are running your server in PHP 4 compatability mode, C5 doesn't like it and throws up a completely useless error that I mentioned prior.

Turn this compatability off, and it will sort itself out.
frz replied on at Permalink Reply
frz
concrete5 requires php5.x+