Please note the new address for this forum : forum.excito.org. The old address redirects here but I don't know for how long. Thanks !
New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

Horde using deprecated function?

Got problems with your B2 or B3? Share and get helped!
Post Reply
DanielM
Posts: 637
Joined: 28 Mar 2008, 06:37
Location: Sweden

Horde using deprecated function?

Post by DanielM »

Hi.
After fiddling around with postfix settings I thought today I should try Horde out for the first time. I was a bit surprised by the amount of mail I get. Every fifth minute I get a mail from Cron Daemon saying

Code: Select all

PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/share/horde3/lib/Horde/Perms/sql.php on line 83
PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/share/horde3/lib/Horde/Perms/sql.php on line 116
PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/share/horde3/lib/Horde/Perms/sql.php on line 153
PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/share/horde3/lib/Horde/Prefs.php on line 847
(it continues further in the same fashion). Did I do something wrong here or what's happening?

/Daniel

edit: I actually found that this is caused by the first line in /etc/cron.d/bubba-horde. Commented out the line to make it shut up. Bit of a workaround, but it gives me less mail to delete tomorrow...
6feet5
Posts: 269
Joined: 13 Apr 2007, 17:32
Location: Gnesta, Sweden
Contact:

Re: Horde using deprecated function?

Post by 6feet5 »

Hi,

Instead of commenting out the whole line, you could try redirecting the output of the command to /dev/null. That should prevent the mail from being sent.

A downside is you will not be notified of any other (perhaps bigger) problem if they occur.

/Johan
DanielM
Posts: 637
Joined: 28 Mar 2008, 06:37
Location: Sweden

Re: Horde using deprecated function?

Post by DanielM »

6feet5 wrote:Hi,

Instead of commenting out the whole line, you could try redirecting the output of the command to /dev/null. That should prevent the mail from being sent.

A downside is you will not be notified of any other (perhaps bigger) problem if they occur.

/Johan
Feels like just another workaround. I guess the best thing would be if Horde wouldn't use deprecated stuff. Anyone knows how I get php to at least stop complaining about it?

/Daniel
6feet5
Posts: 269
Joined: 13 Apr 2007, 17:32
Location: Gnesta, Sweden
Contact:

Re: Horde using deprecated function?

Post by 6feet5 »

DanielM wrote:Feels like just another workaround.
True, with the difference that my workaround actually do some work ;-)

/Johan
pcrene
Posts: 305
Joined: 17 May 2008, 15:49

Re: Horde using deprecated function?

Post by pcrene »

Hello All,

what file should i edit to add the: /dev/nul

Rene
B3 1T + B-Stor 2T, B2 1T as backup
40 users active....
Opensat4all.Com
DanielM
Posts: 637
Joined: 28 Mar 2008, 06:37
Location: Sweden

Re: Horde using deprecated function?

Post by DanielM »

pcrene wrote:what file should i edit to add the: /dev/nul
In the file /etc/cron.d/bubba-horde, the last line ends with

Code: Select all

 > /dev/null 2>&1
Put the same thing after the first line (ie the first line that actually does something) so it looks like this:

Code: Select all

*/5 * * * *    root    test -x /usr/bin/php && /usr/bin/php /usr/share/horde3/scripts/alarms.php  > /dev/null 2>&1
That should make the warnings go to the black hole instead of to your mail box.

/Daniel
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Re: Horde using deprecated function?

Post by Ubi »

I just receive my B3, but man this bug is a pain. My guess is everyones mailqueue is running into 10000s mails by now because of this crap. Thanks for the quickfix

Ubi
Fourwinds
Posts: 11
Joined: 13 Jul 2009, 10:40

Re: Horde using deprecated function?

Post by Fourwinds »

I ran into this bug today and then did some googleing around and came up with:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=601186

It appears it is a known Horde issue and not an Excito one ... The solution that they have is to suppress the deprecated warnings, and also the strict warnings by updating:

/etc/horde/horde3/conf.php

and changing line 6 from:

$conf['debug_level'] = E_ALL;

to

$conf['debug_level'] = E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT;
Post Reply