10 replies
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?
#magicquotesgpc
  • Profile picture of the author n3r0x
    "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.
    {{ DiscussionBoard.errors[5793661].message }}
  • Profile picture of the author Earnie Boyd
    Or, add to a .htaccess file

    php_value magic_quote_gpc 0
    Signature
    {{ DiscussionBoard.errors[5794478].message }}
    • Originally Posted by n3r0x View Post

      "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.
      I don't have access to the php.ini file. That's kinda the problem.

      Originally Posted by Earnie Boyd View Post

      Or, add to a .htaccess file

      php_value magic_quote_gpc 0
      I tried that, it gave my website a 500 error.
      {{ DiscussionBoard.errors[5797558].message }}
      • Profile picture of the author Earnie Boyd
        Originally Posted by Frederik Jorgensen View Post

        I don't have access to the php.ini file. That's kinda the problem.

        Originally Posted by Earnie Boyd
        Or, add to a .htaccess file

        php_value magic_quote_gpc 0
        I tried that, it gave my website a 500 error.
        I should have said

        php_flag magic_quote_gpc 0

        If that doesn't work you can add the following php code snippet in your config files or index.php

        ini_set('magic_quote_gpc', 0);
        Signature
        {{ DiscussionBoard.errors[5810111].message }}
        • Originally Posted by Earnie Boyd View Post

          I should have said

          php_flag magic_quote_gpc 0

          If that doesn't work you can add the following php code snippet in your config files or index.php

          ini_set('magic_quote_gpc', 0);
          Neither of those work. When I change the .htaccess file I get a 500 error.

          or simply contact HOST - dunno my host always makes changes I require if they don't interrupt any other services
          Well I have done that, but I thought maybe some of the smart people over at WF knew a trick.
          {{ DiscussionBoard.errors[5810672].message }}
  • Profile picture of the author solidsoul
    or simply contact HOST - dunno my host always makes changes I require if they don't interrupt any other services
    {{ DiscussionBoard.errors[5810128].message }}
  • Profile picture of the author Earnie Boyd
    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.
    Signature
    {{ DiscussionBoard.errors[5811004].message }}
    • Originally Posted by Earnie Boyd View Post

      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.
      So I put it before:
      Code:
      <?php
      In the index.php file, right?
      {{ DiscussionBoard.errors[5811185].message }}
      • Profile picture of the author Earnie Boyd
        Originally Posted by Frederik Jorgensen View Post

        So I put it before:
        Code:
        <?php
        In the index.php file, right?
        No just after.
        Code:
        <?php
        states to apache that it is a php script and ini_set is a function of PHP PHP: ini_set - Manual.
        Signature
        {{ DiscussionBoard.errors[5812067].message }}
  • Profile picture of the author pbarnhart
    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.
    {{ DiscussionBoard.errors[5814527].message }}

Trending Topics