error after upgrading php and pear

Found a bug? Tell us!!
Post Reply
emwede
Regular
Posts: 58
Joined: Thu Jun 22, 2006 10:38 am
Contact:

error after upgrading php and pear

Post 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)
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post 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.
Judebert
---
Website | Wishlist | PayPal
emwede
Regular
Posts: 58
Joined: Thu Jun 22, 2006 10:38 am
Contact:

Post 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 !!!
emwede
Regular
Posts: 58
Joined: Thu Jun 22, 2006 10:38 am
Contact:

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
emwede
Regular
Posts: 58
Joined: Thu Jun 22, 2006 10:38 am
Contact:

Post 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 ;-)
Post Reply