Item5903: Wysiwyg is not working after updating to 4.2.1

pencil
Priority: Normal
Current State: No Action Required
Released In:
Target Release: n/a
Applies To: Engine
Component: Wysiwyg editor
Branches:
Hi,

I´m trying to update to version 4.2.1 (from 4.2.0), but there is something wrong. After updating, when I try to edit a topic using the wysiwyg editor, I receive the following error: "There as a problem retrieving the page: Not Found". I applied the upgrade tar file and then the complete tar file, but the problem persists for both. I can not find any place where there is a mistake in directory names, so I returned back to 4.2.0 and will wait for a solution.

Regards.

Luis Marcelo Achite (lmachite@dir.iai.int)

-- TWiki:Main/LuisMarceloAchite - 08 Aug 2008

Luis, I hope that Crawford can give you a set of questions that will help us narrow down the issue. Can you begin by teling us about your OS, version, version of Perl, the versions of the Perl modules listed in Configure (prefereably from the 4.2.1 configure, as I made some improvements to it)

If you could set up a (private) paralell install of TWiki on that same system, it would be a massive help.

-- SvenDowideit - 09 Aug 2008

Also: any errors from the Apache error log (assuming you are using Apache). And, when you edit, when do you get the error? Immediately (before the editor is displayed) or in red in the edit area? And is your site configured to use UTF8?

-- TWiki:Main.CrawfordCurrie - 09 Aug 2008

Hi, Sorry for the delay in answering this. I didnt have internet access during this weekend. Answering your questions, I´m using Linux Redhat Enterprise version 3 with kernel Linux 2.6.9-67.0.7.elsmp (i386-linux-thread-multi). Perl version is 5.008. Here are the list of perl´s modules: B::Deparse 0.63 installed CGI 3.15 installed Carp 1.01 installed Config Unknown version installed Cwd 2.06 installed Data::Dumper 2.12 installed Error 0.15 installed Exporter 5.567 installed FileHandle 2.01 installed File::Basename 2.71 installed File::Glob 1.01 installed File::Path 1.05 installed File::Spec 3.16 installed File::Temp 0.13 installed FindBin 1.43 installed MIME::Base64 2.12 installed POSIX 1.05 installed Socket 1.75 installed Archive::Tar 1.22 installed CGI::Cookie 1.26 installed CGI::Session 4.03 installed Locale::Maketext::Lexicon 0.49 installed Net::SMTP 2.24 installed. Version 2.29 optional may be required for sending mail Apache::Htpasswd 1.8 installed Digest::MD5 2.20 installed Digest::SHA1 2.10 installed Encode 1.83 installed Encode::compat 0.07 installed Getopt::Long 2.32 installed I18N::Langinfo 0.01 installed Lingua::EN::Sentence 0.25 installed Symbol 1.04 installed Unicode::MapUTF8 1.11 installed

About Apache, there is nothing on the logs.

About a private parallel installation, I set this and the problem still happens. Actually I installed version 4.2.2 and the problem persists.

Answering last question, the error message is displayed in red in the edit area. About UTF, yes it accepts as you can see from the configure list: HTTP_ACCEPT_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7

Thanks for your prompt help on this.

Regards.

Marcelo

-- TWiki:Main.LuisMarceloAchite - 11 Aug 2008

My guess is that you are using URL rewriting rules. Check your access log, and make sure that the request that the browser emits after Tiny MCE first loads makes sense.

-- TWiki:Main.CrawfordCurrie - 11 Aug 2008

From the log (error_log) I can see the following:
 [Mon Aug 11 14:03:43 2008] [error] [client 150.163.35.22] ERROR: (404) Invalid REST invocation (WysiwygPlugin on tml2html), referer: https://iaibr3.iai.int/twiki_nv/bin/edit/Main/WebHome?t=1218474216. 
From access_log, I can see the following:
150.163.35.22 - - [11/Aug/2008:13:54:28 -0300] "POST /twiki_nv/bin/rest/WysiwygPlugin/tml2html HTTP/1.1" 404 65 "https://iaibr3.iai.int/twiki_nv/bin/edit/Main/WebHome?t=1218473615" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1". 
When trying to edit a topic under version 4.2.0, access_log returns the same log, but instead of "WebHome?t=1218473615", it returns "WebHome?twiki_redirect_cache=67359e6174ad25cff193df7273d92c3f". Any guess? Regards. Marcelo

-- TWiki:Main.LuisMarceloAchite - 11 Aug 2008

The "Invalid REST invocation" is the key part. It looks like there is compilation problem with the plugin, perhaps due to an error in the file permissions. Visit the TWiki.TWikiPlugins page, look at the FAILEDPLUGINS section and check that both WysiwygPlugin and TinyMCEPlugin are listed and there are no errors reported.

-- CrawfordCurrie - 12 Aug 2008

No, there is nothing there. As a tentative to solve the problem, I installed again Wysiwyg and TineMCE Plugins (installation process finished without problems), but the red message still persists when trying to edit a topic. What is curious is that the problem is not happening with version 4.2.0. I agree with you that could be something related with file permisssions. But the questions is WHAT file is having permission problems? Do you have some guess? Regards. Marcelo

-- TWiki:Main.LuisMarceloAchite - 12 Aug 2008

Sorry, but without access to your installation there is very little I can do. I would suggest that you insert debugging statements (e.g. print STDERR "Message\n"; which will print a message to the Apache error log) and isolate the reason why the rest script thinks it is an invalid invocation.

-- TWiki:Main.CrawfordCurrie - 13 Aug 2008

I see the situation. I uninstalled TinyMCEPlugin, and now when I try to edit a topic I return back to the non-wysiwyg editor. After this, I installed TinyMCEPlugin again and the error message returns back. frown, sad smile I installed Twiki in another computer and the error message does not appear. this is really frustrating. Can you informe me where I should put "print STDERR". You mean the "rest" file under /bin? Regards. Marcelo

-- TWiki:Main.LuisMarceloAchite - 13 Aug 2008

Just looking back over your configuration, i note you are using RHEL 3. I have never tried TWiki on anything older than RHEL 4, and even that is looking rather old. There are likely to be problems with some of the older perl modules, including CGI, which may not be the cause of your current problems but will manifest themselves elsewhere. I would strongly recommend upgrading your OS, if that is possible, and your CPAN modules otherwise.

In answer to your question, starting in the bin/rest file, yes. You are trying to find out why the rest invocation is rejected.

-- TWiki:Main.CrawfordCurrie - 16 Sep 2008

Ok, thanks for your help on this. I´m planning this upgrade for a near time. I will do that and then let you know if the problem is happening or not. Regards.

-- TWiki:Main.LuisMarceloAchite - 16 Sep 2008

I assume we are waiting for upgrade feedback from TWiki:Main.LuisMarceloAchite

I do not see this as a 4.2.4 release blocker.

-- TWiki:Main.KennethLavrsen - 18 Sep 2008

I do not expect to see any feedback on this.

No Action

ItemTemplate edit

Summary Wysiwyg is not working after updating to 4.2.1
ReportedBy TWiki:Main.LuisMarceloAchite
Codebase
SVN Range TWiki-5.0.0, Sun, 03 Aug 2008, build 17280
AppliesTo Engine
Component Wysiwyg editor
Priority Normal
CurrentState No Action Required
WaitingFor TWiki:Main.LuisMarceloAchite
Checkins
TargetRelease n/a
ReleasedIn
Topic revision: r15 - 24 Dec 2008, KennethLavrsen
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy