Jump to content

API orders


artigianidelweb

Recommended Posts

Hello to everybody;

 

- in prestahop 1.6.0.13

 

- Webservice full activated

 

(Where XXXXX is the API KEY)

 

http://[email protected]/api/

----> it works

 

http://[email protected]/api/orders/1

(or other each order in that list)

----> doesn't works, gives that error: Internal error. To see this error please display the PHP errors.

 

If I set
define('_PS_MODE_DEV_', true);

 

in  config\defines.inc.php

 

--> it works

 

(but it should be not so)

 

 

---------> How can I fix that?

 

Thabk you!

 

 

 

post-889524-0-74020400-1426667095_thumb.jpg

Link to comment
Share on other sites

This is a bug.

 

The Order::getWsCurrentState() is a getter and should not take any parameters

 

https://github.com/PrestaShop/PrestaShop/commit/e40f97157d06f7ac71dbe2ee7533df9d686352dc

http://forge.prestashop.com/browse/PSCSX-4423

 

Surprisingly the bug appeared on 1.6.0.11 released January the 7th.

The fix + PR + merge occured as per github on the 22nd of January

Despite, 1.6.0.12 (Feb-23), 1.6.0.13(Feb-23), 1.6.0.14(Mar-6) still have the culprit code.

 

Seems like the release get yet again attacked by the SuperGiantSpaghettiMonster.

 

  • Like 1
Link to comment
Share on other sites

This is a bug.

 

The Order::getWsCurrentState() is a getter and should not take any parameters

 

https://github.com/PrestaShop/PrestaShop/commit/e40f97157d06f7ac71dbe2ee7533df9d686352dc

http://forge.prestashop.com/browse/PSCSX-4423

 

Surprisingly the bug appeared on 1.6.0.11 released January the 7th.

The fix + PR + merge occured as per github on the 22nd of January

Despite, 1.6.0.12 (Feb-23), 1.6.0.13(Feb-23), 1.6.0.14(Mar-6) still have the culprit code.

 

Seems like the release get yet again attacked by the SuperGiantSpaghettiMonster.

 

Thank you.

 

So the solution should be changing

 

public function getWsCurrentState($state)

--> into

public function getWsCurrentState()

 

 

on classes/order/Order.php    ?

Link to comment
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...