Closed (fixed)
Project:
Coder
Version:
5.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
31 Dec 2006 at 16:17 UTC
Updated:
16 Jan 2007 at 13:09 UTC
I get the error:
Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' in /html/sites/all/modules/coder/coder.module on line 133
once the module is enabled in 5.x RC1. The error is in hook_form_alter and seems to be with &$data.
Comments
Comment #1
douggreen commentedI believe that I have a fix for this error. Please test with the 5.x-1.x-dev branch. If you are using php4, could you also let me know if you get any more errors. It would be good to know if the module is php4 compatible. Thanks!
Comment #2
mfer commentedI still get that error in php4 but not php5.
Comment #3
douggreen commentedIf you could help me figure out the php4 problems, I'd very much appreciate it. Is the error on the same line, or a different line now?
If it's on a different line, which one?
I haven't used php4 in some time, but I'd be very surprised if it's on the same line. If it's on the same line, please look at line 133-5 of your code and make sure that it says:
Comment #4
douggreen commentedI just setup a php4 site to test with. It appears to be working here:
http://php4.douggreenconsulting.com/admin/coder
Please make sure you have the right version (as mentioned above).
Comment #5
mfer commentedThe dev version I downloaded yesterday was revision 1.32 and you corrected the problem in revision 1.33.
Comment #6
douggreen commented