Skip to main content

Call to undefined function eregi

Comments

7 comments

  • rpvw
    The ereg(i) function was DEPRECATED in PHP 5.3.0, and REMOVED in PHP 7.0.0. You probably should upgrade or rewrite the script to one that uses preg_match instead of eregi An alternative is to ask your webhost to install a PHP 5.2 version if it is not already available to you, and switch to that. If your orders > import > administration software principally run on a PHP version higher than 5.2, you will be better using the highest recommended PHP version for the orders and admin software, and re-writing the importation routines to be compatible. This is not really a cPanel issue, and you will probably get better help from forums like eg
    0
  • sparek-3
    Is this a piece of software that you wrote or that you obtained from some where else (free, commercially licensed, etc)? If it's something you obtained from some where else, then the script is outdated or abandoned. You need to update the script to the latest version since this version of the script is obviously not written for modern PHP versions and likely has many other security holes that malicious users may be able to abuse. If you are using the latest version, then the script is likely abandoned by it's developer because eregi() has been deprecated for some time. Any developer worth their weight would have resolved this years ago.
    0
  • canou83
    Thanks to you 2 for this information.
    0
  • kdean
    Barring updating the code, it's likely that your command line php is just running a later version than the site. If your cron starts with php or /usr/bin/php or similar you can try changing it to: /opt/cpanel/ea-php56/root/usr/bin/php to specifically use the same version as your site.
    0
  • rpvw
    I'm going to hazard a guess the file in question is the one detailed at
    0
  • canou83
    Thanks
    0
  • cPanelMichael
    Hello, I've marked this thread as solved. Thank you.
    0

Please sign in to leave a comment.