Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: Marco Hess on September 10, 2010, 04:04:20 AM

Title: knowledgeTree does not work with php5-cgi 5.3
Post by: Marco Hess 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.

Title: Re: knowledgeTree does not work with php5-cgi 5.3
Post by: cactus 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.
Title: Re: knowledgeTree does not work with php5-cgi 5.3
Post by: caseyin 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
Title: Re: knowledgeTree does not work with php5-cgi 5.3
Post by: Marco Hess 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!