Sometimes during installation or update of Post Affiliate Pro (PAP) or Post Affiliate Network (PAN) you may come across some issues that are mainly caused by some web-server configuration. Let's list these issues and ways to reveal/solve the issue:
- if the request to the server shows no error only says 500 intenal server error (the error is visible e.g. through Firebug or Google Chrome developer tools) in that case create in the 'scripts' directory of PAP/PAN a file named custom.php with the following content:
<?php
error_reporting(E_ALL & ~E_STRICT);
ini_set('display_errors', true);
ini_set('display_startup_errors', true);
?>
and then try to go on with the installation/update of PAP/PAN. This way you should see the exact issue that was previously masked as '500 internal server error'.
- if you see an error 'Allowed memory size exhausted' (the error is visible e.g. through Firebug or Google Chrome developer tools) in that case create in the 'scripts' directory of PAP/PAN a file named custom.php with the following content:
<?php
ini_set("memory_limit", '256M');
?>
that will set the php memory_limit of web-server to 256MB. This code (increasing the memory limit) can be used along with the previously mentioned code (error reporting = allowing to view the real issue) if it was essential do display the real error. If the increase of memory limit helped to solve the issue, then leave this code (increase of memory limit) in the custom.php file, but make sure the other code (error reporting) is removed or commented (place a double forward-slash // before the lines allowing error reporting).
If the issue still persists, let us know.
- if during login to the merchant or affiliate panel you see only the loading animation, then the issue, might be the following:
a) you used PAP files during update of your PAN installation (PAN differs form PAP in a way, that in the include/Pap/Features/ directory there is the feature called 'AffiliateNetwork')
b) the server does not support gzip encoding and in this case in the 'scripts' directory of PAP/PAN create a file named custom.php with the following content:
<?php define('GZIP_ENCODING_DISABLED', ''); ?>
If this step did not help, let us know.
- if during installation the check requirements step fails (or does not even show up), then the issue might be concerned with the checking of mod_security or database check. To turn the checking of mod_security or 'database check' off, create a file named custom.php with the following content:
<?php
define('CHECK_MODSEC_DISABLED', '');
define('CHECK_MYSQL_DISABLED', '');
?>
If this step helped, leave the custom.php file with this content in the 'scripts' directory for ever.
The different instances of codes above can be combined, but the ones that are not needed anymore must be removed after the issue has been resolved.