Jump to content

Create orders return error 500 fatal error


Recommended Posts

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

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

Posted (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
image.thumb.png.d47a8329b98a20259298e68527f5f44f.png

Edited by arnold anh (see edit history)
Link to comment
Share on other sites

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

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...