Tags:
create new tag
view all tags

SID-01544: Twiki : WYSIWYG Editing Errors

Status: Answered Answered TWiki version: 5.1.1 Perl version: 5.8.4
Category: CategoryEditing Server OS: Solaris 10 Last update: 13 years ago

Hi Team,

We had performed upgrade last week and had run into some issues . One of which was that editing in WYSIWYG mode does NOT work unlike raw edit.

It reports the following error everytime we attempt to save after editing using WYSIWYG plugin/mode.

Base class package "HTML::Parser" is empty. (Perhaps you need to 'use' the module which defines that package first, or make that module available in @INC )

Perl is installed at /usr/perl5/5.8.4/bin/perl

(PROD)emarkets@ap-em6p-a:~$ which perl /usr/bin/perl (PROD)emarkets@ap-em6p-a$ ls -la /usr/bin/perl lrwxrwxrwx 1 root root 23 Jul 3 23:08 /usr/bin/perl -> ../perl5/5.8.4/bin/perl

Also , when we test MTHML::Parser , it returns the following output

(PROD)emarkets@ap-em6p-a:~$ /usr/bin/perl -MHTML::Parser -e 0 (PROD)emarkets@ap-em6p-a:~$

Can you please advise how to fix the issue ...

Thanks Clive

-- CliveDias - 2012-10-01

Discussion and Answer

Furthermore , please let us know if it is because we have not created LocalLib.cfg in the bin folder defininig the Perl Lib Path just like belows ( as observed on our old twiki 4.1.2 folder ) :

(PROD)emarkets@ap-em6p-a:/me01/apps/emarkets/twiki-home/twiki/bin$ cat LocalLib.cfg | grep Perl @localPerlLibPath = ( '/me01/apps/emarkets/twiki-home/perlmodules','/me01/apps/emarkets/twiki-home/perlmodules/i86pc-solaris-64int' );

FYI , the http.conf has the following section for Perl settings

# mod_perl settings # This matches all lower-case file names, except # those starting with "configure" <FilesMatch "^(?!configure)[a-z.]+$"> SetHandler perl-script PerlResponseHandler ModPerl::Registry PerlSendHeader On PerlOptions +ParseHeaders </FilesMatch>

We had tried to comment the above section related to Perl Settings after we received the following message ( Internal Server Error ) and apache logs indicated

[Sat Sep 29 12:04:49 2012] [error] [client 10.154.105.187] failed to resolve handler `ModPerl::Registry': Can't locate ModPerl/Registry.pm in @INC (@INC cont ains: /lib /me01/apps/emarkets/twiki-home/twiki/bin /usr/perl5/5.8.4/lib/i86pc-solaris-64int /usr/perl5/5.8.4/lib /usr/perl5/site_perl/5.8.4/i86pc-solaris-64 int /usr/perl5/site_perl/5.8.4 /usr/perl5/site_perl /usr/perl5/vendor_perl/5.8.4/i86pc-solaris-64int /usr/perl5/vendor_perl/5.8.4 /usr/perl5/vendor_perl /me0 1/apps/emarkets/apache22) at (eval 4) line 3.\n

Though twiki worked fine , we were not able to edit in WYSIWYG mode

Error again reported in apache logs is as follows :

Base class package "HTML::Parser" is empty. (Perhaps you need to 'use' the module which defines that package first.) at /me01/apps/emarkets/twiki-home/twiki-5.1.1/lib/TWiki/Plugins/WysiwygPlugin/HTML2TML.pm line 44 BEGIN failed--compilation aborted at /me01/apps/emarkets/twiki-home/twiki-5.1.1/lib/TWiki/Plugins/WysiwygPlugin/HTML2TML.pm line 44. Compilation failed in require at /me01/apps/emarkets/twiki-home/twiki-5.1.1/lib/TWiki/Plugins/WysiwygPlugin.pm line 211.

-- CliveDias - 2012-10-01

Hi Team ,

Looks like we are now able to edit in WYSIWYG mode after we created a LocalLib.cfg file in the bin folder and included mod_perl settings in http.conf ( uncommented ) .

We no longer get the errors in apache logs .

Can you please have a look @ our other queries posted ...

Thanks again ...

Thanks Clive

-- CliveDias - 2012-10-03

      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 Twiki : WYSIWYG Editing Errors
SupportCategory CategoryEditing
TWiki version 5.1.1
Server OS Solaris 10
Web server Apache/2.2.15
Perl version 5.8.4
Browser & version IE 8
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2012-10-03 - CliveDias
 
  • 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.