Koozali.org: home of the SME Server

HORDE is generating hundreds of PHP messages log entries.

Offline LANMonkey

  • *****
  • 350
  • +0/-0
    • Database Collection of Transcripts for the ICTY
HORDE is generating hundreds of PHP messages log entries.
« on: September 04, 2016, 11:54:54 PM »
It must be HORDE that is doing this.  In my messages log, I see hundreds of entries from PHP like this:

Sep  4 14:30:44 finch httpd: PHP Strict Standards:  Non-static method Horde::getDriverConfig() should not be called statically, assuming $this from incompatible context in /home/httpd/html/horde/lib/Horde/Perms/datatree.php on line 52
Sep  4 14:30:44 finch httpd: PHP Strict Standards:  Non-static method DataTree::factory() should not be called statically, assuming $this from incompatible context in /home/httpd/html/horde/lib/Horde/DataTree.php on line 1395
Sep  4 14:30:44 finch httpd: PHP Strict Standards:  Non-static method Horde::assertDriverConfig() should not be called statically, assuming $this from incompatible context in /home/httpd/html/horde/lib/Horde/DataTree/sql.php on line 1866
Sep  4 14:30:44 finch httpd: PHP Strict Standards:  Non-static method DB::connect() should not be called statically, assuming $this from incompatible context in /home/httpd/html/horde/lib/Horde/DataTree/sql.php on line 1882
Sep  4 14:30:44 finch httpd: PHP Strict Standards:  Non-static method DB::parseDSN() should not be called statically, assuming $this from incompatible context in /usr/share/pear/DB.php on line 520
Sep  4 14:30:44 finch httpd: PHP Strict Standards:  Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /usr/share/pear/DB.php on line 551
Sep  4 14:30:44 finch httpd: PHP Strict Standards:  Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /usr/share/pear/DB.php on line 551
Sep  4 14:30:44 finch httpd: PHP Strict Standards:  Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /usr/share/pear/DB.php on line 557
Sep  4 14:30:44 finch httpd: PHP Strict Standards:  Non-static method Horde_Cache::singleton() should not be called statically, assuming $this from incompatible context in /home/httpd/html/horde/lib/Horde/Perms/datatree.php on line 55
Sep  4 14:30:44 finch httpd: PHP Strict Standards:  Non-static method Horde::getDriverConfig() should not be called statically, assuming $this from incompatible context in /home/httpd/html/horde/lib/Horde/Perms/datatree.php on line 56



What could possibly be going on?  How do I fix it?  Does it need fixing?

Offline DanB35

  • *****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: HORDE is generating hundreds of PHP messages log entries.
« Reply #1 on: September 05, 2016, 12:57:47 AM »
What version of PHP do you have installed (what's the output of 'rpm -q php')?  In your other thread, the bug you linked was against SME 10, which isn't close to being production-ready, and resulted from a change in PHP versions in the upstream OS.  IOW, you shouldn't have been seeing that error unless you've been mucking about with PHP.
......

Offline LANMonkey

  • *****
  • 350
  • +0/-0
    • Database Collection of Transcripts for the ICTY
Re: HORDE is generating hundreds of PHP messages log entries.
« Reply #2 on: September 05, 2016, 06:16:40 PM »
I see, php-5.4.45-53.el6.art.i686.  It's been a while, but I recall I have a later version of MySQL installed to meet the needs of my website.  I haven't actually directly changed anything in PHP.

Incidentally, would you happen to know what version of MySQL is used in version 10 SME?

guest22

Re: HORDE is generating hundreds of PHP messages log entries.
« Reply #3 on: September 05, 2016, 07:16:31 PM »
I see, php-5.4.45-53.el6.art.i686.


That is not a supported version of PHP, you must have done something to upgrade PHP in the past. Same goes for the 'later version of MySQL' that you mention.


Advise is to upgrade to Koozali SME version 9.1 64-bit and use Software Collections.

Offline LANMonkey

  • *****
  • 350
  • +0/-0
    • Database Collection of Transcripts for the ICTY
Re: HORDE is generating hundreds of PHP messages log entries.
« Reply #4 on: September 05, 2016, 07:29:31 PM »

That is not a supported version of PHP, you must have done something to upgrade PHP in the past. Same goes for the 'later version of MySQL' that you mention.


Advise is to upgrade to Koozali SME version 9.1 64-bit and use Software Collections.

I am already using Koozali SME version 9.1 according to my admin pages.  I don't recall exactly if it is 64 bit.

guest22

Re: HORDE is generating hundreds of PHP messages log entries.
« Reply #5 on: September 05, 2016, 07:31:55 PM »
..either way, you have changed the stock PHP version and presumably the stock MySQL version.

guest22

Re: HORDE is generating hundreds of PHP messages log entries.
« Reply #6 on: September 05, 2016, 09:09:58 PM »
You may want to tell us what exactly you have done to PHP and MySQL.

Offline DanB35

  • *****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: HORDE is generating hundreds of PHP messages log entries.
« Reply #7 on: September 05, 2016, 09:59:49 PM »
Here's the problem: the PHP developers apparently don't place a very high priority on backward compatibility.  So, when a new point release comes out, features/functions go away or behave differently.  If you have an installed base of software that depends on those features/functions working in a certain way, that software breaks.

By upgrading PHP to 5.4.45, you've introduced a bunch of incompatibilities.  You should be able to use 'yum downgrade' to revert to the "official" version of the PHP packages, followed by using software collections as suggested by RequestedDeletion if you have software that needs a more recent version.

The other alternative would be to track down John Bennett's Horde 5.2 RPMs and install them.  They work with the stock 5.3 PHP version, but may also work with something more recent.
......

Offline LANMonkey

  • *****
  • 350
  • +0/-0
    • Database Collection of Transcripts for the ICTY
Re: HORDE is generating hundreds of PHP messages log entries.
« Reply #8 on: September 05, 2016, 11:31:03 PM »
Thanks DanB35.  That will be on my to-do list.  I'm not as interested in upgrading Horde, sounds more experimental and not really my focus.

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: HORDE is generating hundreds of PHP messages log entries.
« Reply #9 on: September 06, 2016, 04:39:29 AM »
LANMonkey

The standard versions on sme9.1 (32bit) are:
php-5.3.3-48.el6_8.i686
mysql-5.1.73-7.el6.i686
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: HORDE is generating hundreds of PHP messages log entries.
« Reply #10 on: September 06, 2016, 09:59:23 AM »
Thanks DanB35.  That will be on my to-do list.  I'm not as interested in upgrading Horde, sounds more experimental and not really my focus.

well, I'd say that upgrading php in an unsupported way you went already in experimentations field..

please, tell us exactly what you did, thank you