Hey all,

I just upgraded from Drupal 5.19 to 6, which generally went surprisingly well. The only fatal error came from Taxonomy Filter, and I was unable to find anyone else who ran into the same problems, so I am posting here. I was using the most recent version of Taxonomy Filter for 5, and tried both the stable release for 6 as well as the Dev release.

I believe both of the errors I have are related, and they may stem from my host running PHP version 4.3.9. I did not see that PHP version 5 was a requirement for this module in the readme, so I wonder if anyone knows? That would be my main question -- if so than this is not an issue!

First problem happened right away, while running update.php. Here it is:

PHP Fatal error: Call to undefined function: _taxonomy_filter_get_vocabs() in examplesite/taxonomy_filter/taxonomy_filter.install on line 82, referer: http://example.org/update.php?op=start&id=13

I removed the module and continued on with the upgrade, dealt with all the other issues I had, then came back to this one.

Ran into the same problem running update.php.

Then I tried enabling the module in a variety of different orders, and came up with a white screen on all pages no matter what I did. The only way to remove the white screen was to remove the Taxonomy Filter module, and then delete the rows pertaining to it in the system table, and start again.

The closest I got was being able to see it in my list of modules.

My Apache logs say this is the problem:

PHP Parse error: parse error, unexpected T_OBJECT_OPERATOR in example_site/taxonomy_filter/taxonomy_filter.module on line 254

After looking everywhere I could think of for answers, I found this comment: http://drupal.org/node/205537#comment-696931. It refers to the "chaining syntax" being only available in PHP5.

I am only so-so at php -- I can work with snippets but am struggling with troubleshooting this.

Can anyone confirm that the Drupal 6 version of Taxonomy Filter requires PHP5, or has anyone had the same problem and come up with any solutions?

Thanks! Let me know if there's more info I could find that would help.

Comments

solotandem’s picture

Assigned: Unassigned » solotandem
Category: bug » support
Status: Active » Closed (works as designed)

Yes, you will need PHP 5 running on your site. The chained object operator syntax (e.g. function()->name) is not supported by PHP 4.

I will add PHP 5 as a requirement to the taxonomy_filter module in the info file. It's interesting you are the first person to report this issue here. Keep in mind:

- PHP 5.2 is recommended by Drupal
- PHP support for PHP 4 ended months ago (last version is 4.4.9 announced a year ago today)

solotandem’s picture

Title: Can't enable/upgrade module - PHP Fatal error and parse error. » 6.x version of Taxonomy Filter requires PHP 5
Version: 6.x-1.0 » 7.x-1.x-dev

Committed in next dev release.

mosa’s picture

That's great! Thanks very much. The probelm is our slow-moving host, but I now have additional reason to put pressure on them to upgrade. Thanks again, what a great module.