ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Deprecated: Function ereg

July 03, 2014 12:38am

Subscribe [1]
  • #1 / Jul 03, 2014 12:38am

    yourmacdaddy

    2 posts

    This problem just started happening:

    Deprecated: Function ereg() is deprecated in /home/ocdd/public_html/index.php on line 117
    Warning: phpinfo() has been disabled for security reasons in /home/ocdd/public_html/ocddsystem/cp/cp.utilities.php on line 5476

    I found in index.php the following line at 117:
    if ( ! ereg(”/$”, $system_path)) $system_path .= ‘/’;

    and line 44:
    if (substr($_GET[‘URL’], 0, 4) != “http” AND ! ereg(’://’, $_GET[‘URL’]) AND substr($_GET[‘URL’], 0, 1) != ‘/’)
      $_GET[‘URL’] = “http://”.$_GET[‘URL’];

    would I just change “ereg” to “preg_match”

    Vers 1.7.3
    php 5.3.27

    Thanks,
    Scott

  • #2 / Jul 03, 2014 1:11am

    yourmacdaddy

    2 posts

    Resolved.

    I uploaded the index.php file from a fresh download of 1.7.3

    The host must have replaced with an older file - weird.

    😊

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases