- This topic has 2 replies, 2 voices, and was last updated 14 years ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › WP Affiliate F.A.Q/Instructions › WP Affiliate Platform PHP4 Workaround
Tagged: PHP4 Workaround
If your server is using a very old version of PHP then visit the following link first:
What to do when my server is using a very old version of PHP?
If for some mysterious reason your hosting provider resist upgrading PHP on your server then do the following tweaks to the WP Affiliate plugin to make it work on your server.
This tweak will also address the following error that you may get on a PHP4 server:
Warning: cannot yet handle MBCS in html_entity_decode()! in
/example/some-folder/some-folder/wp-content/plugins/wp-affiliate-platform/wp_affiliate_platform_menu.php on line xxx
1: Open the “wp_affiliate_platform_menu.php” file from the “wp-affiliate-platform” directory and search for the following:
ENT_COMPAT, "UTF-8"
Once you find it replace it with the following (there should be two occurences):
ENT_COMPAT
2: Open the “index.php” file from the “affiliates” directory (this directory is inside the “wp-affiliate-platform” directory) and search for the following:
ENT_COMPAT, "UTF-8"
Once you find it replace it with the following:
ENT_COMPAT
Save and upload these files and that should do the trick.
If you get the following warning:
Warning: uniqid() expects at least 1 parameter, 0 given in /home/datin29/public_html/wp-content/plugins/wp-affiliate-platform/wp_affiliate_platform_menu.php on line xxx
Then change “uniqid();” from the “wp_affiliate_platform_menu.php” file to the following:
uniqid('', true);
I get the same error and can’t find ENT_COMPAT, “UTF-8”
anywhere in the “wp_affiliate_platform_menu.php” file plus that php file is showing as being inactive??? Any hints?
Thanks
Scott
IGNORE- found it, and that fixed it My eyes are going buggy, sorry.