By void_main on
Hi;
I have a problem to install drupal 6.15
includes\file.inc on line 911
it is codes in file.in on line 911
elseif ($depth >= $min_depth && ereg($mask, $file))
What I can do it, pls help me, thanks...
Hi;
I have a problem to install drupal 6.15
includes\file.inc on line 911
it is codes in file.in on line 911
elseif ($depth >= $min_depth && ereg($mask, $file))
What I can do it, pls help me, thanks...
Comments
Hi void_main, Could you
Hi void_main,
Could you describe:
- what steps you have taken to install Drupal?
- what the environment is (OS, available packages, etc)
- what the exact error is?
- any other information that could be useful, core hacks, existing website, ...?
I study on local, I tell you
I study on local, I tell you step by step what i did
1)Download drupal on site
2)I use EasyPhp and I install drupal files on EasyPhp /www directory
3)and than pass the set up on monitor
4)but previously I created a database on EasyPhp and every think is ok,
5)and I selected my mother language
6)database configuration (database name, username and password) I write
I want to next step and display this error?
You haven't yet posted the
You haven't yet posted the error message itself yet but I assume that it says something like: "Function ereg is deprecated in file includes/file.inc on line ....".
This issue is known: more information and possible fixes in this thread: http://drupal.org/node/586416#comment-2388906
this is error
this is error text
Deprecated: Function ereg() is deprecated in C:\Program Files\EasyPHP5.3.0\www\deneme\includes\file.inc on line 911
Problem is solved, on line
Problem is solved, on line 911 is codes to change like following
elseif ($depth >= $min_depth && mb_ereg($mask, $file))
thanks drupalians
Thanks. This works just fine.
Thanks. This works just fine.
how could that happen? thank
how could that happen?
thank you!
by the way: the line should be changed to
( you forgot the "{" )
;-)
thanks!
thanks bro . i was looking for this.
mb
You are replacing a regex with a multibyte regex to get around a depreciated warning, this is not a best practice unless you planned on moving to a multi-byte solution anyway.
PHP recommends the following replacement functions:
http://us3.php.net/manual/en/reference.pcre.pattern.posix.php
and for this case you should use preg_match()
Try this is as an alternative:
elseif ($depth >= $min_depth && preg_match('!'.$mask.'!', $file)) {
--
Reg | www.AceWebGroup.com
Drupal doesn't support PHP 5.3
.htaccess workaround
I upgraded to Ubuntu 10.4 and starting getting this error.
See the Drupal requirements. Drupal doesn't yet support PHP 5.3.
Here is another solution/workaround for those who still want to use PHP 5.3:
Put the following lines in your .htaccess file:
# set php error reporting to E_ALL & ~E_NOTICE & ~E_DEPRECATED
# PHP 5.3 workaround
php_value error_reporting 22519
Your results may vary depending if your host allow PHP config directives in the .htaccess file. Obviously any core updates will still override this file but to my mind it's less of a Drupal core hack than editing file.inc.
If you are wondering how I came up with the figure of 22519- it is a bitwise value for setting PHP's error reporting parameters. If you have php-cli installed you can run this command at the command line to determine which reporting data suits your set up best, mine was:
$ php -r "print E_ALL & ~E_NOTICE & ~E_DEPRECATED;"If you don't have access to the command line just execute this in a separate script:
<?php print E_ALL & ~E_NOTICE & ~E_DEPRECATED; ?>The various reporting options can be found on PHP's error reporting manual page.
Barry
--
Barry Fisher
Pivale