MilesWeb
MilesWeb Hosting Forum

Please login or register.

Login with username, password and session length

 

News:

SMF - Just Installed!


Author Topic: Joomla: Deprecated: Function eregi() is deprecated  (Read 3332 times)

0 Members and 1 Guest are viewing this topic.

Offline Dipak Bhoi

  • MilesWeb Team Member
  • Full Member
  • ***
  • Posts: 208
  • Karma: +5/-0
    • View Profile
    • MilesWeb Internet Services
Joomla: Deprecated: Function eregi() is deprecated
« on: April 15, 2015, 01:05:39 PM »
Hello folks,

One of our customer was using old joomla version, he was facing facing issue with the site. It was showing an error as below:

Quote
Deprecated: Function eregi() is deprecated in  /home/someaccount/public_html/joomla/includes/Cache/Lite/Function.php on line 100


After investigating on it, I found that it was due to the php function "eregi". You just need to replace the code as below:

Old code:

Quote
eregi('SOMESTRING', something, somethingelse);

New code:

Quote
preg_match('/SOMESTRING/i', something, somethingelse);

That's all and issue solved.

Hope this post will help you.


Enjoy ...!! :)
MilesWeb.com
cPanel Hosting in India - cPanel Hosting in India.

Grab an SSL for your website and SAVE 20% now. Coupon Code SSLSAVE20.

MilesWeb Hosting Forum

Joomla: Deprecated: Function eregi() is deprecated
« on: April 15, 2015, 01:05:39 PM »