• Resolved guess4me

    (@guess4me)


    Hello! I’m really grateful for your plugin. It worked well before last Woocommerce update. Now I’m getting such errors:

    [18-Aug-2019 14:07:48 UTC] PHP Warning: simplexml_load_file(): ?й платформе, из натуральной кожи с цветочны in /home/nginx/domains/zlata-studio.com.ua/public/wp-content/plugins/woo-product-feed-pro/classes/class-get-products.php on line 949
    [18-Aug-2019 14:07:48 UTC] PHP Warning: simplexml_load_file(): ^ in /home/nginx/domains/zlata-studio.com.ua/public/wp-content/plugins/woo-product-feed-pro/classes/class-get-products.php on line 949
    [18-Aug-2019 14:07:50 UTC] PHP Warning: simplexml_load_file(): /home/nginx/domains/zlata-studio.com.ua/public/wp-content/uploads/woo-product-feed-pro/xml/d5530e2e565dcba71ab33a917777aae5_tmp.xml:2: parser error : Input is not proper UTF-8, indicate encoding !
    Bytes: 0xD0 0x3C 0x2F 0x67 in /home/nginx/domains/zlata-studio.com.ua/public/wp-content/plugins/woo-product-feed-pro/classes/class-get-products.php on line 949

    It seems there are problems with encoding. I’ve tried to wrap problem $product_data[‘title’] field getter with mb_convert_encoding($product->get_title(), “UTF-8”) but it doesn’t help. Please help with this issue.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter guess4me

    (@guess4me)

    It seems there is a problem with class-get-products.php:2847

    if($length_title > 149){
    $product_data[‘title’] = substr($product_data[‘title’],0,150);
    }

    I changed substr to mb_substr and got it to generate without errors.

    Hi guess4me,

    Thanks for using our plugin and letting us know about this bug, much appreciated! It indeed only seems to happen for product names that are over 150 characters.

    We have just pushed out a new release of our plugin, version 6.2.6, that should solve the issue at hand.

    Could you give it a try?

    All the best,
    Eva

    Hi,

    Assuming the issue at hand has been resolved or our support is no longer needed I am going to close this issue for housekeeping reasons now.

    Do not hesitate to reach out again whenever you need our help again.

    All the best,
    Eva

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Error after Woocommerce update’ is closed to new replies.