Fatal Error When Adding Page

Permalink
Hi, I recently got Concrete5 5.3.3 up and running locally on my Windows (I know) machine. I'm using WAMP and am running Apache 2.2.11, Mysql 5.1.33 and PHP 5.3.0

When i add a page I get the following error:

Warning: Parameter 1 to ADOConnection::GetInsertSQL() expected to be a reference, value given in C:\mysite\concrete\libraries\database.php on line 73

Fatal error: Uncaught exception 'ADODB_Exception' with message 'mysql error: [1065: Query was empty] in EXECUTE("") ' in C:\mysite\concrete\libraries\3rdparty\adodb\adodb-exceptions.inc.php:78

Has anyone come across this or know how to fic it without obviously eyeballing the code and attempting to debug it? This could be a bit of a show stopper really.

 
aeroclown replied on at Permalink Reply
aeroclown
This might not completely address your problem, but you need php 5.2 or better with concrete 5.3.3. I am running 5.2.9 I believe.
ryan replied on at Permalink Reply
ryan
The pass by reference is much stricter in php 5.3.0. Concrete 5.3.3 should work with that, but I haven't seen how the windows version deals with this differently.

If you have the opotion run php 5.2.11

The adodb library that c5 is using hasn't been updated for php 5.3.0 yet as far as I know.
reevo replied on at Permalink Reply
Thanks for replies. I am trying out a few things and will see how i go but yeah seems like a version conflict really. Will report back.
ryan replied on at Permalink Reply
ryan
Definitely let us know - any improvements that can be made to make in more windows compatible - mainly because folks dev in WAMP
would be much appreciated.

Have you tried a clean install in WAMP with 5.3.3?
reevo replied on at Permalink Reply
OK so i have successfully installed C5 5.3.2 on PHP 5.2.9-2. I think once the site is live, it will be on a box with 5.2.
So next step is to try and upgrading to C5 5.3.3 with the update steps mentioned -http://www.concrete5.org/help/building_with_concrete5/updates/news/...
reevo replied on at Permalink Reply
Followed the steps fromhttp://www.concrete5.org/help/building_with_concrete5/updates/news/...

Upgraded successfully to 5.3.3

So... PHP 5.2.9-2 and C5 5.3.3 are playing nicely together.

Just flicked PHP to 5.3.0 and when adding a page i get the original error from the initial post^^^. So i'm all set really. Not sure if it's PHP 5.3.0 generally or the fact that i am running it on WAMP.
robleyd replied on at Permalink Reply
Since upgrading to Concrete 5.3.3 I have also just had this error reported and confirmed by me trying an update. I'm running php 5.3 in a Centos environment.

Edit:

I have resolved the problem (but not in the best way, I suspect).

When I upgraded to Concrete 5.3.3 I got the error

Warning: Call-time pass-by-reference has been deprecated in /path/to/webroot/concrete/models/attribute/key.php on line 247

and followed the advice inhttp://www.concrete5.org/index.php?cID=22125... to resolve the problem. Which seemed just dandy until someone tried to edit a page and triggered the error about Parameter 1.

My solution was:

1) restore the pass by reference in key.php
2) Add to the apache vhosts config file for the site in question

php_flag allow_call_time_pass_reference 1

And now the error is gone. I just wonder if it will cause something else to bite me in the a$$ just when I don't expect it :-)