PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Error when loading HTTP_Upload

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> HTTP
View previous topic :: View next topic  
Author Message
fph



Joined: 30 Dec 2008
Posts: 2

PostPosted: Tue Dec 30, 2008 5:18 pm    Post subject: Error when loading HTTP_Upload Reply with quote

Sorry if this is a simple problem, but I'm a new user of Pear and trying to learn.

When installing the upload package I get the following error:
---------------------------
Code:
# pear install HTTP_Upload
downloading HTTP_Upload-0.9.1.tgz ...
Starting to download HTTP_Upload-0.9.1.tgz (9,460 bytes)
.....done: 9,460 bytes
XML error: not well-formed (invalid token) at line 30
Download of "pear/HTTP_Upload" succeeded, but it is not a valid package archive
Error: cannot download "pear/HTTP_Upload"
Download failed
install failed

--------------------------

I have installed other packages with no problems:
--------------------------
Code:
# pear list
Installed packages, channel pear.php.net:
=========================================
Package          Version State
Archive_Tar      1.3.2   stable
Console_Getopt   1.2.3   stable
Date             1.4.7   stable
HTML_Template_IT 1.2.1   stable
HTTP             1.4.1   stable
PEAR             1.7.2   stable
Structures_Graph 1.0.2   stable

--------------------------
I am using a web host provider running linux with the basic pear package installed (I do not have root login privileges):
--------------------------
Code:
# uname -a
Linux ...servername... 2.6.27-6_1.intel.BHsmp #1 SMP Thu Nov 13 15:27:29 MST 2008 x86_64 x86_64 x86_64 GNU/Linux

--------------------------
Thanks for your help!
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1235

PostPosted: Tue Dec 30, 2008 8:55 pm    Post subject: Reply with quote

Line 30 of the package.xml contained in the package archive is the following one:
Code:

<name>Antônio Carlos Venâncio Júnior</name>


The special characters seem to be the problem in your case. On my Windows system, the installation works without problems. Unfortunately, I can only think of two "hack" solutions in your case:
- install the package locally and copy the Upload.php manually to the HTTP folder of the PEAR installation
- edit the package.xml file, remove the special characters from the mentioned line, and install the package via "pear install [filename]" with "[filename"] being the (path and) filename of the .tgz file

Apart from the installation issue, I'd like to remind you that this package is quite old (last release was in 2004). Depending on what you're trying to do, you might want to consider to have a look into the HTML_QuickForm(2) package.
Back to top
View user's profile Send private message
fph



Joined: 30 Dec 2008
Posts: 2

PostPosted: Tue Dec 30, 2008 9:08 pm    Post subject: Reply with quote

Mark,

Thank you for your prompt and clear response. I did do some further searching on the web and found a link as to how to edit line 30 of the package.xml file - and then did the rest of the installation by hand.

Most of all thank you for your suggestion regarding looking at the HTML_QuickForm package as a replacement.

Frank
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> HTTP All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement