4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
August 19, 2018, 09:41:13 PM

Login with username, password and session length
Search:     Advanced search
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Help / Hilfe
| |-+  Error Messages / Fehlermeldungen
| | |-+  Deprecated: Function ereg() is deprecated in ...
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Deprecated: Function ereg() is deprecated in ...  (Read 33874 times)
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 577

mmm PHP...


View Profile WWW
« on: February 28, 2010, 06:28:01 PM »

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
1
error_reporting(E_ERROR E_WARNING E_PARSE);

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

In search.php delete:
1
error_reporting(E_ALL);
« Last Edit: March 02, 2010, 01:18:34 AM by V@no » Logged

Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)
Tiburon
Jr. Member
**
Offline Offline

Posts: 85

Thank You
-Given: 14
-Receive: 2


View Profile WWW
« Reply #1 on: March 01, 2010, 12:36:22 PM »

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

Logged

----------------------------------

Have a nice Day
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 577

mmm PHP...


View Profile WWW
« Reply #2 on: March 01, 2010, 02:37:21 PM »

I could only assume you have another error_reporting somewhere in the code...
Logged

Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)
Tiburon
Jr. Member
**
Offline Offline

Posts: 85

Thank You
-Given: 14
-Receive: 2


View Profile WWW
« Reply #3 on: March 01, 2010, 03:04:58 PM »

I could only assume you have another error_reporting somewhere in the code...

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  [Expand]
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;
}
« Last Edit: March 01, 2010, 03:23:34 PM by Tiburon » Logged

----------------------------------

Have a nice Day
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 577

mmm PHP...


View Profile WWW
« Reply #4 on: March 02, 2010, 01:20:05 AM »

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

Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)
Tiburon
Jr. Member
**
Offline Offline

Posts: 85

Thank You
-Given: 14
-Receive: 2


View Profile WWW
« Reply #5 on: March 02, 2010, 08:09:39 AM »

Thank you very much, that´s it. Everything works fine now  Smile
Logged

----------------------------------

Have a nice Day
abman5
Newbie
*
Offline Offline

Posts: 25

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #6 on: March 06, 2010, 09:19:10 AM »

V@no,

Thank you. I was wory about my search.php that shows same error. So now solving by your post. I think it will work fine.
Logged
GaYan
Sr. Member
****
Offline Offline

Posts: 301

Thank You
-Given: 6
-Receive: 26

♫ | G2 | ♫


View Profile WWW
« Reply #7 on: May 10, 2010, 08:06:02 AM »

Thanks V@NO  Wink .. it helped me alot   Smile You Rock  Very Happy
Logged

I'm Back Smile
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.058 seconds with 19 queries.
Post your comments here