• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item6159: Internal error when including a URL if LWP is not installed

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Normal New   n/a  

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


As reported in TWiki:Support/IncludeWebPage:

LWP is not installed, e.g. fall-back to TWiki using sockets directly. An INCLUDE of an http URL produces this error log:

| 29 Dec 2008 - 13:48 | Can't locate object method "new" via package "TWiki::Net::HTTPResponse" at /var/www/twiki/lib/TWiki/Net.pm line 202.  at /var/www/twiki/lib/TWiki/Net.pm line 202         TWiki::Net::__ANON__('Error::Simple=HASH(0x959bc60)', 'SCALAR(0x8a51370)') called at /var/www/twiki/lib/CPAN/lib//Error.pm line 305         eval {...} called at /var/www/twiki/lib/CPAN/lib//Error.pm line 296         Error::subs::run_clauses('HASH(0x957f180)', 'socket failed: Permission denied at /usr/lib/perl5/5.8.8/CGI/...', 'undef', 'ARRAY(0x941e3e8)') called at /var/www/twiki/lib/CPAN/lib//Error.pm line 390         Error::subs::try('CODE(0x957ed9c)', 'HASH(0x957f180)') called at /var/www/twiki/lib/TWiki/Net.pm line 203         TWiki::Net::getExternalResource('TWiki::Net=HASH(0x955d5b8)', 'http://localhost:80/index.html') called at /var/www/twiki/lib/TWiki.pm line 1899         TWiki::_includeUrl('TWiki=HASH(0x89b769c)', 'http://localhost:80/index.html', 'undef', 'Sandbox', 'TestTopic0', '', 'TWiki::Attrs=HASH(0x955d4ec)', 'on') called at /var/www/twiki/lib/TWiki.pm line 3192         TWiki::INCLUDE('TWiki=HASH(0x89b769c)', 'TWiki::Attrs=HASH(0x955d4ec)', 'TestTopic0', 'Sandbox', 'TWiki::Meta=HASH(0x921ab3c)') called at /var/www/twiki/lib/TWiki.pm line 2711         TWiki::_expandTagOnTopicRendering('TWiki=HASH(0x89b769c)', 'INCLUDE', '"http://localhost:80/index.html"', 'TestTopic0', 'Sandbox', 'TWiki::Meta=HASH(0x921ab3c)') called at /var/www/twiki/lib/TWiki.pm line 2625         TWiki::_processTags('TWiki=HASH(0x89b769c)', '%TOC%\x{a}\x{a}---+ Writing Test\x{a}\x{a}Now you can write English letters\x{a}\x{a}...', 'CODE(0x8c27140)', 16, 'TestTopic0', 'Sandbox', 'TWiki::Meta=HASH(0x921ab3c)') called at /var/www/twiki/lib/TWiki.pm line 2549         TWiki::expandAllTags('TWiki=HASH(0x89b769c)', 'SCALAR(0x8c27878)', 'TestTopic0', 'Sandbox', 'TWiki::Meta=HASH(0x921ab3c)') called at /var/www/twiki/lib/TWiki.pm line 2908         TWiki::handleCommonTags('TWiki=HASH(0x89b769c)', '%TOC%\x{a}\x{a}---+ Writing Test\x{a}\x{a}Now you can write English letters\x{a}\x{a}...', 'Sandbox', 'TestTopic0', 'TWiki::Meta=HASH(0x921ab3c)') called at /var/www/twiki/lib/TWiki/UI/View.pm line 392         TWiki::UI::View::_prepare('%TOC%\x{a}\x{a}---+ Writing Test\x{a}\x{a}Now you can write English letters\x{a}\x{a}...', 'TWiki=HASH(0x89b769c)', 'Sandbox', 'TestTopic0', 'TWiki::Meta=HASH(0x921ab3c)', 0) called at /var/www/twiki/lib/TWiki/UI/View.pm line 373         TWiki::UI::View::view('TWiki=HASH(0x89b769c)') called at /var/www/twiki/lib/TWiki/UI.pm line 159         TWiki::UI::__ANON__() called at /var/www/twiki/lib/CPAN/lib//Error.pm line 379         eval {...} called at /var/www/twiki/lib/CPAN/lib//Error.pm line 371         Error::subs::try('CODE(0x89b7654)', 'HASH(0x911dfe4)') called at /var/www/twiki/lib/TWiki/UI.pm line 197         TWiki::UI::run('CODE(0x8c963c8)', 'view', 1) called 

-- TWiki:Main/PeterThoeny - 31 Dec 2008

Summary Internal error when including a URL if LWP is not installed
ReportedBy TWiki:Main.PeterThoeny
Codebase 4.2.4
SVN Range TWiki-5.0.0, Wed, 22 Oct 2008, build 17677
AppliesTo Engine

Priority Normal
CurrentState New


TargetRelease n/a

Topic revision: r1 - 2008-12-31 - PeterThoeny
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback