Question
Why does my PHP website log this error?
Call to undefined function ereg_replace
Answer
The PHP function ereg_replace was removed in PHP 7.0. If the website code is still calling this version, the site likely requires an older PHP version for regular functionality.
We have a guide on changing the PHP version here:
How to change the PHP version for a domain in cPanel or WHM
Comments
0 comments
Article is closed for comments.