We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6281
    • 45 Posts
    My host recently updated their servers to use PHP 5.3.8 and now my evolution installs are acting up. I am getting the dreaded insertion of backslashes before quotes as if Register_Globals is on but it is not.

    Can anyone help with this situation please as my host is only interested in getting me to install Revolution and I do not wish to at this point without a great deal of work needed for three domains!!!

    Thanks in advance

      Argue for your limitations and they are yours!
      • 34084 ☆ A M B ☆
      • 756 Posts
      The backslashes might also be from gpc_magic_quotes, however in most cases the hosting provider normally provides methods to change which PHP version the site uses. This option varies from host to host, who is your hosting provider?

      Cheers
        Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
        Visit CharlesMx.com for latest news and status updates.
        • 6281
        • 45 Posts
        Thanks Charles. Done that already both magic_quotes and register_globals are off...

          Argue for your limitations and they are yours!
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          If magic_quotes_gpc are off in the Manger folder you won't get the extra slashes - at least from the Manager, anyway. Sorry, but that's the only way the extra slashes will be applied. If you're getting the extra slashes, it's because magic_quotes_gpc is on in the folder containing the script being run.

          Check the phpinfo() display from the Reports->System Info menu item. A custom php,ini file in one directory (such as the web root) won't have any effect on any other directory (such as the /manager/ directory); they are not inherited as .htaccess directives are.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 34084 ☆ A M B ☆
            • 756 Posts
            Can you post your PHP info output? I'm running 5.3.6 and 5.3.8 on various servers and have not run into any problems.

            Cheers
              Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
              Visit CharlesMx.com for latest news and status updates.
              • 6281
              • 45 Posts
              PHP 5.3.8

              System <hidden for privacy reasons> Mon May 9 12:59:57 CEST 2011 i686
              Build Date Oct 4 2011 12:45:47
              Configure Command './configure' '--disable-fileinfo' '--disable-phar' '--enable-bcmath' '--enable-calendar' '--enable-exif' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-magic-quotes' '--enable-mbstring' '--enable-pdo=shared' '--enable-soap' '--enable-sockets' '--enable-wddx' '--enable-zend-multibyte' '--enable-zip' '--prefix=/usr' '--with-bz2' '--with-curl=/opt/curlssl/' '--with-curlwrappers' '--with-freetype-dir=/usr' '--with-gd' '--with-gettext' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libexpat-dir=/usr' '--with-libxml-dir=/opt/xml2' '--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/' '--with-mm=/opt/mm/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-mysqli=/usr/bin/mysql_config' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--with-pcre-regex=/opt/pcre' '--with-pdo-mysql=shared' '--with-pdo-sqlite=shared' '--with-png-dir=/usr' '--with-pspell' '--with-sqlite=shared' '--with-tidy=/opt/tidy/' '--with-xmlrpc' '--with-xpm-dir=/usr' '--with-xsl=/opt/xslt/' '--with-zlib' '--with-zlib-dir=/usr'
              Server API CGI/FastCGI
              Virtual Directory Support disabled
              Configuration File (php.ini) Path /usr/lib
              Loaded Configuration File /usr/local/lib/php.ini
              Scan this dir for additional .ini files (none)
              Additional .ini files parsed (none)
              PHP API 20090626
              PHP Extension 20090626
              Zend Extension 220090626
              Zend Extension Build API220090626,NTS
              PHP Extension Build API20090626,NTS
              Debug Build no
              Thread Safety disabled
              Zend Memory Manager enabled
              Zend Multibyte Support enabled
              IPv6 Support enabled
              Registered PHP Streams compress.zlib, compress.bzip2, dict, ftp, ftps, gopher, http, https, imap, imaps, pop3, pop3s, rtsp, smtp, smtps, telnet, tftp, php, file, glob, data, zip
              Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
              Registered Stream Filters zlib.*, bzip2.*, convert.iconv.*, mcrypt.*, mdecrypt.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk
                Argue for your limitations and they are yours!
                • 6281
                • 45 Posts
                allow_call_time_pass_reference On On
                allow_url_fopen On On
                allow_url_include Off Off
                always_populate_raw_post_data Off Off
                arg_separator.input & &
                arg_separator.output & &
                asp_tags Off Off
                auto_append_file no value no value
                auto_globals_jit On On
                auto_prepend_file no value no value
                browscap no value no value
                default_charset no value no value
                default_mimetype text/html text/html
                define_syslog_variables Off Off
                detect_unicode On On
                disable_classes no value no value
                disable_functions apache_child_terminate, apache_get_modules, apache_get_version, apache_getenv, apache_note, apache_setenv, disk_free_space, diskfreespace, dl, escapeshellarg, escapeshellcmd, exec, highlight_file, ini_alter, ini_restore, leak, openlog, passthru, popen, proc_close, proc_get_status, proc_nice, proc_open, proc_terminate, set_time_limit, shell_exec, show_source, symlink, system, tmpfile, eval apache_child_terminate, apache_get_modules, apache_get_version, apache_getenv, apache_note, apache_setenv, disk_free_space, diskfreespace, dl, escapeshellarg, escapeshellcmd, exec, highlight_file, ini_alter, ini_restore, leak, openlog, passthru, popen, proc_close, proc_get_status, proc_nice, proc_open, proc_terminate, set_time_limit, shell_exec, show_source, symlink, system, tmpfile, eval
                display_errors On On
                display_startup_errors Off Off
                doc_root no value no value
                docref_ext no value no value
                docref_root no value no value
                enable_dl On On
                error_append_string no value no value
                error_log error_log error_log
                error_prepend_string no value no value
                error_reporting 6135 6135
                exit_on_timeout Off Off
                expose_php On On
                extension_dir /usr/local/lib/php/extensions/no-debug-non-zts-20090626 /usr/local/lib/php/extensions/no-debug-non-zts-20090626
                file_uploads On On
                highlight.bg #FFFFFF #FFFFFF
                highlight.comment #FF8000 #FF8000
                highlight.default #0000BB #0000BB
                highlight.html #000000 #000000
                highlight.keyword #007700 #007700
                highlight.string #DD0000 #DD0000
                html_errors On On
                ignore_repeated_errors Off Off
                ignore_repeated_source Off Off
                ignore_user_abort Off Off
                implicit_flush Off Off
                include_path .:/usr/lib/php:/usr/local/lib/php .:/usr/lib/php:/usr/local/lib/php
                log_errors On On
                log_errors_max_len 1024 1024
                magic_quotes_gpc On On
                magic_quotes_runtime Off Off
                magic_quotes_sybase Off Off
                mail.add_x_header Off Off
                mail.force_extra_parameters no value no value
                mail.log no value no value
                max_execution_time 30 30
                max_file_uploads 20 20
                max_input_nesting_level 64 64
                max_input_time 60 60
                memory_limit 128M 128M
                open_basedir no value no value
                output_buffering no value no value
                output_handler no value no value
                post_max_size 64M 64M
                precision 12 12
                realpath_cache_size 16K 16K
                realpath_cache_ttl 120 120
                register_argc_argv On On
                register_globals Off Off
                register_long_arrays On On
                report_memleaks On On
                report_zend_debug On On
                request_order no value no value
                safe_mode Off Off
                safe_mode_exec_dir /usr/local/php/bin /usr/local/php/bin
                safe_mode_gid Off Off
                safe_mode_include_dir no value no value
                sendmail_from no value no value
                sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
                serialize_precision 100 100
                short_open_tag On On
                SMTP localhost localhost
                smtp_port 25 25
                sql.safe_mode Off Off
                track_errors Off Off
                unserialize_callback_func no value no value
                upload_max_filesize 32M 32M
                upload_tmp_dir no value no value
                user_dir no value no value
                user_ini.cache_ttl 300 300
                user_ini.filename .user.ini .user.ini
                variables_order EGPCS EGPCS
                xmlrpc_error_number 0 0
                xmlrpc_errors Off Off
                y2k_compliance On On
                zend.enable_gc On
                  Argue for your limitations and they are yours!
                  • 6281
                  • 45 Posts
                  I've just noticed that magic_quotes_gpc is still on...
                    Argue for your limitations and they are yours!
                    • 34084 ☆ A M B ☆
                    • 756 Posts
                    try turning off from the root .htaccess file

                    php_flag magic_quotes_gpc Off
                    
                      Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
                      Visit CharlesMx.com for latest news and status updates.
                      • 6281
                      • 45 Posts
                      Hi Charles. I cannot do that, my host does not allow for that.

                      They just turned it off though by request but now this is happening:

                      mktime() [function.mktime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/London' for 'BST/1.0/DST' instead

                      Any ideas?

                      Thanks
                        Argue for your limitations and they are yours!