'Affiliates for All requires the following PHP settings...'

Some questions seem to come up over and over again. When this happens, I will post the answer here.

'Affiliates for All requires the following PHP settings...'

Postby Pete » Mon Jan 11, 2010 8:47 pm

Some people get an error like this:

Fatal error: Affiliates for All requires the following PHP settings: magic_quotes_gpc off, magic_quotes_runtime off, magic_quotes_sybase off in .../affiliates/lib/bootstrap.php on line 88

Unfortunately PHP can be configured in a variety of ways. A web application which expects PHP to be configured one way probably won't work if it is configured in a different way.

The PHP language contains a facility which allows some configuration options to be changed, but not all. The remaining configuration options can usually be changed with the .htaccess file. AfA's .htaccess file contains directives which attempt to set these configuration options correctly.

It is possible to interface PHP with Apache in a variety of ways. If PHP is loaded as an Apache module, which is the most common case, these .htaccess directives work as expected, and AfA should 'just work'. If some other system is used, such as FastCGI, the .htaccess directives will not work. In this case, it's a matter of luck. You might find that PHP is already configured in the way required by AfA, and then everything will run normally. You might find that it isn't, and then you will get the error message above.

If you get this error, you need to apply those configuration settings to your system's PHP. If you are unsure how to do this, you will need to ask your hosting provider. People on this forum probably won't be able to help, because PHP configuration works differently with different hosting providers.
Pete
Site Admin
 
Posts: 331
Joined: Sun Sep 21, 2008 3:12 pm

Return to FAQs

Who is online

Users browsing this forum: No registered users and 1 guest