• Resolved michaeltrotz

    (@michaeltrotz)


    I have the pro version of the plugin.

    The pricelist plugin is throwing the following warnings (the 2nd and 3rd of these are occurring when I try to generate the PDF price list):

    Warning: number_format() expects parameter 1 to be float, string given in /home/customer/www/dunbarmedical.com/public_html/wp-content/plugins/pricelist-for-woocommerce-pro/pricelist-for-woocommerce-pro-view.php on line 787

    Warning: number_format() expects parameter 1 to be float, string given in /home/customer/www/dunbarmedical.com/public_html/wp-content/plugins/pricelist-for-woocommerce-pro/pricelist-for-woocommerce-pro-view.php on line 787
    TCPDF ERROR: Some data has already been output, can’t send PDF file

    Warning: number_format() expects parameter 1 to be float, string given in /home/customer/www/dunbarmedical.com/public_html/wp-content/plugins/pricelist-for-woocommerce-pro/pricelist-for-woocommerce-pro-view.php on line 163

    Please advise how to address this problem.

    Thanks,

    Michael

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Contributor Jordi Bieger

    (@jordibieger)

    Hi Michael,

    I’m Jordi and I’m a software developer at Inner Join (this plugin’s developer). First of all, I’d like to apologize for our slow answer. We would very much like to help you.

    The error seems to occur because our plugin expects a number to display the price range of grouped products, but it’s getting a string in your data set. On your page I see the price of some products is indeed not a number but “CALL FOR PRICE”. I’m fairly sure this is what’s causing the warnings. Subsequently, when warnings are displayed, the PDF can no longer be downloaded. A quick hack you could try to work around this issue is to turn off the display of PHP/WordPress warnings on your website (or perhaps just this page), but we would also like to work on a nicer solution.

    It seems that by default WooCommerce doesn’t allow you to specify something other than a number for the price of products, so I suspect you’re using some kind of plugin to allow this. Could you let us know what you are using, so that we can reproduce your issue and try to find a workaround or update our plugin to suit your needs?

    Thanks!

    For more questions you can also e-mail us at [email protected]

    Kind regards,
    Jordi Bieger
    Inner Join

Viewing 1 replies (of 1 total)
  • The topic ‘PHP Warning Problem’ is closed to new replies.