Posted by exterm on April 8, 2010 at 9:09am
Hello,
Can any one help me why the following message appears.
Deprecated: Function ereg() is deprecated in C:\wamp\www\drupal-6.16\drupal-6.16\includes\file.inc on line 911
Hello,
Can any one help me why the following message appears.
Deprecated: Function ereg() is deprecated in C:\wamp\www\drupal-6.16\drupal-6.16\includes\file.inc on line 911
Comments
Check
Check http://drupal.org/node/514334
--
Qasim Zeeshan
http://intellimus.com
solution
This appears when trying to install Drupal on Window (surprised ?).
The solution is to go into the file.inc on line 911 and put a @ in front of the ereg() function like this : @ereg()
Tell me if it worked ;)
While i'm not the original
While i'm not the original poster, I just wanted to say thanks! That solved the problem!
-Dominique
thanks.. for help
Yes it's fixed..
Yes it works
And even with php 5.2 config.
Thanks.
Great solution..
Thanks for the tip...
cisco6co - beginner
thanks a lot .......!!!!! i
thanks a lot .......!!!!! i was tryin to remove dis error finally got rid of it...it worked thanks again..
it worked for me
Sank you verrryh mutch
Anne-Pierre de Peyronnet
SHIRALY.com
Direct from the Designer's Workshop
L'accès direct aux Editeurs d'Art
Good
Good
Robin
Deprecated: Function ereg() is deprecated in etc...
Deprecated: Function ereg() is deprecated in C:\wamp\www\drupal-6.17\drupal-6.17\includes\file.inc on line 926
Same problem different line in 6.17... thanks for the help BTW @ereg fixed it
.
solution
it is very simple
open file
includes/file.inc
Goto line no 912
where you can see something like this
elseif ($depth >= $min_depth && ereg($mask, $file))
Now add @ sign before ereg($mask, $file)
copy below line past this line
elseif ($depth >= $min_depth && @ereg($mask, $file))
I think its better that you
I think its better that you don't change in core as it will restrict updates.
--
Qasim Zeeshan
http://intellimus.com
need help here..
I'm a noob, I cant find the line 911,because I viewed in notepad... thx...
Then open the file and press
Then open the file and press Ctrl + F for bringing up the in-built search function and search for that line and you're done! :)
I recommend google.com to all
I recommend google.com to all noobs :)
--
Qasim Zeeshan
http://intellimus.com
This is a valid question.
This is a valid question. This same issue caused me and probably countless others a lot of grief. There are 101 solutions you can google, most of them are 2/3 of the way down a giant thread, and not one of them is marked as official.
The php 5.3 issue has been around a long time now and should have been fixed in drupal core. Barring that, there should at least be a page made in the support section detailing whichever fix is considered most appropriate, and there should be a note on the download page that drupal is not compatible with php 5.3 including a link to the official fix page.
To answer the question,
Is far as I understand it the only "correct" solution is to downgrade to PHP 5.2. For many of us that is not an option, in which case the easiest hack is to edit the offending line in file.inc to use a non-deprecated function. I simply changed ereg() to mb_ereg() and it works fine now, but as I understand it that is not an ideal solution.
E_DEPRECATED
Simply tone down the error level to exclude E_DEPRECATED. That's what the proposed patch in #360605-233: PHP 5.3 Compatibility does as well.
As to mb_ereg; It appears as though the PHP devs forgot to throw an E_DEPRECATED on use of that function.
Feel free to add such a page.
--
The Manual | Troubleshooting FAQ | Tips for posting | How to report a security issue.
As to mb_ereg; It appears as
Yes, I was able to glean that from the endless pages in multiple threads on the issue. However, it seemed simple and easy to reverse should I need to, and I haven't needed to yet.
Also, the patch you note is immediately followed by a comment saying it doesn't work. Makes me hesitant to try.
I didn't know I was allowed to do that. I also have almost no understanding of how the fixes work and would be a terrible person to do it, but I would be happy to make one simply in the hope that it would get the attention of someone qualified.
Same Issue
Subscribe
same problem crashing my site
applied the fix
Thanks!