Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Troubleshooting › PHP4 Issue with "UTF-8" decoding – Error I cannot fix
- This topic has 5 replies, 3 voices, and was last updated 14 years, 8 months ago by Dave.
-
AuthorPosts
-
March 6, 2010 at 5:45 am #884kd6lorMember
I just bought and installed WP ESTORE today. This code is the only thing on the page;
[wp_eStore_all_products_stylish:end]
This generates the below.
Thanks in advance for your help
Warning: cannot yet handle MBCS in html_entity_decode()! in /home/melor02/public_html/wordpress/wp-content/plugins/wp-cart-for-digital-products/eStore_misc_functions.php on line 443
This is the page that generates the error:
http://www.melor.com/wordpress/pmp
Paul
March 6, 2010 at 6:06 am #18650kd6lorMemberMay have found issue. Possible script bug. I removed the text from the “Additional Product Details” page, “Product Description” and it stopped the error.
Question is why when the text field specifies that” This description is used when displaying products using the fancy display option.” does it crash the stylish tag.
Paul
March 6, 2010 at 11:24 pm #18651amin007Participant“Warning: cannot yet handle MBCS in html_entity_decode()” – This means your server is using a older version of PHP and can’t handle “UTF-8” decoding (this is needed for other languages).
Removing the “Additional Product Details” is not the best solution. Please contact your hosting provider to update your PHP version to the latest (you should do this for security reasons anyway).
If you can’t get your hosting provider to update your PHP version to the latest then let me know and I will give you a proper workaround.
March 31, 2010 at 10:20 pm #18652DaveMemberI’m experiencing this same error message. Currently, unable to upgrade the PHP. Would you provide the workaround, please?
Thanks in advance
April 1, 2010 at 7:49 am #18653amin007ParticipantPlease note that you should upgrade your PHP for security reasons too.
With that said, Here is the workaround
1) Open the “eStore_misc_functions.php” file and search for the following:
html_entity_decode($ret_product->description, ENT_COMPAT,”UTF-8″)
Once you find it replace it with the following (basically take “UTF-8” out):
html_entity_decode($ret_product->description, ENT_COMPAT)
2) Open the “eStore_product_management.php” file and search for the following:
$tmpdescription = htmlentities(stripslashes($_POST) , ENT_COMPAT, “UTF-8”);
Once you find it replace it with the following (basically take “UTF-8” out):
$tmpdescription = htmlentities(stripslashes($_POST['productdesc']) , ENT_COMPAT);
Make sure you replace all occurences and you should be good. Save and upload the modified files to the “wp-cart-for-digital-products” directory.
April 1, 2010 at 9:02 am #18654DaveMemberThank you for that. I’ve got a ticket in with my provider regarding upgrading, but this will allow me to get to store up and running until then.
-
AuthorPosts
- You must be logged in to reply to this topic.