Closed (won't fix)
Project:
Auto Tagging
Version:
6.x-1.4-beta3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Jan 2010 at 17:25 UTC
Updated:
12 Apr 2010 at 13:22 UTC
I receive this error when editing or creating new stories. I think it's due to PHP 5.3 upgrade by my host.
warning: Parameter 1 to autotagging_calais_autotagging_api_update() expected to be a reference, value given in /customers/******.com/******.com/httpd.www/includes/module.inc on line 450.
It doesn't seem to affect too much tbh but I guess it could do with fixing!
Comments
Comment #1
dom_b commentedit does actually affect new stories as it doesn't create any tags. Old stories are unaffected when editing but I receive the error still. Looks like it doesn't update the tags.
Comment #2
irakli commentedYou can not use PHP 5.3 with Drupal. Not just this module but Drupal core is not compatible with 5.3. You need to go back to 5.2
Comment #3
dom_b commentedComment #4
dom_b commentedhere is a link to imageapi's fix for 5.3...
http://drupal.org/node/540486
Comment #5
dom_b commentedfixed by removing the ambersand from these lines in 'autotagging_calais.module'.
function autotagging_calais_autotagging_api_update($node, $text) {
function autotagging_calais_autotagging_api_insert($node, $text) {
im not a programmer but it seems to work. maybe there could be some kind of if statement to check which php version is being used? seems fairly simple.
Comment #6
IncrediblyKenzi commentedSince Drupal 6 doesn't currently work out of the box with PHP5, postponing this until it does.
Aside from that, the fix you mention above will work; however it also increases the amount of memory used (disastrous if your node objects are large) since it relies on passed values instead of referencing existing memory.