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

PHP4 Issue with "UTF-8" decoding – Error I cannot fix

by

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 15 years, 1 month ago by Dave.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • March 6, 2010 at 5:45 am #884
    kd6lor
    Member

    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 #18650
    kd6lor
    Member

    May 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 #18651
    amin007
    Participant

    “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 #18652
    Dave
    Member

    I’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 #18653
    amin007
    Participant

    Please 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 #18654
    Dave
    Member

    Thank 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.

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 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