Make tac_lite compatible with PHP 5.3
Boobaa - September 27, 2009 - 15:07
| Project: | Taxonomy Access Control Lite |
| Version: | 6.x-1.2 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | needs review |
| Issue tags: | PHP 5.3 |
Jump to:
Description
Upgrading to php-5.3 renders tac_lite (thus the whole site) unusable with barking like these:
warning: Parameter 1 to tac_lite_node_grants() expected to be a reference, value given in /path/to/drupal/includes/module.inc on line 471.
Removing the ampersands from tac_lite_node_grants()'s definition renders tac_lite (thus the site) usable again - which is what the attached patch does.
| Attachment | Size |
|---|---|
| tac_lite-php-5.3.patch | 457 bytes |

#1
I can confirm that I also was getting the above errors and users could not access pages with tac_lite applied by role. Above patch worked. I was however using 1.x-1.2