Koozali.org: home of the SME Server

knowledgeTree does not work with php5-cgi 5.3

Offline Marco Hess

  • *
  • 149
  • +0/-0
    • http://www.through-ip.com
knowledgeTree does not work with php5-cgi 5.3
« on: September 10, 2010, 04:04:20 AM »
Just a bit of warning about the php5-cgi 5.3 update that is recently made available.

I am running a source install of knowledgeTree community edition and has done so for over a year with the php5-cgi contrib version 5.2.8.

Without thinking to hard I did a yum upgrade for the php5-cgi 5.3 that was available and found that my knowledgeTree installation came to its knees :-(

For example the knowledgeTree background scheduler stars spouting these errors:

Code: [Select]
# /usr/bin/php5/php /opt/knowledgeTree/bin/scheduler.php

Deprecated: Assigning the return value of new by reference is deprecated in /opt/knowledgeTree/lib/validation/customerrorviewer.inc.php on line 44

Deprecated: Assigning the return value of new by reference is deprecated in /opt/knowledgeTree/lib/validation/customerrorhandler.php on line 44

Deprecated: Assigning the return value of new by reference is deprecated in /opt/knowledgeTree/thirdparty/pear/Config.php on line 79

Deprecated: Assigning the return value of new by reference is deprecated in /opt/knowledgeTree/thirdparty/pear/Config.php on line 165

Deprecated: Assigning the return value of new by reference is deprecated in /opt/knowledgeTree/thirdparty/pear/Config/Container.php on line 107

Warning: The magic method __get() must have public visibility and cannot be static in /opt/knowledgeTree/search2/indexing/indexerCore.inc.php on line 99

Warning: The magic method __set() must have public visibility and cannot be static in /opt/knowledgeTree/search2/indexing/indexerCore.inc.php on line 119

Warning: The magic method __get() must have public visibility and cannot be static in /opt/knowledgeTree/search2/indexing/indexerCore.inc.php on line 151

Warning: The magic method __set() must have public visibility and cannot be static in /opt/knowledgeTree/search2/indexing/indexerCore.inc.php on line 165

Deprecated: Assigning the return value of new by reference is deprecated in /opt/knowledgeTree/ktapi/ktapi.inc.php on line 752

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /opt/knowledgeTree/lib/validation/customerrorviewer.inc.php:44) in /opt/knowledgeTree/ktapi/ktapi.inc.php on line 44
File size limit exceeded

Turns out that knowledgeTree 3.7.0.2 is not (yet) supported on php 5.3. They state php 5.2.x as a system requirement.

So I removed the php5-cgi 5.3 and reinstalled the 5.2.8 version that I still had in my yum cache and all is happy again.

« Last Edit: September 10, 2010, 04:49:58 AM by Marco Hess »
Adelaide - Australia

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: knowledgeTree does not work with php5-cgi 5.3
« Reply #1 on: September 10, 2010, 07:13:01 AM »
This is most likely due to the fact that magic quotes has been deprecated in PHP 5.3 (http://php.net/manual/en/security.magicquotes.php) judging from the last errors of your posted error message.
The first might have to do with that, but I can not tell as I do not have the code base to check.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline caseyin

  • 1
  • +0/-0
Re: knowledgeTree does not work with php5-cgi 5.3
« Reply #2 on: December 27, 2010, 05:19:59 PM »
Hé Marco,

Do you still have this 5.2.8. contrib for me. I have the same problem but the old php-cgi contrib is not available anymore.

Rgrds
Cy

Offline Marco Hess

  • *
  • 149
  • +0/-0
    • http://www.through-ip.com
Re: knowledgeTree does not work with php5-cgi 5.3
« Reply #3 on: December 28, 2010, 01:10:51 PM »
Hé Marco,

Do you still have this 5.2.8. contrib for me. I have the same problem but the old php-cgi contrib is not available anymore.

Rgrds
Cy

I do, but not easy at hand as I am travelling at the moment.

I had a go at it and moved them to

http://through-ip.com/packages/smeserver/i386/

No guarantees as this is all done remotely from a camp site :-)

Cheers!
« Last Edit: December 28, 2010, 01:24:12 PM by Marco Hess »
Adelaide - Australia