We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
Tags:
create new tag
, view all tags
Question moved from Bugs:Item3180 by CC, 5 Dec 2006

Question

WysiwygPlugin hides the save button and does nothing when I enable it in an Apache with mod_perl environment. I applied the instructions given by Kenneth Lavresen in ApacheConfigGenerator. When I opened TWiki and fired Wysiwyg, it showed the toolbuttons minus the Save button and also the toolbuttons got disabled.

Environment

TWiki version: TWikiRelease04x00x05
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Unknown
Web server: Unknown
Perl version: Unknown
Client OS: Unknown
Web Browser: Unknown
Categories: Permissions, Javascript, Fatal error, Plugins

-- AlokNarula - 18 Nov 2006

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

I cannot reproduce this from the small amount of information given here; AFAICT WysiwygPlugin works fine under mod_perl.

Please give a detailed description of how to reproduce this problem (including an example on a public server if you have one), including a list of all installed software versions including plugins, and precise instructions on how to reproduce the problem.

Status changed to Waiting for Feedback.

-- CrawfordCurrie

I've uploaded a screenshot of the Wysiwyg tool showing the save button hidden. I've also attached a list of plugins installed on my TWiki server.

-- AlokNarula

The first observation is that the editor is fine apart from that button. This indicates it is nothing to do with mod_perl. mod_perl is a perl script accelerator, and by the time the editor is displayed, it has finished its work.

Some questions.

  1. What kind of browser are you using? What version?
  2. The button doesn't appear; but does anything happen when you click where it should be?
  3. Open wysiwyg and hit shift+f5. Does the button appear?
  4. Are there any javascript errors reported in your browser?
  5. Are there any errors reported in the server error log?

If none of that helped, with such a huge number of installed plugins, it is remotely possible - though highly unlikely- that some other plugin is interacting to cause the problem. Disable all plugins in configure except Wysiwyg, restart the server and see if the problem goes away.

-- CrawfordCurrie

I see the following errors in my Apache error log when I enable mod_perl:

[Tue Dec 05 07:24:04 2006] [error] file permissions deny server execution/home/twiki/pub/TWiki/WysiwygPlugin/_kupu/common/kupueditor.js
[Tue Dec 05 07:24:05 2006] [error] file permissions deny server execution/home/twiki/pub/TWiki/WysiwygPlugin/_kupu/common/kupusourceedit.js
[Tue Dec 05 07:24:05 2006] [error] file permissions deny server execution/home/twiki/pub/TWiki/WysiwygPlugin/view-source.png
[Tue Dec 05 07:24:06 2006] [error] file permissions deny server execution/home/twiki/pub/TWiki/WysiwygPlugin/save.png

What should be the permissions of the WysiwygPlugin directory as a whole and what should be the permissions of the files mentioned above.

-- AlokNarula

The permissions need to be set to allow the webserver user to read those files. Usually changing the file ownership to the webserver user is best, though you can also simply make the files readable by any user.

-- CrawfordCurrie - 05 Dec 2006

 
Change status to:
Topic revision: r2 - 05 Dec 2006 - 09:40:35 - PeterThoeny
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback