I get the following error after upgrading to the beta6 version, totally crippling my site:
Parse error: parse error, unexpected '&', expecting T_VARIABLE or '$' in /var/www/virtual/lancefestivalen.se/htdocs/modules/contribs/content_taxonomy/content_taxonomy.module on line 434
What does it mean and what can I do about it?
Comments
Comment #1
mh86 commentedThis error occurs only when using php 4, for php 5 it's working fine.
&$value(line 434) is not allowed in php4. I committed the fix to the dev branch, so that content taxonomy is working with php 4 and php 5 now.Comment #2
Anonymous (not verified) commentedI think your fix prevents the unsetting of tag vocabularies used in content taxonomy fields. I've not verified but I used the reference for that case.
Comment #3
mh86 commentedI'm not sure if the '&' is necessary, I've tried without and it does work.
Additionally, I replaced
$valuewith$form[$key]when calling_content_taxonomy_taxonomy_unsetin the foreach loop.I'm pretty sure, that this solution is working, but maybe you find time for a short test and report back :)
Comment #5
geo_c commentedI have just downloaded the latest version and I got the same error when I installed the module. Could you confirm if beta6 is working on php4 too?
Comment #6
geo_c commentedComment #7
Anonymous (not verified) commentedPlease don't reopen issues. The patch was applied to the dev branch, and no release has been made since beta6.