- This topic has 0 replies, 1 voice, and was last updated 14 years, 5 months ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 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 eStore Forum › WP eStore 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 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.