• Resolved loomedisto

    (@loomedisto)


    Posting this here even though I have paid for the pro version since Booster refuses to offer any support, and I’m not paying $130 just to tell you your code is broken again.

    I am getting a fatal error in the main product list:

    Fatal error: Uncaught Error: min(): Argument #1 ($value) must contain at least one element
    in /wp-content/plugins/booster-plus-for-woocommerce/includes/class-wcj-purchase-data.php on line 196

    This is a new error, so if you put out an update recently it might be in that. I would provide more info about my setup except that again, it is impossible to contact this company without paying out the a&&, and I’m not posting that info publicly so….. Good luck I guess, and feel free to give me an email address if you want more info. I’m on PHP 8.1 if that helps at least.

    I have to be able to manage my products so for now I’ll just have to edit the plugin files and fix your bugs myself. ?? But if anyone from Booster sees this and gives a rat’s behind about their customers, please take a look. Sorry to be a dick about it but it’s truly unbelievable how many bugs this plugin has and I have no patience with it anymore.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter loomedisto

    (@loomedisto)

    If anyone else runs into this, updating line 195 in that file to:
    if ( 'purchase_cost' === $column && ! empty( $purchase_costs ) ) {
    seems to work for now.

    Plugin Support David G

    (@gravid7)

    Hi @loomedisto,

    Can you please contact us from our website? So, we can take a deeper look and help you.

    Thread Starter loomedisto

    (@loomedisto)

    I would have done that first except you don’t offer any support unless we pay extra for “premium” support, even for those who already purchased the plugin. Your website only allows contact for pre-sale questions, otherwise the only options are pay or knowledgebase. Where do you suggest I contact you from your website if there are no contact methods available beyond pre-sales? I can’t even find a basic place to report bugs.

    If you bother to look at the function containing the line of the file mentioned above, I’m sure you’ll see where the issue is. The function assumes there will be a value in $purchase_costs but if a variable product is created and saved, even as a draft, before a variation is added, then there is nothing there and the entire product page breaks. If you verify that $purchase_costs actually contains a value before trying to use it, as I mentioned above, then it’s fine, but obviously my edits will get overwritten with your next update.

    Hello. I’m running into this problem as well. I’m not sure what happens but if we save a product as a draft, it doesn’t save anything in the cost of goods module, and then it causes a PHP fatal error because there’s no value in the $purchase_costs array, which is required for the min() function on line 196.

    @loomedisto thanks for the fix, if I change it then it works for me as well. @gravid7 I would contact you from your website but as the OP mentioned, that doesn’t seem to be possible for free users.

    If you activate the Cost of Goods module and delete any values from the database, you’ll see the issue. I don’t know why it sometimes doesn’t save any value when creating a product as it usually just says “$0.00” in that column automatically, but it does, and then causes a fatal error.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.