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

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

Transferring MySQL database to another server with the add/change the prefix

It's enough to make a backup of the database on the source server, then open the backup in the editor and using the command "Find and replace" to make the following changes:

CREATE TABLE ` changing to CREATE TABLE `myprefix_
INSERT INTO ` changing to INSERT INTO `myprefix_

Where myprefix_ - is the desired table prefix database. Just occasionally you may need to rename these tables here:

REPLACE ` changing to REPLACE `myprefix_
ALTER TABLE ` changing to ALTER TABLE `myprefix_

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

ImageCache does not work when switched off "clean url"

To resolve this problem would have to edit the file imagecache.module, to do so, open it in the editor and look for the function:

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: