Tips and Tricks HQ Forum

Support Forum for Tips and Tricks HQ Products

Register or log in - lost password?

Search the Forum

Tips and Tricks HQ Forum » WP eStore Forum » WP eStore F.A.Q/Instructions

WP eStore PHP4 Workaround

(1 post) (1 voice)
  • Started 1 year ago by amin007
  • Related Topics:
    1. WP Affiliate Platform PHP4 Workaround
    2. WP eStore and Lightbox Workaround
    3. WP Estore & PDF Stamper with OptimizePress Theme Problem
    4. Can Estore customers get added to eMember?
    5. WP eMember, EStore and Amazon S3

Tags:

  • PHP4 Workaround
  1. amin007
    Key Master

    If your server is using a very old version of PHP then visit the following link first:

    http://www.tipsandtricks-hq.com/forum/topic/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 eStore 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-cart-for-digital-products/eStore_misc_functions.php on line xxx

    Step 1. Open the "eStore_misc_function.php" file and search for the following text:

    html_entity_decode($ret_product->description, ENT_COMPAT,"UTF-8");

    Once you find it replace it with the following:

    html_entity_decode($ret_product->description, ENT_COMPAT);

    Step 2. Open the "eStore_product_management.php" file and search for the following text:

    htmlentities(stripslashes($_POST['productdesc']) , ENT_COMPAT, "UTF-8");

    Once you find it replace it with the following:

    htmlentities(stripslashes($_POST['productdesc']) , ENT_COMPAT);

    Make sure to search and replace it for all occurrences in the file.

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Tips and Tricks HQ Forum is proudly powered by bbPress

Tips and Tricks HQ  | WP Shopping Cart  | WP Affiliate Software  | WordPress Membership Plugin