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

douggreen’s picture

Assigned: Unassigned » douggreen

I 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!

mfer’s picture

I still get that error in php4 but not php5.

douggreen’s picture

If 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:

foreach ($form['name'] as $name => $data) {
  $form['name'][$name]['#value'] = l($data['#value'], "admin/coder/$name");
}
douggreen’s picture

I 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).

mfer’s picture

Status: Active » Fixed

The dev version I downloaded yesterday was revision 1.32 and you corrected the problem in revision 1.33.

douggreen’s picture

Status: Fixed » Closed (fixed)