Login

Contact

You can leave a message using the contact form below.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.

Error in module ImageApi imageapi_gd_image_overlay()

Hide all descriptions
Error description: 

Error displayed when you use modules ImageApi, ImageCache

imageapi_gd_image_overlay() expected to be a reference

Cause of the problem in using PHP version 5.3

The solution is quite easy, although it will have to rewrite slightly module imageapi. To do this, open the folder with the module and open the file in the editor imagecache_canvasactions.module. Search code:

<?php
function imageapi_gd_image_overlay(&$image, &$layer, $x, $y, $alpha = 100, $reverse = FALSE) {
...
?>

Replace to:

<?php
function imageapi_gd_image_overlay(&$image, $layer, $x, $y, $alpha = 100, $reverse = FALSE) {
...
?>