Tags:
create new tag
view all tags

SID-00962: HTML code missing after edit

Status: Answered Answered TWiki version: 5.0.0 Perl version: 5.12.0
Category: CategoryEditing Server OS: Solaris 10, kernel 5.10 Last update: 15 years ago

Hello, I am new to TWiki and I have a problem with editting topics. I have created a few webs and I am inserting text files containing TML and HTML code into the data/web directory. When I visit the site I can see the topics and they look fine, the TML and HTML displays well and there aren't any visible problems. Although when I edit (on the site via "edit" button) any of the topics and then save it, all of the HTML code dissapears, except the <script>,<br/>,<span> and <a/> tags and whatever is inside. I think that this started to occur after I installed Perl5.12.0 , previously I was using Perl5.8.4 but it was compiled with a C compiler (found in Sun Studio) which was uninstalled some time ago and I couldn't make/install any modules with gcc. Also it had an older version of Perl::IO 1.10 and I had to upgrade it to 1.14 for attachments to work, so I finally decided leaving the old perl 5.8.4 and install perl 5.12.0, I made the old /usr/bin/perl point to /usr/local/bin/perl5.12.0 (in order to save time without having to re-path scripts etc) and everything seems to work except the edit problem I described above. At first it was missing HTML::Tagset and HTML::Parser so when editting I had an internal error saying: HTML::Parser is empty, I've then installed both and no such message occured since then. Now, I have studied a bit the scripts that are resposnible for the editting process and found ... OH wait a sec

Ok now I know that the WYSIWYG plugin is responsible for my html dissapearance! I was suspecting that before but I thought it was an integrated TWiki script, now I found out its a plugin so I just turned it off and everything is fine smile , I am not sure whether this is intended or a bug, anyways will post my "finding" just in case other people got the same problem.

BTW please take a look at the logs below (apache logs) there are some notifications which doesn't do much harm to the site, or at least they are not yet visible through the browser, but their occurance in the logs must mean something is not healthy.

=

[Tue Sep 7 10:51:50 2010] [notice] caught SIGTERM, shutting down
[Tue Sep 7 10:51:57 2010] [notice] Apache/1.3.36 (Unix) mod_perl/1.29 configured -- resuming normal operations
[Tue Sep 7 10:51:57 2010] [notice] Accept mutex: fcntl (Default: fcntl)
[Tue Sep 7 10:55:54 2010] view: defined(%hash) is deprecated at /data2/twiki5_pdc/lib/CPAN/lib//Locale/Maketext/Lexicon.pm line 286.
[Tue Sep 7 10:55:54 2010] view: (Maybe you should just omit the defined()?)
[Tue Sep 7 10:55:54 2010] view: Use of uninitialized value $tag in lc at /data2/twiki5_pdc/lib/TWiki/I18N.pm line 64.
[Tue Sep 7 10:56:00 2010] view: defined(%hash) is deprecated at /data2/twiki5_pdc/lib/CPAN/lib//Locale/Maketext/Lexicon.pm line 286.
[Tue Sep 7 10:56:00 2010] view: (Maybe you should just omit the defined()?)
[Tue Sep 7 10:56:00 2010] view: Use of uninitialized value $tag in lc at /data2/twiki5_pdc/lib/TWiki/I18N.pm line 64.
[Tue Sep 7 10:56:09 2010] login: defined(%hash) is deprecated at /data2/twiki5_pdc/lib/CPAN/lib//Locale/Maketext/Lexicon.pm line 286.
[Tue Sep 7 10:56:09 2010] login: (Maybe you should just omit the defined()?)
[Tue Sep 7 10:56:09 2010] login: Use of uninitialized value $tag in lc at /data2/twiki5_pdc/lib/TWiki/I18N.pm line 64.
[Tue Sep 7 10:56:14 2010] edit: Use of uninitialized value in lc at /data2/twiki5_pdc/lib/TWiki/UI/Edit.pm line 83.
[Tue Sep 7 10:56:14 2010] edit: defined(%hash) is deprecated at /data2/twiki5_pdc/lib/CPAN/lib//Locale/Maketext/Lexicon.pm line 286.
[Tue Sep 7 10:56:14 2010] edit: (Maybe you should just omit the defined()?)
[Tue Sep 7 10:56:14 2010] edit: Use of uninitialized value $tag in lc at /data2/twiki5_pdc/lib/TWiki/I18N.pm line 64.
[Tue Sep 7 10:56:21 2010] save: Use of uninitialized value in lc at /data2/twiki5_pdc/lib/TWiki/UI/Save.pm line 468.
[Tue Sep 7 10:56:21 2010] save: Wide character in print at /data2/twiki5_pdc/lib/TWiki/Store/RcsFile.pm line 797.
[Tue Sep 7 10:56:21 2010] save: Wide character in print at /data2/twiki5_pdc/lib/TWiki/Store/RcsLite.pm line 399.
[Tue Sep 7 10:56:22 2010] view: defined(%hash) is deprecated at /data2/twiki5_pdc/lib/CPAN/lib//Locale/Maketext/Lexicon.pm line 286.
[Tue Sep 7 10:56:22 2010] view: (Maybe you should just omit the defined()?)
[Tue Sep 7 10:56:22 2010] view: Use of uninitialized value $tag in lc at /data2/twiki5_pdc/lib/TWiki/I18N.pm line 64.
[Tue Sep 7 11:51:01 2010] view: defined(%hash) is deprecated at /data2/twiki5_pdc/lib/CPAN/lib//Locale/Maketext/Lexicon.pm line 286.
[Tue Sep 7 11:51:01 2010] view: (Maybe you should just omit the defined()?)
[Tue Sep 7 11:51:01 2010] view: Use of uninitialized value $tag in lc at /data2/twiki5_pdc/lib/TWiki/I18N.pm line 64.
[Tue Sep 7 11:51:01 2010] view: Use of uninitialized value in pattern match (m//) at /data2/twiki5_pdc/lib/TWiki/Store.pm line 1392.
[Tue Sep 7 11:51:01 2010] view: Use of uninitialized value $rev in substitution (s///) at /data2/twiki5_pdc/lib/TWiki/Meta.pm line 434.
[Tue Sep 7 11:51:01 2010] view: Use of uninitialized value $rev in substitution (s///) at /data2/twiki5_pdc/lib/TWiki/Meta.pm line 435.
[Tue Sep 7 11:52:02 2010] view: defined(%hash) is deprecated at /data2/twiki5_pdc/lib/CPAN/lib//Locale/Maketext/Lexicon.pm line 286.
[Tue Sep 7 11:52:02 2010] view: (Maybe you should just omit the defined()?)

=

-- MikeMokkas - 2010-09-07

Discussion and Answer

On WYSIWYG editor eating HTML, this is very possible. You can tell the editor to leave section of HTML alone by enclosing it in <sticky> ... </sticky> tags. See details in WysiwygPlugin.

On deprecated & uninitialized value messages, best to file a bug report so that we can track it. Specify Perl version used and TWiki configuration used.

-- PeterThoeny - 2010-09-07

Thanks for the reply Peter, I will check if the same deprecated and uninitialized value messages occur in my other TWiki installations (got more for testing) and then file a bug report if necessary.

-- MikeMokkas - 2010-09-08

view: Use of uninitialized value in pattern match (m//) at /var/www/twiki/lib/TWiki/Store.pm line 1392. [Fri Oct 08 17:39:29 2010] [error] [client 10.30.2.115] [Fri Oct 8 17:39:29 2010] view: Use of uninitialized value $rev in substitution (s///) at /var/www/twiki/lib/TWiki/Meta.pm line 434. [Fri Oct 08 17:39:29 2010] [error] [client 10.30.2.115] [Fri Oct 8 17:39:29 2010] view: Use of uninitialized value $rev in substitution (s///) at /var/www/twiki/lib/TWiki/Meta.pm line 435.

i have the same errors, twiki5.0 perl v5.10.1

-- GabrieleMarsano - 2010-10-08

Gabriele, thanks for reporting. Could you please file a bug report at TWikibug:WebHome and describe what you did to get this warning? We can fix if we can reproduce it.

-- PeterThoeny - 2010-10-08

Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the TWiki consultants if you need timely help. We invite you to get involved with the community, it is more likely you get community support if you support the open source project!

-- PeterThoeny - 2011-01-04

      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 HTML code missing after edit
SupportCategory CategoryEditing
TWiki version 5.0.0
Server OS Solaris 10, kernel 5.10
Web server Apache 1.3.36
Perl version 5.12.0
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2011-01-04 - PeterThoeny
 
  • 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.