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.

php 5.3

Hide all descriptions

Error in module ImageApi imageapi_gd_image_overlay()

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) {
...
?>

Error installing Drupal function ereg () is deprecated in file.inc

This error stems from the fact that in php 5.3.0 the function ereg () deprecated.

There are two quick solution to this problem:

1. Go to an earlier version of PHP (this can be done through the hosting control panel, or writing a letter asking to move to a more earlier version of PHP allows a service to your hosting company)

2. Edit the source file in Drupal. To do this, open the file in the editor /includes/file.inc and find there the following line

Error in module i18n

The cause of the problem in using PHP version 5.3

The solution is simple, but still requires some adjustment package module i18n. To this end, separates the folder is located in the module imageapi and open the file in the editor i18n.pages.inc. We are looking for a line 265 where it should place the following code:

Error in module ImageApi

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 imageapi.module. Then go to line 163 where we see the following: