I have been trying to make the imagecache module to work and trying all suggestions in the troubleshooting guide to no avail. I have clean urls enable, filesystem is public the imageapi and imageapi gd2 are enabled and it keeps giving me the following error "warning: Parameter 1 to imageapi_gd_image_resize() expected to be a reference, value given in C:\wamp\www\New drupe\sites\all\modules\imageapi\imageapi.module on line 165." Any tips on solving this? Thanx in advance.

Comments

AdrianB’s picture

That sounds like the PHP 5.3 error.

radyboy’s picture

so what do i do cos i really need to use imagecache module. Guys pls say something

AdrianB’s picture

This is the issue I was talking about: #540486: Error with PHP 5.3

You have all you need in that issue. There is this patch in that issue: http://drupal.org/files/issues/imageapi-540486-41.patch

You can apply the patch or apply it manually. The patch only adds this line at line 165 in the file imageapi.module:

$params[0] = &$image;

You add it under line 164, under this line:
array_unshift($params, $image);

So line 163-167 in imageapi.module will look like this:

  if (function_exists($function)) {
    array_unshift($params, $image);
    $params[0] = &$image;
    return call_user_func_array($function, $params);
  }