OFFLINE-GmbH / oc-snipcartshop-plugin

Ecommerce solution for October CMS using snipcart.com as a backend
MIT License
11 stars 4 forks source link

"Object of class October\Rain\Database\Builder could not be converted to int" on line 177 #9

Closed ghost closed 7 years ago

ghost commented 7 years ago

Hello,

I installed snipcart, configured the global settings, created some sample product and now I'm trying to display simple product listing on a page.

When I add the "Products" component to my page and I click on it to configure it, I get the following popup error :

"Object of class October\Rain\Database\Builder could not be converted to int" on line 177 of /www/plugins/offline/snipcartshop/components/Products.php

I have many plugins and only this one give me that error.

I'm using SQLite database engine.

tobias-kuendig commented 7 years ago

Did you create any categories?

ghost commented 7 years ago

Hello,

No I didn't create any categories yet. I will check that.

tobias-kuendig commented 7 years ago

That would be great. If it works after creating a category I can release a fix for this bug with the next version.

ghost commented 7 years ago

I confirm that creating a category resolve the problem.

Thanks for your support !

tobias-kuendig commented 7 years ago

Great, I will release a fix with the next version. Thanks for reporting this bug! :+1:

tobias-kuendig commented 7 years ago

This fix will be available in version 1.0.22 that will be released later today.