Closed (fixed)
Project:
Signwriter
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Nov 2008 at 22:02 UTC
Updated:
5 Aug 2009 at 12:56 UTC
I just uploaded a fresh install of drupal. Then uploaded the signwriter module. Enabled it and received this...
Parse error: syntax error, unexpected T_VARIABLE in /mnt/w0905/d03/s12/b0252852/www/chad/clients/signatureweddingsbyjenna.ca/sites/all/modules/signwriter/signwriter.module on line 445
Now i'm stuck with the module enabled but can't figure out how to fix this issue. Any help on this would be greatly appreciated.
Comments
Comment #1
illmatix commentedbump?
Comment #2
agileware commentedIf you need to disable a module simply delete it from the modules directory.
Line 445 is
$preview_profile = clone $p;which may not be available in PHP4. Are you guys using PHP4 or PHP5?Merry Christmas!
Comment #3
illmatix commentedYes this server i'm on is hosting another site which was developed and only works in php4. Another version of that site is on the way but we're not sure when it will be finished. So switching to php5 isn't possible at the moment.
I have removed the module from the folder and from the database for now. But the text replacement is kind of what i'm going for since standard web fonts aren't doing this page justice
Comment #4
agileware commentedWill change to use drupal_clone() instead of clone, which will fix php4 compatibility issues.
Comment #5
WorldFallz commentedFYI I got this same error with php 5.2.1-- changing both instances of "cone" to "drupal_clone()" (lines 445 & 900) solved the error. Haven't tested the module yet though. I'll post back if that change causes any problems.
Comment #6
agileware commentedComment #7
agileware commentedTHe new 6.x-1.0 version that should appear today has clone replaced with drupal_clone throughout the module.
Comment #9
rjensen commentedOn 18 March 2009, Justin W Freeman commented
>THe new 6.x-1.0 version that should appear today has clone replaced with drupal_clone throughout the module.
This does not appear to be changed in the 6.x-1.1 version.
I have the same problem. I get the error
Parse error: syntax error, unexpected T_VARIABLE in /home2/admin/public_html/sites/all/modules/signwriter/signwriter.module on line 445
after changing clone to drupal_clone in two locations, I get the error
Parse error: syntax error, unexpected T_VARIABLE in /home2/admin/public_html/sites/all/modules/signwriter/signwriter.module on line 889
and cannot get rid of it. (not that I have much understanding of PHP -- Damn it Jim, I'm a chemist, not a miracle worker!)
Thanks,
Roy Jensen
Comment #10
agileware commentedNot sure how that regressed.
I am reclosing this issue though as this is not an issue in 6.x-2.x-dev (no more work will be done on the 6.x-1.x branch).