[#12260] AceSyntax is not working

Created By: Erika H. (cesarielle)
Date Submitted: Fri Feb 21 07:26:08 -0500 2020

Assigned To:
Version: 1.0.1
CMSMS Version: 2.2.13
Severity: Major
Resolution: Fixed
State: Open
AceSyntax is not working
Detailed Description:
Thanks for this project, but I'm sorry I can't make it works at all.. Everything
is going well during installation but the syntax highlighter is not working at
all. Nothing is happening when I'm editing stylesheets or templates. I selected
the highlighter in my settings but nothing.. could you help me please?
(I tried on safari and chrome..)


Date: 2020-02-21 13:06
Posted By: Rolf (rolf1)


After installation you have selected the module as syntax highlighter in My
Preferences >> My Account, User Preferences tab?

Grtz. Rolf
Date: 2020-02-21 16:55
Posted By: Erika H. (cesarielle)

Yes sure I did...
Date: 2020-02-22 10:31
Posted By: Fernando Morgado (JoMorg)

In that case we need much more details to be able to reproduce the issue at all.
- is it a local server or a production online server?
- does it have ModSecurity enabled (remember that it is NOT supported by CMSMS
and modules)?
- have you cleared both CMSMS and browsers' cache?
- add more info that you may think usefull...

I have tested in Firefox and Chrome and works flawlessly on both. I'm sorry but
we can't fix an issue we can't reproduce :)
Date: 2020-02-25 03:19
Posted By: Erika H. (cesarielle)


It's an online server.
I cleared caches..

Below, my system information about my installation:


Cms Version: 2.2.13

Installed Modules:

    AceSyntax: 1.0.1
    AdminSearch: 1.0.4
    CGContentUtils: 2.5.4
    CGExtensions: 1.65.1
    CGSimpleSmarty: 2.2.1
    CGSnapshot: 1.4
    CMSContentManager: 1.1.8
    CSSPreprocessor: 3.0-beta3
    CmsJobManager: 0.1.3
    DesignManager: 1.1.7
    EUCookie: 0.3.1
    FileManager: 1.6.10
    Gallery: 2.4.2
    JQueryTools: 1.4.2
    MenuManager: 1.50.3
    MleCMS: 2.0-beta2
    ModuleManager: 2.1.7
    Navigator: 1.0.9
    News: 2.51.8
    SEOBoost: 0.9.2beta
    Search: 1.51.7
    TinyMCE: 3.3.1

Config Information:

    max_upload_size: 64000000
    url_rewriting: mod_rewrite
    query_var: page
    auto_alias_content: true
    set_names: true
    timezone: Europe/Paris
    permissive_smarty: false

Php Information:

    phpversion: 7.3.14
    md5_function: On  (Vrai)
    json_function: On  (Vrai)
    gd_version: 2
    tempnam_function: On  (Vrai)
    magic_quotes_runtime: Off  (Faux)
    E_ALL: 22517
    E_STRICT: 0
    test_file_timedifference: Aucune différence de date du système trouvée
    test_db_timedifference: Aucune différence de date du système trouvée
    create_dir_and_file: 1
    memory_limit: -1
    max_execution_time: 50000
    register_globals: Off  (Faux)
    output_buffering: 0
    test_remote_url: Valable
    file_uploads: On  (Vrai)
    post_max_size: 64M
    upload_max_filesize: 64M
    session_save_path: /tmp/.priv (1733)
    session_use_cookies: On  (Vrai)
    xml_function: On  (Vrai)
    xmlreader_class: On  (Vrai)
    check_ini_set: On  (Vrai)
    curl: On 

Performance Information:

    allow_browser_cache: On  (Vrai)
    browser_cache_expiry: 60
    php_opcache: Off  (Faux)
    smarty_cache: Off  (Faux)
    smarty_compilecheck: Off  (Faux)
    auto_clear_cache_age: On  (Vrai)

Server Information:

    Server Software: Apache
    Server Api: cgi-fcgi
    Server Os: Linux 4.4.0-ui20007.037-uiabi1-infong-amd64 On  x86_64
    Server Db Type: MySQL (mysqli)
    Server Db Version: 5.7.28
Server Db Grants: Trouvé un privilège "GRANT ALL" qui semble être adapté

Permission Information:

    tmp: /homepages/31/d453517084/htdocs/hotelalizes/tmp (0705)
    tmp_cache: /homepages/31/d453517084/htdocs/hotelalizes/tmp/cache (0705)
templates_c: /homepages/31/d453517084/htdocs/hotelalizes/tmp/templates_c
    modules: /homepages/31/d453517084/htdocs/hotelalizes/modules (0705)
    uploads: /homepages/31/d453517084/htdocs/hotelalizes/uploads (0705)
Masque de création de fichier (umask) :
/homepages/31/d453517084/htdocs/hotelalizes/tmp/cache (0705)
    config_file: 0444


And below htaccess settings:

# This file is specific to Apache configurations
# It attempts to optimize traffic and configuration for your CMS Made Simple
# Many options are disabled by default, as some providers do not allow you to
override some of these settings in the .htaccess file
# Please read carefully each section comment and enable/disable parts as
# Updated 2018-01-01 by Hupi ( / v3-with-cache-and-G6-firewall

# START - Attempt to override some PHP settings
# These settings may be helpful on some hosts if your default configuration does
not meet CMSMS's minimum requirements,
# and your host has given your account appropriate permissions.
   #php_value upload_max_filesize "10M"
   #php_value session_save_path "tmp/cache"
   #php_value session.cookie_httponly true
   #php_flag magic_quotes_gpc Off
   #php_flag register_globals Off
   #php_flag session.use_trans_sid Off
# To prevent E_STRICT problems with PHP 5.3+ you can uncomment the following
# Note: These settings should only be enabled for production sites!
   #php_flag display_startup_errors 0
   #php_flag display_errors 0
   #php_flag html_errors 0
   #php_value docref_root 0
   #php_value docref_ext 0
# END - Attempt to override some PHP settings

# START - Misc settings
# Disallow directory indexes. This can be an important security enhancement
   #Options -Indexes

# Don't allow the browser to know the type of signature
ServerSignature Off

# Allow the Apache server to follow symbolic links.  This is usually not
   #Options +FollowSymLinks

# Define / add missing mime-types (used on some hosts due to mod-sec settings).
If admin panel does not works properly, try this
   #AddType application/javascript .js
# END - Misc settings

# START - Enable pretty URLS and related stuff (only applicable if url_rewriting
is set to 'mod_rewrite' in the config.php)
# This is for good SEO results basically mandatory
<IfModule mod_rewrite.c>
RewriteEngine on

# If your CMSMS installation is in a subdirectory of your domain, you may need
to specify the relative path (from the root of the domain) here
# i.e: RewriteBase /cmsms
RewriteBase /

# IMPORTANT: Activate ONLY 1 of the next two sections (HTTP or HTTPS). DO NOT
activate both
# Both section removes www from any URLs that have them. This is mainly for SEO
# Example: request "http(s)://" will look like

# START - HTTP hosting (Activate this section for HTTP hosting only)
   #RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
   #RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
# END - HTTP hosting

# START - HTTPS hosting (Activate this section for HTTPS hosting only)
   RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
   RewriteRule ^(.*)$ https://%1/$1 [R=301,L]

   # Force all URLs to https instead of http (HTTPS hosting only)
   RewriteCond %{HTTPS} off
   RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# END - HTTPS hosting

# Rewrites urls in the form of /parent/child/grandchild but only rewrites if the
requested URL is not a file or directory.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
# END - Enable pretty URLS

# START - Security settings

# Blocking Libwww-perl access to improve website security
<IfModule mod_rewrite.c>
   RewriteCond %{HTTP_USER_AGENT} libwww-perl.* 
   RewriteRule .* ? [F,L]

# The following are highly recommended security settings for files in your CMSMS
install that should not be browsed directly.
RedirectMatch 403 ^/.*\.htaccess$
RedirectMatch 403 ^/.*\.ini$
RedirectMatch 403 ^/.*config\.php$
RedirectMatch 403 ^.*/assets/.*\.php$
RedirectMatch 403 ^.*/assets/.*\.tpl$
RedirectMatch 403 ^.*/doc/.*$
RedirectMatch 403 ^.*/lib/.*\.php$
RedirectMatch 403 ^.*/log/.*$
RedirectMatch 403
RedirectMatch 403 ^.*/tmp/.*\.php$
RedirectMatch 403 ^.*/uploads/.*\.php$

# Disallow cross-certification
<IfModule mod_headers.c>
   Header set X-Frame-Options "SAMEORIGIN"
   Header set X-XSS-Protection "1; mode=block"
   Header set X-Content-Type-Options "nosniff"
# END - Security settings

# START - Cache settings (source: "WP FastestCache" adapted for CMS Made Simple
by Hupi)

# BEGIN FastestCache
<FilesMatch "index\.(html|htm)$">
   AddDefaultCharset UTF-8
   <ifModule mod_headers.c>
      FileETag None
      Header unset ETag
      Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
      Header set Pragma "no-cache"
      Header set Expires "Mon, 29 Oct 1923 20:30:00 GMT"
# END FastestCache

# BEGIN Gzip FastestCache
<IfModule mod_deflate.c>
   AddType x-font/woff .woff
   AddType x-font/ttf .ttf
   AddOutputFilterByType DEFLATE image/svg+xml
   AddOutputFilterByType DEFLATE text/plain
   AddOutputFilterByType DEFLATE text/html
   AddOutputFilterByType DEFLATE text/xml
   AddOutputFilterByType DEFLATE text/css
   AddOutputFilterByType DEFLATE text/ecmascript
   AddOutputFilterByType DEFLATE application/x-pointplus
   AddOutputFilterByType DEFLATE application/ecmascript
   AddOutputFilterByType DEFLATE text/javascript
   AddOutputFilterByType DEFLATE application/xml
   AddOutputFilterByType DEFLATE application/xhtml+xml
   AddOutputFilterByType DEFLATE application/rss+xml
   AddOutputFilterByType DEFLATE application/javascript
   AddOutputFilterByType DEFLATE application/x-javascript
   AddOutputFilterByType DEFLATE application/x-font-ttf
   AddOutputFilterByType DEFLATE application/
   AddOutputFilterByType DEFLATE font/opentype font/ttf font/eot font/otf
   # Exceptions for old browsers
   BrowserMatch ^Mozilla/4 gzip-only-text/html
   BrowserMatch ^Mozilla/4\.0[678] no-gzip
   BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# END Gzip FastestCache

# BEGIN LBC FastestCache
# Values in seconds ( 1 day=86400, 1 week=604800, 1 month=2592000, 1
year=31104000 )
   <IfModule mod_expires.c>
      AddType application/font-woff2 .woff2
      ExpiresActive On
      ExpiresDefault A2592000
      ExpiresByType image/webp A2592000
      ExpiresByType image/gif A2592000
      ExpiresByType image/png A2592000
      ExpiresByType image/jpg A2592000
      ExpiresByType image/jpeg A2592000
      ExpiresByType image/ico A2592000
      ExpiresByType image/svg+xml A2592000
      ExpiresByType text/css A2592000
      ExpiresByType text/javascript A2592000
      ExpiresByType application/javascript A2592000
      ExpiresByType application/x-javascript A2592000
      ExpiresByType application/font-woff2 A2592000
   <IfModule mod_headers.c>
      Header set Expires "max-age=2592000, public"
      Header append Vary Accept-Encoding
      Header set Connection keep-alive
      Header unset ETag
      FileETag None
# END LBC FastestCache

# END - Cache settings

# START - G6 Firewall. This should stop most hacking attemps rightaway
# Original settings from the autor "".
# I did not apply changes. Complete section can be removed too (up to you)
# @

<IfModule mod_rewrite.c>
   RewriteEngine On
   RewriteCond %{QUERY_STRING} (eval\() [NC,OR]
   RewriteCond %{QUERY_STRING} (127\.0\.0\.1) [NC,OR]
   RewriteCond %{QUERY_STRING} ([a-z0-9]{2000,}) [NC,OR]
   RewriteCond %{QUERY_STRING} (javascript:)(.*)(;) [NC,OR]
   RewriteCond %{QUERY_STRING} (base64_encode)(.*)(\() [NC,OR]
   RewriteCond %{QUERY_STRING} (GLOBALS|REQUEST)(=|\[|%) [NC,OR]
   RewriteCond %{QUERY_STRING} (<|%3C)(.*)script(.*)(>|%3) [NC,OR]
   RewriteCond %{QUERY_STRING} (\\|\.\.\.|\.\./|~|`|<|>|\|) [NC,OR]
   RewriteCond %{QUERY_STRING} (boot\.ini|etc/passwd|self/environ) [NC,OR]
RewriteCond %{QUERY_STRING} (thumbs?(_editor|open)?|tim(thumb)?)\.php [NC,OR]
   RewriteCond %{QUERY_STRING} (\'|\")(.*)(drop|insert|md5|select|union) [NC]
   RewriteRule .* - [F]

<IfModule mod_rewrite.c>
   RewriteCond %{REQUEST_METHOD} ^(connect|debug|move|put|trace|track) [NC]
   RewriteRule .* - [F]

<IfModule mod_rewrite.c>
   RewriteCond %{HTTP_REFERER} ([a-z0-9]{2000,}) [NC,OR]
   RewriteCond %{HTTP_REFERER} (|todaperfeita) [NC]
   RewriteRule .* - [F]

<IfModule mod_alias.c>
   RedirectMatch 403 (?i)([a-z0-9]{2000,})
   RedirectMatch 403 (?i)(https?|ftp|php):/
   RedirectMatch 403 (?i)(base64_encode)(.*)(\()
   RedirectMatch 403 (?i)(=\\\'|=\\%27|/\\\'/?)\.
   RedirectMatch 403 (?i)/(\$(\&)?|\*|\"|\.|,|&|&amp;?)/?$
   RedirectMatch 403 (?i)(\{0\}|\(/\(|\.\.\.|\+\+\+|\\\"\\\")
   RedirectMatch 403 (?i)(~|`|<|>|:|;|,|%|\\|\s|\{|\}|\[|\]|\|)
   RedirectMatch 403 (?i)/(=|\$&|_mm|cgi-|etc/passwd|muieblack)
RedirectMatch 403
RedirectMatch 403
RedirectMatch 403

<IfModule mod_setenvif.c>
   SetEnvIfNoCase User-Agent ([a-z0-9]{2000,}) bad_bot
SetEnvIfNoCase User-Agent
   # Apache < 2.3
   <IfModule !mod_authz_core.c>
      Order Allow,Deny
      Allow from all
      Deny from env=bad_bot

   # Apache >= 2.3
   <IfModule mod_authz_core.c>
         Require all Granted
         Require not env bad_bot

# 6G:[BAD IPS]
   Order Allow,Deny
   Allow from All
   # uncomment/edit/repeat next line to block IPs
   # Deny from 123.456.789

# END - G6 Firewall

Is it helping you?...

Thanks for your help.
Date: 2020-03-02 04:29
Posted By: Mathieu Muths (airelibre) (airelibre)


the editor didn't work for me too, and the problem was a single quote in a
translation file (French).

I changed the translation, removed the quote and now it works. Maybe this could
help you
Date: 2020-03-08 05:41
Posted By: Erika H. (cesarielle)

Hi Mathieu!
Thank you for your help is it possible to make this change in next release of
the plugin?
Date: 2020-03-18 13:06
Posted By: cyrcle (cyrcle)

Hi, the editor didn't work for me too.
I updated the French translation file (Révision 23975). 
You can download it here:

Can you confirm that the bug is fixed now?
Date: 2020-08-31 11:53
Posted By: OANNA (oanna)

Please, is it possible to make a release with this fix ?

Updated: 2021-02-19 08:30
resolution_id: => 7