CMS MADE SIMPLE FORGE

AceSyntax

 

[#12260] AceSyntax is not working

avatar
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
Summary:
AceSyntax is not working
Detailed Description:
Hi,
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..)


History

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

Hello,

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

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

Hello,
Yes sure I did...
      
avatar
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 :)
      
avatar
Date: 2020-02-25 03:19
Posted By: Erika H. (cesarielle)

Hi,

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
    FilePicker: 1.0.4.1
    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:

    php_memory_limit:
    max_upload_size: 64000000
    url_rewriting: mod_rewrite
    page_extension:
    query_var: page
    auto_alias_content: true
    locale:
    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
    E_DEPRECATED: 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
    disable_functions:
    open_basedir:
    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
(0705)
    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
website
# 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
required
# Updated 2018-01-01 by Hupi (hupi@hupi.ch) / 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
lines
# 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
necessary
   #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
improvements.
# Example: request "http(s)://www.example.com/test/" will look like
"http(s)://example.com/test/"

# 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]
</IfModule>
#
# 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]
</IfModule>

#
# 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
^.*/modules/(?!TinyMCE/responsive_filemanager/filemanager/).*\.php$
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"
</IfModule>
#
# 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"
   </ifModule>
</FilesMatch>
# 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/vnd.ms-fontobject
   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
</IfModule>
# END Gzip FastestCache

# BEGIN LBC FastestCache
# Values in seconds ( 1 day=86400, 1 week=604800, 1 month=2592000, 1
year=31104000 )
<FilesMatch
"\.(ico|pdf|flv|jpg|jpeg|png|gif|webp|js|css|swf|x-html|css|xml|js|woff|woff2|ttf|svg|eot)(\.gz)?$">
   <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>
   <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
   </IfModule>
</FilesMatch>
# END LBC FastestCache

#
# END - Cache settings
#

#
# START - G6 Firewall. This should stop most hacking attemps rightaway
# Original settings from the autor "https://perishablepress.com/6g/".
# I did not apply changes. Complete section can be removed too (up to you)
#
# 6G FIREWALL/BLACKLIST
# @ https://perishablepress.com/6g/

# 6G:[QUERY STRINGS]
<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>

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

# 6G:[REFERRERS]
<IfModule mod_rewrite.c>
   RewriteCond %{HTTP_REFERER} ([a-z0-9]{2000,}) [NC,OR]
   RewriteCond %{HTTP_REFERER} (semalt.com|todaperfeita) [NC]
   RewriteRule .* - [F]
</IfModule>

# 6G:[REQUEST STRINGS]
<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
(?i)(&pws=0|_vti_|\(null\)|\{\$itemURL\}|echo(.*)kae|etc/passwd|eval\(|self/environ)
RedirectMatch 403
(?i)\.(aspx?|bash|bak?|cfg|cgi|dll|exe|git|hg|ini|jsp|log|mdb|out|sql|svn|swp|tar|rar|rdf)$
RedirectMatch 403
(?i)/(^$|(wp-)?config|mobiquo|phpinfo|shell|sqlpatch|thumb|thumb_editor|thumbopen|timthumb|webshell)\.php
</IfModule>

# 6G:[USER AGENTS]
<IfModule mod_setenvif.c>
   SetEnvIfNoCase User-Agent ([a-z0-9]{2000,}) bad_bot
SetEnvIfNoCase User-Agent
(archive.org|binlar|casper|checkpriv|choppy|clshttp|cmsworld|diavol|dotbot|extract|feedfinder|flicky|g00g1e|harvest|heritrix|httrack|kmccrew|loader|miner|nikto|nutch|planetwork|postrank|purebot|pycurl|python|seekerspider|siclab|skygrid|sqlmap|sucker|turnit|vikspider|winhttp|xxxyy|youda|zmeu|zune)
bad_bot
   
   # Apache < 2.3
   <IfModule !mod_authz_core.c>
      Order Allow,Deny
      Allow from all
      Deny from env=bad_bot
   </IfModule>

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

# 6G:[BAD IPS]
<Limit GET HEAD OPTIONS POST PUT>
   Order Allow,Deny
   Allow from All
   # uncomment/edit/repeat next line to block IPs
   # Deny from 123.456.789
</Limit>

#
# END - G6 Firewall
#
_______________________________

Is it helping you?...

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

Hi,

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
      
avatar
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?
      
avatar
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:
http://viewsvn.cmsmadesimple.org/listing.php?repname=translatecenter&path=%2Fmodules%2Facesyntax%2Flang%2Fext%2F&peg=23917#ab6def3d9e0601d499934f40e2c830513

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

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

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