Strict Standards: Declaration of BB_Walker_Blank::start_lvl() should be compatible with BB_Walker::start_lvl($output) in /webroot/s/2/s2admin/synapp2.org/www/forum/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_lvl() should be compatible with BB_Walker::end_lvl($output) in /webroot/s/2/s2admin/synapp2.org/www/forum/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::start_el() should be compatible with BB_Walker::start_el($output) in /webroot/s/2/s2admin/synapp2.org/www/forum/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_el() should be compatible with BB_Walker::end_el($output) in /webroot/s/2/s2admin/synapp2.org/www/forum/bb-includes/classes.php on line 1127

Strict Standards: Redefining already defined constructor for class bbdb in /webroot/s/2/s2admin/synapp2.org/www/forum/bb-includes/db-mysql.php on line 12
magic_quotes_gpc causes Options GUI error - Unparsable « Support Forums

Support Forums
Support Forums
» Issues

magic_quotes_gpc causes Options GUI error - Unparsable

(1 post)
  • Started 9 years ago by richard

  1. Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /webroot/s/2/s2admin/synapp2.org/www/forum/bb-includes/kses.php on line 440

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /webroot/s/2/s2admin/synapp2.org/www/forum/bb-includes/kses.php on line 510

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /webroot/s/2/s2admin/synapp2.org/www/forum/bb-includes/kses.php on line 512
    richard


    Administrator

    The PHP directive magic_quotes_gpc, if enabled, triggers parse errors for all [PHP code] Column Expressions entered from the Options GUI because needed quotes, that are part of the PHP expression, get unnecessarily escaped with \ (backslashes).

    The magic_quotes_gpc directive is deprecated (obsolete) and should be off. How it get’s turned off on any given server depends on the details of the installation. Shared servers are usually the most challenging because the PHP process (software) is shared by all users of the server.

    There are usually mechanisms to allow a user to adjust settings for their own needs. One way is a local php.ini file. Another way is a/the .htaccess file. Some settings can be changed with calls from PHP, but the value of magic_quotes_gpc needs to be established farther upstream. There are some messy examples of doing this at runtime, but there are enough technical limitations to recommend avoiding it. If you can’t make changes yourself, your web hosting company should be able to turn the setting off for you. If they can’t or won’t, find another hosting company.

    Here’s some guidance: http://www.php.net/manual/en/security.magicquotes.disabling.php

    With a local (XAMPP or other) development stack, even if you aren’t able to get the magic_quotes_gpc setting changed on your shared server, you shouldn’t need to be changing SynApp2 customization elements directly on your shared server – with or without the GUI. The preferred flow is to perfect the application locally and then deploy it to the shared server by copying the (small set of) application files via FTP. FileZilla works great.

    Posted 9 years ago #

RSS feed for this topic

Reply

You must log in to post.