I am using Godaddy as my host, site is www.the-omega-group.net. Have just installed latest downladable version of phpnuke, says version 8.1. I have edited my php.ini file to say error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT , although there was no error reporting settings listed to begin with.
But I am still getting a lot of
Deprecated: Function eregi_replace() is deprecated in mainfile.php on line...
and
Deprecated: Function ereg() is deprecated in mainfile.php on line...

I was able to go in and edit these lines to call function preg_replace () since I cannot get the error reporting to turn off. Site seems to be finctioning fine otherwise.

After more research I added the line
$display_errors = false;
to my config file.
and have changed the $display_errors to = false in mainfile.php.
No help

Display php errors is set to no in the administration setting within the website menu system

I am still getting the following 2 errors on my webpage:
Warning: preg_replace() expects at least 3 parameters, 2 given in mainfile.php on line 165
Line 165 reads:
if (preg_replace("MSIE", $_SERVER['HTTP_USER_AGENT']))
What can I change about this? I think this line has something to do with the code fore superglobals.

Warning: preg_replace() [function.preg-replace]: Delimiter must not be alphanumeric or backslash in mainfile.php on line 1719
Line 1719 reads
$EditedMessage = preg_replace("$CensorList[$i]","$Replace",$EditedMessage);

I don't know which delimiter to change/add.....

These are all in my mainfile.php.

    8 days later

    Add ~E_WARNING to your ini file...unless you want to see warnings.

    Also, when you put an array variable inside double-quotes, you'll need to enclose it in curly braces. Or just remove the quotes, since the variable is the only thing in them.

      eyox1 wrote:

      I am still getting the following 2 errors on my webpage:
      Warning: preg_replace() expects at least 3 parameters, 2 given in mainfile.php on line 165
      Line 165 reads:
      if (preg_replace("MSIE", $_SERVER['HTTP_USER_AGENT']))
      What can I change about this? I think this line has something to do with the code fore superglobals.

      Read the PHP manual on [man]preg_replace/man to see what are its parameters.

      eyox1 wrote:

      Warning: preg_replace() [function.preg-replace]: Delimiter must not be alphanumeric or backslash in mainfile.php on line 1719
      Line 1719 reads
      $EditedMessage = preg_replace("$CensorList[$i]","$Replace",$EditedMessage);

      The regex pattern for preg_replace is delimited, e.g., if you want a pattern that matches a digit, you would write /\d/, not just \d. While the slashes are rather traditional from Perl, other delimiters are acceptable.

        Write a Reply...