php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56505 cannot upgrade pear/HTML_Template_IT
Submitted: 2005-08-22 18:59 UTC Modified: 2006-12-24 14:44 UTC
From: bertrand at toggg dot com Assigned: mj (profile)
Status: Closed Package: PECL website (PECL)
PHP Version: 4.3.11 OS: FC3
Private report: No CVE-ID: None
 [2005-08-22 18:59 UTC] bertrand at toggg dot com
Description:
------------
# pear list-upgrades
pear.php.net Available Upgrades (stable):
=========================================
Channel      Package          Local        Remote         Size
pear.php.net HTML_Template_IT 1.1 (stable) 1.1.1 (stable) 18.1kB
# pear upgrade-all
Will upgrade html_template_it
expat reports error code 9
        description: junk after document element
        line: 2
        column: 0
        byte index: 7
        total bytes: 0

        data beginning 7 before byte index: <b>Warning</b>:  main(PEAR/Server.php) [<a href='function.mai Could not download from "http://pear.php.net/get/HTML_Template_IT-1.1.1.tgz", cannot download "pear/html_template_it"
Error: cannot download "pear/HTML_Template_IT"

...

# pear -c pear.php.net upgrade HTML_Template_IT
Could not download from "http://pear.php.net/get/HTML_Template_IT-1.1.1.tgz", cannot download "pear/HTML_Template_IT"
Error: cannot download "pear/HTML_Template_IT"
[root@ancilla pear-core]# pear channel-delete upear
channel-delete: channel "upear" does not exist
[root@ancilla pear-core]# pear upgrade-all
Will upgrade html_template_it
Could not download from "http://pear.php.net/get/HTML_Template_IT-1.1.1.tgz", cannot download "pear/html_template_it"
Error: cannot download "pear/HTML_Template_IT"



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-08-22 19:01 UTC] cellog@php.net
as I said in private emails, there is a configuration issue on your end.  Use pear channel-update --force pear.php.net and it will go away
 [2005-08-22 19:04 UTC] klaus at capitalfocus dot org
Basically, the server gives the following error message if you try to access that download url:

  release:: the package you requested has no release by that number

So... It seems to be a pearweb issue. Nonetheless, there seems to be a problem with the pear installer implementation. It shouldn't have given that error to the user, imho. It shouldn't have broken like that :)
 [2005-08-22 19:12 UTC] cellog@php.net
listen to me: this is bogus.  Why?  Let's look at the output from Bertrand's email:

[root@ancilla pear-core]# pear -vvvvvvvvvv upgrade-all

Will upgrade html_template_it
Will upgrade net_curl
XMLRPC REQUEST HEADERS:
string(70) "Host: pear.upear.com:80
Content-type: text/xml
Content-length: 209
"
XMLRPC REQUEST BODY:
string(209) "<?xml version="1.0" encoding="iso-8859-1"?>
<methodCall>
<methodName>package.listLatestReleases</methodName>
<params>
<param>
 <value>
  <string>stable</string>
 </value>
</param>
</params>
</methodCall>
"
XMLRPC RESPONSE:
string(472) "<br />
<b>Warning</b>:  main(PEAR/Server.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in <b>C:\WEB\Apache2\htdocs\xmlrpc.php</b> on line <b>2</b><br />
<br />
<b>Fatal error</b>:  main() [<a href='function.require'>function.require</a>]: Failed opening required 'PEAR/Server.php' (include_path='.;C:\WEB\php\PEAR\pear;C:\WEB\php\pear;C:\WEB\php\pear') in <b>C:\WEB\Apache2\htdocs\xmlrpc.php</b> on line <b>2</b><br />
"

1) Host: pear.upear.com:80 <-- this is *NOT* pear.php.net
2) C:\WEB\php\PEAR\pear <-- this is *NOT* unix.  Bertrand has his configuration foobarred.
 [2005-08-22 19:26 UTC] klaus at capitalfocus dot org
This might be bogus, but why does the following url disply an error? It doesn't make sense.

http://pear.php.net/get/HTML_Template_IT-1.1.1.tgz
 [2005-08-22 19:34 UTC] klaus at capitalfocus dot org
I'm reopening this. Not that there isn't a problem with Bertrand's config. (Which looks just fine to me, btw.) Look at the output on windows for my pear install:

C:\Documents and Settings\thesaur>pear install html_template_it
Could not download from "http://pear.php.net/get/HTML_Template_IT-1.1.1.tgz", cannot download "pear/html_template_it"
Error: cannot download "pear/HTML_Template_IT"

C:\Documents and Settings\thesaur>pear -vvvvvvvvv install html_template_it
+ tmp dir created at C:\DOCUME~1\thesaur\LOCALS~1\Temp\tmp45.tmp
Could not download from "http://pear.php.net/get/HTML_Template_IT-1.1.1.tgz", cannot download "pear/html_template_it"
Error: cannot download "pear/HTML_Template_IT"


So there's a problem, even if it's not exactly what Bertrand reported. Should this bug be moved to the pearweb category?
 [2005-08-22 19:37 UTC] bertrand at toggg dot com
I forgot to say this test channel was cleared for this test.
(also the cache)
that was made clear, everything.

# pear list-channels
Registered Channels:
====================
Channel      Summary
pear.php.net PHP Extension and Application Repository
pecl.php.net PHP Extension Community Library
__uri        Pseudo-channel for static packages
 [2005-08-22 19:40 UTC] cellog@php.net
moving to Website, something is really wrong in the database.  HTML_Template_IT may need to be pulled and re-released
 [2005-08-22 22:06 UTC] bertrand at toggg dot com
That is definitively a bug.
This package was produced with pear.
Please, case you have an answer, use *this* channel,
not my personal mail.
I'm sorry if testing your scripts hurts you.
 [2005-08-23 00:43 UTC] cellog@php.net
It's great to have testers of scripts.  Opening 2 bogus bugs and ignoring my responses is not as helpful.  (note that the original problem in both this and 5180 had nothing to do with pear.php.net, and PEAR was reporting correctly that trash was being returned from XML_RPC)
 [2005-08-26 15:25 UTC] mj@php.net
I cleaned up the mess in the database.
 [2005-08-26 17:08 UTC] bertrand at toggg dot com
Merci :)
4 days ...
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Nov 24 12:01:28 2020 UTC