Tags:
create new tag
view all tags

SID-00874: "HTML" button on TinyMCE editor throws a "Forbidden" error

Status: Answered Answered TWiki version: 5.0.0 Perl version: Perl v5.10.0
Category: CategoryEditing Server OS: Ubuntu 8.10 Last update: 15 years ago

Just completed a TWiki 5 upgrade. When I press "HTML" button in the TinyMCE editor, I get the following error:

Forbidden

You don't have permission to access /twiki/pub/TWiki/TinyMCEPlugin/tinymce/jscripts/tiny_mce/themes/advanced/source_editor.htm on this server.

Any ideas on what I should do? Thank you so much.

-- SomikRaha - 2010-06-24

Discussion and Answer

This is likely an Apache config issue. See related SID-00209.

In Apache directive <Directory "/var/www/twiki/pub"> make sure to exclude .htm from being redefined:

AddType text/plain .shtml .php .php3 .phtml .phtm .pl .py .cgi

I recommend to use the ApacheConfigGenerator.

-- PeterThoeny - 2010-06-24

<Directory "/var/www/twiki5/pub">
    Options None
    AllowOverride None
    Order Allow,Deny
    Allow from all
    Deny from env=blockAccess

    # Disable execusion of PHP scripts
    php_admin_flag engine off

    # This line will redefine the mime type for the most common types of scripts
    AddType text/plain .shtml .php .php3 .phtml .phtm .pl .py .cgi
#
#add an Expires header that is sufficiently in the future that the browser does not even ask if its uptodate
# reducing the load on the server significantly
#IF you can, you should enable this - it _will_ improve your twiki experience, even if you set it to under one day.
# you may need to enable expires_module in your main apache config
#LoadModule expires_module libexec/httpd/mod_expires.so
#AddModule mod_expires.c
#<ifmodule mod_expires.c>
#  <filesmatch "\.(jpg|gif|png|css|js)$">
#       ExpiresActive on
#       ExpiresDefault "access plus 11 days"
#   </filesmatch>
#</ifmodule>
#

</Directory>

-- SomikRaha - 2010-06-24

Hmm, not sure. Check your /etc/httpd/conf/httpd.conf if there are any settings that prohibit .htm. Also, check if directory /twiki/pub/TWiki/TinyMCEPlugin/tinymce/jscripts/tiny_mce/themes/advanced/ and parent directories are readable by the Apache user. Same for files within that directory.

-- PeterThoeny - 2010-06-24

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 - 2010-08-02

      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" button on TinyMCE editor throws a "Forbidden" error
SupportCategory CategoryEditing
TWiki version 5.0.0
Server OS Ubuntu 8.10
Web server Apache/2.2.9
Perl version Perl v5.10.0
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2010-08-02 - 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.