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

mh86’s picture

Title: Error on upgrade to beta6 from beta5 » Error on upgrade to beta6 from beta5 (php 4 only)
Status: Active » Fixed

This 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.

Anonymous’s picture

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

mh86’s picture

I'm not sure if the '&' is necessary, I've tried without and it does work.
Additionally, I replaced $value with $form[$key] when calling _content_taxonomy_taxonomy_unset in the foreach loop.
I'm pretty sure, that this solution is working, but maybe you find time for a short test and report back :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

geo_c’s picture

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

geo_c’s picture

Status: Closed (fixed) » Postponed (maintainer needs more info)
Anonymous’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Please don't reopen issues. The patch was applied to the dev branch, and no release has been made since beta6.