Jump to content

Welcome, Guest!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Baarssen

Sendcloud issue

Recommended Posts

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 by Baarssen

Share this post


Link to post
Share on other sites

Well, it's not solved, it's just suppressed 🙂

But don't worry, this will be fixed in 1.1.x

  • Like 3

Share this post


Link to post
Share on other sites
Posted (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 by roks

Share this post


Link to post
Share on other sites
Posted (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 by toplakd

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...