Closed (fixed)
Project:
Content Templates (Contemplate)
Version:
5.x-2.0
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
2 Apr 2008 at 20:59 UTC
Updated:
17 Apr 2008 at 13:52 UTC
I've just installed the ConTemplate module (v5.x-2.0) in my site and after enabling the module, I just got a blank page. All of my site have got blank pages.
Looking at the apache error log I see this error:
PHP Parse error: syntax error, unexpected '=', expecting ')' in C:\\web\\enelsur.es\\sites\\all\\modules\\contemplate\\contemplate.module on line 743
Looking at that line, it looks like this:
function contemplate_eval($tmplt, $obj, &$xml_elements = null) {
And if I remove "= null" then, the error disappears and my site come to life again.
My installation:
If more info is needed, just ask for it.
Comments
Comment #1
jrglasgow commentedI am developing with PHP 5 so this is probably something with PHP 4
if you change line 743 to read
do you still have this same error
Comment #2
jpereza commentedThanks for your quick answer, jrglasgow.
I cannot check it right now, I will do when I get back to home this afternoon.
But I think it won't work because the error said , so I suppose that in PHP 4 you cannot initialize a parameter that have this syntax .
Comment #3
jpereza commentedMy supposition was true.
I've read in the PHP Manual this:
So, in PHP 4 it cannot be assigned a default value to a parameter passed by reference, as it is trying to do.
Comment #4
jrglasgow commentedI have committed a fix for this, it is in the next release, 5.x-2.01
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.