Non-static method PEAR::isError()

38 views
Skip to first unread message

MassimoA

unread,
Jan 11, 2016, 8:54:42 AM1/11/16
to Simple Groupware
hello,
i had to upgarde the PHP in the server where is installed SGS.

Now i receive an error message which fill the error.txt file and when this is to big i can go ahead.

A chunk of the message displayed is:
Php 8192: 11/01/16 14:40:33 pm Non-static method PEAR::isError() should not
be called statically, assuming $this from incompatible context
/var/www/html/bin/lib/mail/IMAPProtocol.php 144
Php 8192: 11/01/16 14:40:33 pm Non-static method PEAR::isError() should not
be called statically, assuming $this from incompatible context
/var/www/html/bin/lib/mail/IMAPProtocol.php 147
...

I would avoid doing the downgrade of PHP, how i can resolve it?
Maybe I can replace pear.php with the file pear.php present in the package php-pear-Mail?

Best Reagrds
Massimo

MassimoA

unread,
Jan 11, 2016, 1:59:06 PM1/11/16
to Simple Groupware
Hello,
i have downgraded the version of PHP to 5.4 and that resolved many warnigs.

I have found else problems about the versione of MySql (5.6), so i have changed the file bin/core/functions.php

from:
if (SETUP_DB_TYPE=="mysql" and isset($optional["delay"])) $delay = "delayed"; else $delay = "";

to
if (SETUP_DB_TYPE=="mysql" and isset($optional["delay"])) $delay = ""; else $delay = ""; // rimosso ) $delay = "delayed";

and now i have not errors in error.txt

Massimo
Reply all
Reply to author
Forward
0 new messages