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 installing Drupal function ereg () is deprecated in file.inc

Hide all descriptions
Error description: 

The error occurs when you install Drupal: function ereg () is deprecated in \includes\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

<?php
elseif ($depth >= $min_depth && ereg($mask, $file)) {
?>

And replace it with the following:

<?php
elseif ($depth >= $min_depth && mb_ereg($mask, $file)) {
?>