Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

WP Affiliate Platform PHP4 Workaround

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

  • This topic has 2 replies, 2 voices, and was last updated 14 years, 6 months ago by rocketkraft.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • June 11, 2010 at 1:18 am #1351
    amin007
    Participant

    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.

    June 12, 2010 at 1:49 am #21663
    amin007
    Participant

    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);

    November 1, 2010 at 5:22 pm #21664
    rocketkraft
    Spectator

    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.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ