Tags:
create new tag
view all tags

Question

Hi,

I just upgraded to version 4.2 and I'm using %INCLUDE% on one of the pages and getting this error:

Failed to include URL http://somesite.sun.come/test.html Incomplete headers

Anyone seen this before?

I even tried just using a simple .txt file.

Thanks,

Nam

Environment

TWiki version: TWikiRelease04x02x00
TWiki plugins: DefaultPlugin, EmptyPlugin,SpreadSheetPlugin, CommentPlugin, EditTablePlugin, InterwikiPlugin, PreferencesPlugin, SlideShowPlugin, SmiliesPlugin, TablePlugin, TinyMCEPlugin, TwistyPlugin, WysiwygPlugin
Server OS: Solaris 10
Web server: Apache2
Perl version: 5.6.2
Client OS: Various
Web Browser: Various
Categories: Missing functionality

-- NamLe - 04 Sep 2008

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

In HoToAllowUrlInclude, HaraldJoerg wrote:

There's an option in bin/configure named {INCLUDE}{AllowURLs} which you need to switch on. It is an "expert" option, so you need to click the "Yes, I've read all the documentation" button first.

The upgrade resets the config params, so this could be what happened.

-- SeanCMorgan - 04 Sep 2008

Just spent hours banging my head against this error message. Another requirement (in addition to the above) is to make sure your CGI setup is correct. Personally, I find the TWiki setup uncomfortably vague in regard to what PERL modules are needed, and how to get them. A definitive list, or set of explicit instructions on how to set up PERL with the right modules would be great, but instead so far we only get hints like "Use your linux package manager" or "Use CPAN" but not explicit steps on HOW.

(Sorry to complain)

The solution was found by running twiki/bin/configure, logging in as administrator, clicking Configure, then clicking CGI Setup (read only). In there, down buried in the long list of required modules is the LWP module. THIS IS THE ONE THAT'S NEEDED! Note how it reads "needed for the Configure Extensions instsaller, and for external URL based INCLUDEs".

Which is what this error is about. Installing LWP (for me, using CPAN didn't make it show up in TWiki, I used synaptic package manager on Ubuntu and installed "libwww-perl" <- note the non-intuitive name vs. TWiki's generic name "LWP" (oops I complained again) ... in any case, this fixed the errors, and %INCLUDE with URLs in them works again!

-- Eric Riebling - 2013-09-20

Change status to:
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2013-09-20 - EricRiebling
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.