Peter.C
Members
-
Joined
-
Last visited
Reputation Activity
-
Peter.C got a reaction from Jo 90 in Error on websiteGot it working, there was a hidden '!' before eregi which messed things up, but it's functioning now - thanks for your help guys.
-
Peter.C got a reaction from BrowserBugs in Error on websiteGot it working, there was a hidden '!' before eregi which messed things up, but it's functioning now - thanks for your help guys.
-
Peter.C reacted to Jack in Error on websiteIf you can fix the error, avoid downgrading to 5. Version 5 is no longer supported and won't receive security patches and upgrades. I'd be surprised if your web host even let you.
In most cases, PHP 7 deprecation errors are fairly easy to fix because they typically have a newer equivalent version. In your example above, the eregi() function can be replaced with preg_match() instead.
-
Peter.C reacted to Guybrush Threepwood in Error on websiteHi Peter,
The error you are getting is because the eregi() function no longer exists.
The eregi() function was deprecated in php 5.3.0 and has been completely removed in php7.
I suspect whomever you host with has upgraded to php7 and this is why you are seeing this error.
You may be able to talk to your hosting provider about downing your php version to one in the 5.6.x version.
Hope this helps!