Tags:
create new tag
view all tags

SID-02171: Replacing the HTML::Entities Perl module

Status: Answered Answered TWiki version: 6.0.2 Perl version: 5.18.2
Category: CategoryError Server OS: Ubuntu 14.04 LTS Last update: 9 years ago

I've been attempting to get TWiki working on Ubuntu 14 LTS. After installation, clicking red ! WikiWord links gives an error

TWiki detected an internal error - please check your TWiki logs and webserver logs for more information.
Can't locate HTMLpath in @INC (you may need to install the HTML::Entities module) (@INC contains: path . path path path path path path path path path path-linux-gnu-thread-multi path path)
In fact, I didn't have the HTML::Entities module installed by default. Looking into it, though, it appears that HTML::Entities is no longer maintained in the Ubuntu repositories. Instead, its functions seem to be replaced by the combination of HTML::HTML5::Entities and HTML::Entities::Numbered.

I installed both of these modules:

$ apt-get install libhtml-html5-entities-perl

$ apt-get install libhtml-entities-numbered-perl

and restarted Apache. I continue to receive the exact same error when clicking red ! WikiWords.

HTML::HTML5::Entities is billed as a "drop-in" replacement for HTML::Entities, which implies that its functions ought to satisfy whatever TWiki needs from HTML::Entities. So it seems that I need either to tell TWiki to look for HTML::HTML5::Entities instead of HTML::Entities, or install the proper HTML::Entities module, which does not exist in the Ubuntu repository.

Internet searches have not helped me figure out how to do either of these things. Any advice is appreciated!

-- TWiki Guest - 2016-03-14

Discussion and Answer

The Perl module HTML::Entities is (and has always been) part of the CPAN package HTML::Parser, or libhtml-parser-perl in Ubuntu. Install that and you'll be fine!

I just noticed that HTML::Parser is not (yet) listed as a prerequisite of TWiki. The dependency came in with the WYSIWYG editor (WysiwygPlugin) - which is now the default editor for TWiki, so I think that the configure script should help detecting this situation, and the TWikiInstallationGuide should make it clear how to obtain HTML::Entities. I'll file a bug report for that.

Sorry for the confusion - and thanks for the hint!

-- Harald Jörg - 2016-03-14

That worked! Thanks for your help!

-- TWiki Guest - 2016-03-14

      Change status to:
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.
SupportForm
Status Answered
Title Replacing the HTML::Entities Perl module
SupportCategory CategoryError
TWiki version 6.0.2
Server OS Ubuntu 14.04 LTS
Web server Apache 2.4.7
Perl version 5.18.2
Browser & version Firefox 44.0.2
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2016-03-14 - TWikiGuest
 
  • 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.