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.

core

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

Error loading CSS in IE

The error occurs because of restrictions on the number of IE plug CSS files (problems arise when trying to connect over 30 css files).

The solution lies in the function: