4images Help / Hilfe > Error Messages / Fehlermeldungen

Deprecated: Function ereg() is deprecated in ...

(1/2) > >>

V@no:
These messages showed on servers with PHP v5.3 or newer and 4images v1.7.7 or older.
There is nothing to worry about, as it is not errors, just warnings that meant to be for developers.

It will be fixed in 4images v1.7.8.

Until then the messages can be turned off by replacing in global.php
error_reporting(E_ERROR | E_WARNING | E_PARSE);

with this:
error_reporting(E_ERROR | E_WARNING | E_PARSE & ~E_DEPRECATED);


In search.php delete:
error_reporting(E_ALL);

Tiburon:
hm, this doesn´t work for me. It causes even more errors on gallery homepage and in admin panel the result are these errors:

Deprecated: Function set_magic_quotes_runtime() is deprecated in ......global.php on line 28
Deprecated: Function eregi() is deprecated in .......\admin\admin_global.php on line 47

PHP Version is 5.3.1 and 4images v1.7.7

V@no:
I could only assume you have another error_reporting somewhere in the code...

Tiburon:

--- Quote from: V@no on March 01, 2010, 02:37:21 PM ---I could only assume you have another error_reporting somewhere in the code...

--- End quote ---

I reinstalled 4images on my local server and got exactly the same errors as before and an additional error on search.php:

Deprecated: Function set_magic_quotes_runtime() is deprecated in ......\global.php on line 29

The code should be correct, I only changed the one line you posted above:


--- Quote ---error_reporting(E_ERROR | E_WARNING | E_PARSE ^ E_DEPRECATED);
set_magic_quotes_runtime(0);
$start_time = microtime();

function addslashes_array($array) {
  foreach ($array as $key => $val) {
    $array[$key] = (is_array($val)) ? addslashes_array($val) : addslashes($val);
  }
  return $array;
}
--- End quote ---

V@no:
Ok, now it should work.
As of search page - there is a unnecessary line that doesn't belong there. I've updated instructions above.

Navigation

[0] Message Index

[#] Next page

Go to full version