Daniel Patilea Posted May 27, 2015 Share Posted May 27, 2015 (edited) I've updated prestashop recently and i get this error: Property OrderHistory->id_order_state is empty at line 872 in file classes/ObjectModel.php I have the latest version of Prestashop. This is the page Any advice please? Edited May 27, 2015 by iDan (see edit history) Link to comment Share on other sites More sharing options...
tuk66 Posted May 27, 2015 Share Posted May 27, 2015 Look at the ps_order_history table, id_order_state field. All values have to be non-zero in this field. If you don't know, set 8 (Payment error). 1 Link to comment Share on other sites More sharing options...
Daniel Patilea Posted May 27, 2015 Author Share Posted May 27, 2015 Look at the ps_order_history table, id_order_state field. All values have to be non-zero in this field. If you don't know, set 8 (Payment error). The table seems ok, there's no entry with 0 value Link to comment Share on other sites More sharing options...
tuk66 Posted May 27, 2015 Share Posted May 27, 2015 Then you look at the code. Probably some problems with the payment module. 1 Link to comment Share on other sites More sharing options...
Daniel Patilea Posted May 27, 2015 Author Share Posted May 27, 2015 Then you look at the code. Probably some problems with the payment module. I appreciate your help tuk66 I've updated the payment modules (bankwire and checque) but still no luck. I guess there's a database problem or something but i just can't figure it out. Link to comment Share on other sites More sharing options...
NemoPS Posted May 29, 2015 Share Posted May 29, 2015 It seems the cheque module has some issues, can you expand the 4th line of the error, from the bottom? 1 Link to comment Share on other sites More sharing options...
Daniel Patilea Posted June 3, 2015 Author Share Posted June 3, 2015 It seems the cheque module has some issues, can you expand the 4th line of the error, from the bottom? Here's a expanded screenshot: http://i.imgur.com/FnvNdts.png Link to comment Share on other sites More sharing options...
NemoPS Posted June 3, 2015 Share Posted June 3, 2015 there is no status set for PS_OS_CHEQUEYou can either add the entry manually to the back office (corresponding to the status) or hardcode it, if reinstalling the module doesn't help 1 Link to comment Share on other sites More sharing options...
Daniel Patilea Posted June 3, 2015 Author Share Posted June 3, 2015 (edited) there is no status set for PS_OS_CHEQUE You can either add the entry manually to the back office (corresponding to the status) or hardcode it, if reinstalling the module doesn't help Nemo, this error appears only if i add to cart products out of stock, this is a product example Edited June 3, 2015 by iDan (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted June 3, 2015 Share Posted June 3, 2015 Oh, you might be missing the backorder status. Can you check? 1 Link to comment Share on other sites More sharing options...
Daniel Patilea Posted June 3, 2015 Author Share Posted June 3, 2015 Oh, you might be missing the backorder status. Can you check? I checked the order statuses and they seem to be there: http://i.imgur.com/9vOGmaQ.png Link to comment Share on other sites More sharing options...
NemoPS Posted June 3, 2015 Share Posted June 3, 2015 That should be "in arrivo", I guess. What about those PS_OUTOFSTOCK ones? DO they have any entry in the database? (Referring to the error screenshot) 1 Link to comment Share on other sites More sharing options...
Daniel Patilea Posted June 3, 2015 Author Share Posted June 3, 2015 That should be "in arrivo", I guess. What about those PS_OUTOFSTOCK ones? DO they have any entry in the database? (Referring to the error screenshot) There's a PS_OS_OUTOFSTOCK entry with the value 9 but no PS_OUTOFSTOCK entry. Link to comment Share on other sites More sharing options...
NemoPS Posted June 3, 2015 Share Posted June 3, 2015 THat's the one I meant. sorry. THe problem is the module wants PS_OS_OUTOFSTOCK_PAID or PS_OS_OUTOFSTOCK_UNPAID 1 Link to comment Share on other sites More sharing options...
Daniel Patilea Posted June 3, 2015 Author Share Posted June 3, 2015 THat's the one I meant. sorry. THe problem is the module wants PS_OS_OUTOFSTOCK_PAID or PS_OS_OUTOFSTOCK_UNPAID Those two entries: PS_OS_OUTOFSTOCK_PAID and PS_OS_OUTOFSTOCK_UNPAID are missing from ps_configuration table, should I add both of them? What values should they have? Link to comment Share on other sites More sharing options...
Daniel Patilea Posted June 3, 2015 Author Share Posted June 3, 2015 I solved the issue by inserting PS_OS_OUTOFSTOCK_PAID and PS_OS_OUTOFSTOCK_UNPAID in the ps_configuration table. Thanks alot Nemo! 1 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