Page 1 of 1
error after upgrading php and pear
Posted: Fri Aug 04, 2006 6:57 pm
by emwede
After updating debian php (from 4.x to 5.1) and pear to the newest available versions I get the following error message in the sidebar
Parse error: syntax error, unexpected T_CLONE, expecting T_STRING in /usr/share/php/XML/Tree.php on line 297
Any suggestions besindes fresh installation of s9y
BTW: using the latest nightly from today. Which worked before upgrading to php5 (except event-plugins would not show installation page anymore)
Posted: Fri Aug 04, 2006 9:01 pm
by judebert
Hmmm-hmnn.
I'm kind of surprised that Serendipity is using the XML/Tree module from /usr/share. I thought (Garvin would have to confirm) that Serendipity included all the external modules it needed in one of its subdirectories.
We've seen that sort of problem with PEAR modules before. Perhaps a forum search for "PEAR AND server" will point you in the right direction.
Posted: Fri Aug 04, 2006 9:38 pm
by emwede
judebert wrote: XML/Tree module from /usr/share.
Yesssss You're right, thats what brought me on the hint. Actually it is the Flickr-Plugin trapping me here (after a new, clean installation everything went super until I reinstalled the flickr plugin). I'l repair that and come bacl with the solution later.
TNANXXX !!!
Posted: Fri Aug 04, 2006 9:56 pm
by emwede
emwede wrote:judebert wrote: the Flickr-Plugin
Ok, so removing the Flickr-Plugin manually from the database by using phpMyAdmin seems to be the only possibility (besides debugging and fixing the Flickr plugin which I'm not going to do this evening

to get along with
Apache 2
Serendipity 1.1-alpha7 / PHP 5.1.4-1.dotdeb.3
and using pear as follows
Installed packages, channel pear.php.net:
=========================================
Code: Select all
Package Version State
Archive_Tar 1.3.1 stable
Auth_SASL 1.0.2 stable
Config 1.10.6 stable
Console_Getopt 1.2 stable
Flickr_API 1.6.0 beta
Gtk2_EntryDialog 0.1.0 beta
Gtk2_FileDrop 0.1.1 beta
HTTP_Request 1.3.0 stable
MIME_Type 1.0.0 stable
Net_URL 1.0.14 stable
PEAR 1.4.9 stable
PEAR_Frontend_Gtk 0.4.0 beta
PEAR_Frontend_Gtk2 0.1.2 beta
PEAR_Frontend_Web 0.5.1 alpha
XML_Tree 1.1 stable
Thanx for assisting again and best regards
Michael
Posted: Sat Aug 05, 2006 10:38 pm
by garvinhicking
Hi!
Serendipity 1.1 now will use existing PEAR installations from your server in favor to be easier usable in PEAR-enabled servers.
The parse error comes from your existing PEAR, and it seems that one XML-Tree plugin you have there is not compatible to your PHP 5. I'm not that good with PEAR packages, but can you check if there is an updated version available? It should not return a parse error...
Best regards,
Garvin
Posted: Mon Aug 07, 2006 7:13 pm
by emwede
garvinhicking wrote: I'm not that good with PEAR packages, but can you check if there is an updated version available? It should not return a parse error...
Hi Garvin,
I doublechecked that now. So what I'm using is
PEAR.php with commentline:
Code: Select all
CVS: $Id: PEAR.php,v 1.98 2006/01/23 05:38:05 cellog Exp
(I also copied that Version of the PEAR.php into the /bundled_libs Dir to avoid trouble as soon as something changes the $PATH-Variable / include_path.
> pear list
now gives me
Code: Select all
Installed packages, channel pear.php.net:
=========================================
Package Version State
Archive_Tar 1.3.1 stable
Auth_SASL 1.0.2 stable
Config 1.10.6 stable
Console_Getopt 1.2 stable
Flickr_API 1.6.0 beta
Gtk2_EntryDialog 0.1.0 beta
Gtk2_FileDrop 0.1.1 beta
HTTP_Request 1.3.0 stable
MIME_Type 1.0.0 stable
Net_URL 1.0.14 stable
PEAR 1.4.10 stable
PEAR_Frontend_Gtk 0.4.0 beta
PEAR_Frontend_Gtk2 0.1.2 beta
XML_Parser 1.2.7 stable
XML_RPC 1.5.0 stable
XML_Tree 2.0.0RC2 beta
Where I now installed the
XML_tree 2.0.0RC2 beta instead of the stable version I had before. Vou have to install this with the force option:
Code: Select all
pear install -of http://pear.php.net/get/XML_Tree-2.0.0RC2.tgz
Also I installed
1.4.10 instead of 1.4.9 of the
PEAR package intself and the
optional XML_RPC-Package that is recomended by the PEAR 1.4.10 package installer.
AFTER this I reinstalled the Flickr-Plugin AND IT WORKS
So, the above listing of PEAR configurations might serve as a reference list for everyone experiencing the mentioned bug in my first posting in this thread.
Thanks and regards
Michael
PS: Case SOLVED / CASE CLOSED

))
PPS: Always change a running system as soon as yo want to find configuration issues
