arnold anh Posted June 13, 2024 Share Posted June 13, 2024 Hi Everyone, I hope there is someone here who could shed some light on the issue I am having. PrestaShop Version: 1.7.8.2 When I create an order to prestashop site through webservice, it returns this error 500: Erreur fatale This is my input: <?xml version="1.0" encoding="utf-8"?> <prestashop xmlns:xlink="http://www.w3.org/1999/xlink"> <order> <current_state>4</current_state> <id_lang>1</id_lang> <id_currency>1</id_currency> <module>ps_checkpayment</module> <conversion_rate>1.0</conversion_rate> <date_add>2024-06-10 13:12:27</date_add> <date_upd>2024-06-10 13:12:30</date_upd> <payment>dc_via_paypal</payment> <shipping_number></shipping_number> <valid>1</valid> <id_customer>40874</id_customer> <id_address_delivery>53241</id_address_delivery> <id_address_invoice>53242</id_address_invoice> <id_carrier>229</id_carrier> <id_cart>142100</id_cart> <total_products>166.57</total_products> <total_products_wt>166.57</total_products_wt> <total_discounts>5.71</total_discounts> <total_discounts_tax_incl>5.71</total_discounts_tax_incl> <total_discounts_tax_excl>5.71</total_discounts_tax_excl> <total_shipping>17.0</total_shipping> <total_shipping_tax_incl>17.0</total_shipping_tax_incl> <total_shipping_tax_excl>17.0</total_shipping_tax_excl> <total_paid>119.88</total_paid> <total_paid_real>160.86</total_paid_real> <total_paid_tax_incl>160.86</total_paid_tax_incl> <total_paid_tax_excl>136.88</total_paid_tax_excl> </order> </prestashop> I don't know why it return 500 error, I hope someone could shed a little light or direct me where the issue could be. Thank you in advance! Link to comment Share on other sites More sharing options...
Prestashop Addict Posted June 13, 2024 Share Posted June 13, 2024 Check in you error log file in apache or ngnix and in var/logs/ Link to comment Share on other sites More sharing options...
arnold anh Posted June 13, 2024 Author Share Posted June 13, 2024 When I check folder var/logs, file ps_accounts-2024-06-13 , it returns this log [2024-06-13 14:39:13] ps_accounts.DEBUG: execute hook : [PrestaShop\Module\PsAccounts\Hook\DisplayBackOfficeHeader] [] [] [2024-06-13 14:39:13] ps_accounts.DEBUG: resolving handler : PrestaShop\Module\PsAccounts\Account\Command\UpgradeModuleMultiCommand [] [] [2024-06-13 14:39:13] ps_accounts.DEBUG: handling : PrestaShop\Module\PsAccounts\Account\CommandHandler\UpgradeModuleMultiHandler [] [] [2024-06-13 14:39:13] ps_accounts.DEBUG: with data : {} [] [] [2024-06-13 14:39:13] ps_accounts.DEBUG: resolving handler : PrestaShop\Module\PsAccounts\Account\Command\UpgradeModuleCommand [] [] [2024-06-13 14:39:13] ps_accounts.DEBUG: handling : PrestaShop\Module\PsAccounts\Account\CommandHandler\UpgradeModuleHandler [] [] [2024-06-13 14:39:13] ps_accounts.DEBUG: with data : {"payload":{"version":"7.0.1","shopId":null}} [] [] [2024-06-13 14:39:13] ps_accounts.DEBUG: execute hook : [PrestaShop\Module\PsAccounts\Hook\DisplayDashboardTop] [] [] I don't know what to do? Anyone knows how to fix it. Please help me. Thank you Link to comment Share on other sites More sharing options...
Prestashop Addict Posted June 13, 2024 Share Posted June 13, 2024 Nothing to do with you issue. You can activate debug and see the result of the webservice call and apache log too. 1 Link to comment Share on other sites More sharing options...
arnold anh Posted June 14, 2024 Author Share Posted June 14, 2024 (edited) I activate debug mode and I check log in my BO, there is some messages in the image below. Is it issues what makes me create order failed through api? Anyone knows how to fix it. Please help me. Thank you Edited June 14, 2024 by arnold anh (see edit history) Link to comment Share on other sites More sharing options...
arnold anh Posted June 14, 2024 Author Share Posted June 14, 2024 I resolved it. It seems that there is no module like I add to create order. So i have to check what modules imported in BO to get its infors. Do you know API to get list of payment module ? 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