Home ›
Error installing Drupal function ereg () is deprecated in file.inc
Hide all descriptions
Submitted by Marat Farkhulin on Wednesday, 04.07.2010
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)) {
?>Who's new
- Marat Farkhulin
Who's online
There are currently 0 users and 1 guest online.
Search
Work schedule
Feedback
Workdays
Monday to Friday
Working time
from 10 to 18 Moscow time, GMT +3
Break
from 13 to 14