magic_quotes_gpc

by 10 replies
12
Hello, I'm trying to install a software called Open Web Analytics.

But.. When I try to install it on my Wordpress blogs I get this error:

"The magic_quotes_gpc PHP INI directive must be set to 'OFF' in order for OWA domstreams to operate correctly"

Can anyone help me?
#programming #magicquotesgpc
  • "magic_quotes_gpc" it´s a setting in the file php.ini that you need to change to "off"

    and then restart apache or the cgi process running php.
  • Or, add to a .htaccess file

    php_value magic_quote_gpc 0
    • [1] reply
    • I don't have access to the php.ini file. That's kinda the problem.

      I tried that, it gave my website a 500 error.
      • [1] reply
  • or simply contact HOST - dunno my host always makes changes I require if they don't interrupt any other services
  • The ini_set('magic_quotes_gpc', 0); doesn't go into .htaccess, it goes in a PHP file such as index.php before any other PHP call. Some software has the ability to adjust these in a config.php (maybe named something else) file.
    • [1] reply
    • So I put it before:
      Code:
      <?php
      In the index.php file, right?
      • [1] reply
  • Some shared hosting environments allow you to create your own custom php.ini file, though they rarely promote this. In your top-level directory, create a blank file called "php.ini"

    Then add the following:

    Code:
    magic_quotes_gpc = Off
    magic_quotes_runtime = Off
    magic_quotes_sybase = Off
    PM me if you are still having problems and I'd be happy to check it out.

Next Topics on Trending Feed