Title: PHP Warning Problem
Last modified: November 14, 2021

---

# PHP Warning Problem

 *  Resolved [michaeltrotz](https://wordpress.org/support/users/michaeltrotz/)
 * (@michaeltrotz)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/php-warning-problem/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-warning-problem%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Jordi Bieger](https://wordpress.org/support/users/jordibieger/)
 * (@jordibieger)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/php-warning-problem/#post-15184950)
 * 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 [info@inner-join.nl](https://wordpress.org/support/topic/php-warning-problem/info@inner-join.nl?output_format=md)
 * Kind regards,
    Jordi Bieger Inner Join

Viewing 1 replies (of 1 total)

The topic ‘PHP Warning Problem’ is closed to new replies.

 * ![](https://ps.w.org/pricelist-for-woocommerce/assets/icon-256x256.png?rev=2816590)
 * [PriceList for WooCommerce](https://wordpress.org/plugins/pricelist-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pricelist-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pricelist-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/pricelist-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pricelist-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pricelist-for-woocommerce/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jordi Bieger](https://wordpress.org/support/users/jordibieger/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/php-warning-problem/#post-15184950)
 * Status: resolved