artigianidelweb Posted March 18, 2015 Share Posted March 18, 2015 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 setdefine('_PS_MODE_DEV_', true); in config\defines.inc.php --> it works (but it should be not so) ---------> How can I fix that? Thabk you! Link to comment Share on other sites More sharing options...
Rolige Posted March 18, 2015 Share Posted March 18, 2015 _PS_MODE_DEV_ = true --> works _PS_MODE_DEV_ = false --> doesn't works Wow, that is really strange, you know, normally it is in reverse. 1 Link to comment Share on other sites More sharing options...
artigianidelweb Posted March 18, 2015 Author Share Posted March 18, 2015 Yes, it is stange. But is more strange that is bnot a new bug: at least 9 months that bug exists: https://www.prestashop.com/forums/topic/335931-webservice-debug-mode/ (Topic closed, so I should open a new topic) Link to comment Share on other sites More sharing options...
doekia Posted March 18, 2015 Share Posted March 18, 2015 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. 1 Link to comment Share on other sites More sharing options...
doekia Posted March 18, 2015 Share Posted March 18, 2015 Yes, it is stange. But is more strange that is bnot a new bug: at least 9 months that bug exists: https://www.prestashop.com/forums/topic/335931-webservice-debug-mode/ (Topic closed, so I should open a new topic) This one bug has a different cause. Probably some filter issues You shoul look thru you error log to find the root cause 1 Link to comment Share on other sites More sharing options...
artigianidelweb Posted March 18, 2015 Author Share Posted March 18, 2015 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 More sharing options...
doekia Posted March 18, 2015 Share Posted March 18, 2015 yep Link to comment Share on other sites More sharing options...
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