Baarssen Posted July 10, 2019 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
datakick Posted July 11, 2019 Posted July 11, 2019 Track here: https://github.com/thirtybees/thirtybees/issues/995 3
Baarssen Posted July 11, 2019 Author Posted July 11, 2019 i changed it back from php 7.2 to php 7.1 This solved the issue Thanks @datakick !
datakick Posted July 11, 2019 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
roks Posted April 16, 2020 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
toplakd Posted April 16, 2020 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
datakick Posted April 16, 2020 Posted April 16, 2020 fixed in 1.1.x https://github.com/thirtybees/thirtybees/commit/15da223b227dc973ef8d7d448292896ca8b3a27b 2
roks Posted April 16, 2020 Posted April 16, 2020 @datakick Thank you for the quick answer. I will use the last 1.1.x version
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now