[SOLVED] Editing adds escape slashes (backslashes)

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
rotezecke
Power Poster
Power Poster
Posts: 411
Joined: Fri Apr 18, 2008 9:34 pm

[SOLVED] Editing adds escape slashes (backslashes)

Post by rotezecke »

EDIT: ultimately another CMS was interfering and turned magic quotes ON. i don't quite get it but things are working now.

-----------

i'm on 1.11.2.1 and all seemed good after upgrade, both live and local. i installed two extra modules locally for play (FEU,custom content) but didn't do much, and now both are uninstalled. reason i mention the above, that's the only difference between the installs.

The local install started adding escapes in front of single and double quotes, when editing pages, global content and UDTs. (probably also templates and stylesheets).
when saving again, the escapes are escaped and now there's a lot of \\\\\' in my page. No whysiwyg editor used. PHP magic quote turned off.

the slashes break rendering so I cannot even use debug. Firefox says:
Content Encoding Error
The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.
Konquerer says
oh my god you broke this page and actually complains about unknown \
i added
php_flag magic_quotes_gpc off
to root .htaccess file (no luck)
and also created .htaccess file in /admin with that line (no luck)
System info shows it as off anyway.
phpinfo()
magic_quotes_gpc Off Off
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
did a checksum test:

Code: Select all

124 Files Not found
Files Not found:
/tmp/cache/SITEDOWN
/tmp/cache/index.html
/tmp/templates_c/index.html
/lib/lang/cms_selflink/ext/zh_TW.php
/lib/lang/tasks/ext/zh_TW.php
/install/lang.php
...rest is install
not sure what to look for here

local database was synchronised with remote mysqldump before upgrade to 1.11.2.1 so cmsms log does not reflect local logs. nothing in apache error logs. All Wysiwyg editors are disabled. cache cleared. any idea what else I could try?
  • System information:
    CMS Version 1.11.2.1

    Installed Modules
    CMSMailer 5.2.1
    MenuManager 1.8.4
    News 2.12.9
    CGSmartImage 1.9.5
    Search 1.7.7
    CGSimpleSmarty 1.5.2
    CGExtensions 1.31.1
    CGBlog 1.9.8
    CGFeedback 1.5.10
    Captcha 0.4.5
    FormBuilder 0.7.3
    IE6Warning 1.03
    Showtime 3.2
    CMSPrinting 1.0.3

    Config
    php_memory_limit
    process_whole_template
    output_compression
    max_upload_size 2000000
    url_rewriting mod_rewrite
    page_extension .html
    query_var page
    image_manipulation_prog GD
    auto_alias_content true
    locale
    default_encoding utf-8
    admin_encoding utf-8
    set_names true
    debug false
    root_url http://test.wallaby.nimfm.org
    ssl_url https://wallaby.nimfm.org
    root_path Success /var/www/cmsms (0775)
    previews_path Success /var/www/cmsms/tmp/cache (0770)
    uploads_path Success /var/www/cmsms/uploads (0770)
    uploads_url http://test.wallaby.nimfm.org/uploads
    image_uploads_path Success /var/www/cmsms/uploads/images (0770)
    image_uploads_url http://test.wallaby.nimfm.org/uploads/images
    ssl_uploads_url /uploads
    use_smarty_php_tags false

    PHP

    Current PHP Version (phpversion) Caution 5.2.6-1+lenny16
    md5 function (md5_function) Success On (True)
    GD version (gd_version) Success 2
    tempnam function (tempnam_function) Success On (True)
    Magic quotes in runtime (magic_quotes_runtime) Success Off (False)
    Is E_STRICT disabled in error_reporting (E_STRICT) Success
    PHP Effective Memory Limit (memory_limit) Success 128M
    Maximum Execution Time (max_execution_time) Success 60
    PHP output_buffering (output_buffering) Success On
    PHP Safe Mode (safe_mode) Success Off (False)
    File uploads (file_uploads) Success On (True)
    Maximum Post Size (post_max_size) Caution 8M ?
    Maximum Upload Size (upload_max_filesize) Caution 2M ?
    Session Save Path (session_save_path) Success /tmp (1777)
    Sessions are allowed to use Cookies (session_use_cookies) Success On (True)
    Basic XML (expat) support (xml_function) Success On (True)
    Checking for the XMLReader class (xmlreader_class) Success On (True)
    Checking if the httpd process can create a file inside of a directory it created (create_dir_and_file) Success
    PHP register_globals (register_globals) Success Off (False)
    disable_functions in PHP (disable_functions) Success
    PHP Open Basedir (open_basedir) Success
    Test for remote URL (test_remote_url) Success
    fsockopen: Connection ok! Success
    fopen: Connection ok! Success
    Test ini_set (check_ini_set) Success On (True)
    Test for the curl library (curl) Success On
    Test curl version (curlversion) Caution Test Curl Version version 7.18.2, minimum recommended version is 7.19.7

    Server
    Server API (server_api) apache2handler
    Server Database (server_db_type) mysql (mysql)
    Server Database Version (server_db_version) Success 5.0.51a
    Check database access levels (server_db_grants) Success found a "grant all" statement that appears to be suitable
    Server Software (server_software) apache
    Server Operating System (server_os) linux 2.6.26-1-686 on i686

    Permissions
    tmp Success /var/www/cmsms/tmp (0770)
    templates_c Success /var/www/cmsms/tmp/templates_c (0770)
    modules Success /var/www/cmsms/modules (0770)
    File Creation Mask (umask) Success /var/www/cmsms/tmp/cache (0770)
    config_file Failure 0660
    config.php writable. It is more safe if you change permission to read-only
Post Reply

Return to “CMSMS Core”