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

dom_b’s picture

Title: Error when saving stories... » no tags created

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

irakli’s picture

Status: Active » Fixed

You 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

dom_b’s picture

Status: Active » Fixed
dom_b’s picture

Status: Fixed » Active

here is a link to imageapi's fix for 5.3...

http://drupal.org/node/540486

dom_b’s picture

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

IncrediblyKenzi’s picture

Status: Fixed » Closed (won't fix)

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