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)
error after upgrading php and pear
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.
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.
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.judebert wrote: XML/Tree module from /usr/share.
TNANXXX !!!
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 eveningemwede wrote:judebert wrote: the Flickr-Plugin
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 Michael
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
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
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/
# 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/
Hi Garvin,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...
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> 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 Code: Select all
pear install -of http://pear.php.net/get/XML_Tree-2.0.0RC2.tgzAFTER 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