Baarssen 69 Posted July 10, 2019 (edited) My Sendcloud module suddenly stops working on all my thirtybees shops. When executing the webservice i get this: <prestashop xmlns:xlink="http://www.w3.org/1999/xlink"> <errors> <error> <code> <![CDATA[ 3 ]]> </code> <message> <![CDATA[ count(): Parameter must be an array or an object that implements Countable (/home/xxxx/domains/xxxxx.xx/public_html/classes/webservice/WebserviceRequest.php, line 927) ]]> </message> </error> </errors> </prestashop> Is there something changed in thirtybees webservice? It happens on all my TB shops, even the fresh installs of 1.08 Line 927 and 928 says this: if (count(static::$shopIDs)) { return true; Edited July 10, 2019 by Baarssen Share this post Link to post Share on other sites
datakick 1,267 Posted July 11, 2019 Have you updated your php version recently? 1 Share this post Link to post Share on other sites
datakick 1,267 Posted July 11, 2019 Track here: https://github.com/thirtybees/thirtybees/issues/995 3 Share this post Link to post Share on other sites
Baarssen 69 Posted July 11, 2019 i changed it back from php 7.2 to php 7.1 This solved the issue Thanks @datakick ! Share this post Link to post Share on other sites
datakick 1,267 Posted July 11, 2019 Well, it's not solved, it's just suppressed 🙂 But don't worry, this will be fixed in 1.1.x 3 Share this post Link to post Share on other sites
roks 0 Posted April 16, 2020 (edited) Hello, Is this problem planned for fixing? A similar issue is happening when using the api with JSON output. Request: http://xxxxxxx/api/products?output_format=JSON Response: {"products":[{"id":1},{"id":2},{"id":3},{"id":4},{"id":5},{"id":6},{"id":7},{"id":8}],"errors":[{"code":3,"message":"[PHP Warning #2] count(): Parameter must be an array or an object that implements Countable (C:\\xampp\\htdocs\\thirtybees\\classes\\webservice\\WebserviceOutputJSON.php, line 251)"}]} I have TB 1.1.0 and PHP 7.4 Edited April 16, 2020 by roks Share this post Link to post Share on other sites
toplakd 188 Posted April 16, 2020 (edited) I don't think thirty bees is 7.4 ready in the current version. As lot of errors pop out everywhere Switch to 7.3 Edited April 16, 2020 by toplakd Share this post Link to post Share on other sites
datakick 1,267 Posted April 16, 2020 fixed in 1.1.x https://github.com/thirtybees/thirtybees/commit/15da223b227dc973ef8d7d448292896ca8b3a27b 2 Share this post Link to post Share on other sites
roks 0 Posted April 16, 2020 @datakick Thank you for the quick answer. I will use the last 1.1.x version Share this post Link to post Share on other sites