SID-01428: WYSWYG editing problem
| Status: |
Answered |
TWiki version: |
5.1.1 |
Perl version: |
|
| Category: |
CategoryEditing |
Server OS: |
SunOS |
Last update: |
13 years ago |
I am getting the following error while editing using WYSWYG editor
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
(
@INC
contains: /var/apache2/htdocs/twiki/lib . /opt/csw/lib/perl/site_perl /opt/csw/share/perl/site_perl /opt/csw/share/perl/site_perl /opt/csw/lib/perl/csw /opt/csw/share/perl/csw /opt/csw/share/perl/csw /opt/csw/lib/perl/5.10.1 /opt/csw/share/perl/5.10.1 /var/apache2/htdocs/twiki/lib/CPAN/lib//arch /var/apache2/htdocs/twiki/lib/CPAN/lib//5.10.1/sun4-solaris-thread-multi /var/apache2/htdocs/twiki/lib/CPAN/lib//5.10.1 /var/apache2/htdocs/twiki/lib/CPAN/lib/).
at /var/apache2/htdocs/twiki/lib/TWiki/Plugins/WysiwygPlugin/HTML2TML.pm line 44
BEGIN failed--compilation aborted at /var/apache2/htdocs/twiki/lib/TWiki/Plugins/WysiwygPlugin/HTML2TML.pm line 44.
Compilation failed in require at /var/apache2/htdocs/twiki/lib/TWiki/Plugins/WysiwygPlugin.pm line 211.
while the raw edit works all fine.
I figured out from other posts that I need to install html:parser.
My IT team has installed all the required modules but it still doesnt works. May be some path problems or needs config change, but I m not able to work it out.
--
HarshBafna - 2012-03-19
Discussion and Answer
Never mind I found the solution.
We need to create a soft link at /usr/bin/perl as Twiki uses this location by default.
we can test if html:parser is working using this command
/usr/bin/perl -MHTML::Parser -e 0
--
HarshBafna - 2012-03-19
Good to know. Thank you Harsh for reporting back!
Since you have Perl in a different path did you change the
#!/usr/bin/perl in all
twiki/bin/ files?
--
PeterThoeny - 2012-03-19
No you need not change any path just create a soft link in the mentioned directory i.e /user/bin/perl.
--
HarshBafna - 2012-03-20
For eg. my perl was installed at /usr/perl5/5.8.4/bin/perl
So i just created a soft link for it at /usr/bin/perl and it works fine
--
HarshBafna - 2012-03-20
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.