THELIA Forum

Welcome to the THELIA support and discusssion forum

Announcement

Rejoignez la communauté sur le Discord Thelia : https://discord.gg/YgwpYEE3y3

Offline

#1 module PartialDelivery

(21-05-2014 12:18:58)


Bonjour,

Cote back, lorsque je choisie la quantite livree et que je clique sur send
j'ai les erreurs suivantes :

2/2 PropelException: Unable to execute UPDATE statement [UPDATE `order` SET `STATUS_ID`=:p1, `UPDATED_AT`=:p2 WHERE order.ID=:p3]

    in /homez.317/m-----/www/shop/core/vendor/propel/propel/src/Propel/Runtime/ActiveQuery/Criteria.php line 2258
    at Criteria->doUpdate(object(Criteria), object(ConnectionWrapper)) in /homez.317/m-----/www/shop/core/lib/Thelia/Model/Base/Order.php line 1802
    at Order->doUpdate(object(ConnectionWrapper)) in /homez.317/m-----/www/shop/core/lib/Thelia/Model/Base/Order.php line 1580
    at Order->doSave(object(ConnectionWrapper)) in /homez.317/m-----/www/shop/core/lib/Thelia/Model/Base/Order.php line 1477
    at Order->save() in /homez.317/m-----/www/shop/core/lib/Thelia/Action/Order.php line 410
    at Order->updateStatus(object(OrderEvent))
    at call_user_func(array(object(Order), 'updateStatus'), object(OrderEvent)) in /homez.317/m-----/www/shop/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php line 164
    at EventDispatcher->doDispatch(array(array(object(Order), 'updateStatus'), array(object(SendMail), 'updateStatus'), array(object(SendConfirmationEmail), 'update_status'), array(object(Update), 'set_sent')), 'action.order.updateStatus', object(OrderEvent)) in /homez.317/m-----/www/shop/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php line 53
    at EventDispatcher->dispatch('action.order.updateStatus', object(OrderEvent)) in /homez.317/m-----/www/shop/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/ContainerAwareEventDispatcher.php line 167
    at ContainerAwareEventDispatcher->dispatch('action.order.updateStatus', object(OrderEvent)) in /homez.317/m-----/www/shop/local/modules/PartialDelivery/Listener/Update.php line 73
    at Update->update_quantity(object(PartialDeliveryEvent))
    at call_user_func(array(object(Update), 'update_quantity'), object(PartialDeliveryEvent)) in /homez.317/m-----/www/shop/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php line 164
    at EventDispatcher->doDispatch(array(array(object(SendEMail), 'update_status'), array(object(Update), 'update_quantity')), 'partial.delivery.update.sent.quantity', object(PartialDeliveryEvent)) in /homez.317/m-----/www/shop/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php line 53
    at EventDispatcher->dispatch('partial.delivery.update.sent.quantity', object(PartialDeliveryEvent)) in /homez.317/m-----/www/shop/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/ContainerAwareEventDispatcher.php line 167
    at ContainerAwareEventDispatcher->dispatch('partial.delivery.update.sent.quantity', object(PartialDeliveryEvent)) in /homez.317/m-----/www/shop/core/lib/Thelia/Controller/BaseController.php line 95
    at BaseController->dispatch('partial.delivery.update.sent.quantity', object(PartialDeliveryEvent)) in /homez.317/m-----/www/shop/local/modules/PartialDelivery/Controller/SendPartialOrder.php line 85
    at SendPartialOrder->sendPartial('4')
    at call_user_func_array(array(object(SendPartialOrder), 'sendPartial'), array('4')) in /homez.317/m-----/www/shop/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php line 129
    at HttpKernel->handleRaw(object(Request), '1') in /homez.317/m-----/www/shop/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php line 73
    at HttpKernel->handle(object(Request), '1', true) in /homez.317/m-----/www/shop/core/lib/Thelia/Core/TheliaHttpKernel.php line 81
    at TheliaHttpKernel->handle(object(Request), '1', true) in /homez.317/m-----/www/shop/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Kernel.php line 197
    at Kernel->handle(object(Request)) in /homez.317/m-----/www/shop/web/index_dev.php line 37

1/2 PDOException: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`m-----shop`.`order`, CONSTRAINT `fk_order_status_id` FOREIGN KEY (`status_id`) REFERENCES `order_status` (`id`))

    in /homez.317/m-----/www/shop/core/vendor/propel/propel/src/Propel/Runtime/Connection/StatementWrapper.php line 196
    at PDOStatement->execute(null) in /homez.317/m-----/www/shop/core/vendor/propel/propel/src/Propel/Runtime/Connection/StatementWrapper.php line 196
    at StatementWrapper->execute() in /homez.317/m-----/www/shop/core/vendor/propel/propel/src/Propel/Runtime/ActiveQuery/Criteria.php line 2247
    at Criteria->doUpdate(object(Criteria), object(ConnectionWrapper)) in /homez.317/m-----/www/shop/core/lib/Thelia/Model/Base/Order.php line 1802
    at Order->doUpdate(object(ConnectionWrapper)) in /homez.317/m-----/www/shop/core/lib/Thelia/Model/Base/Order.php line 1580
    at Order->doSave(object(ConnectionWrapper)) in /homez.317/m-----/www/shop/core/lib/Thelia/Model/Base/Order.php line 1477
    at Order->save() in /homez.317/m-----/www/shop/core/lib/Thelia/Action/Order.php line 410
    at Order->updateStatus(object(OrderEvent))
    at call_user_func(array(object(Order), 'updateStatus'), object(OrderEvent)) in /homez.317/m-----/www/shop/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php line 164
    at EventDispatcher->doDispatch(array(array(object(Order), 'updateStatus'), array(object(SendMail), 'updateStatus'), array(object(SendConfirmationEmail), 'update_status'), array(object(Update), 'set_sent')), 'action.order.updateStatus', object(OrderEvent)) in /homez.317/m-----/www/shop/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php line 53
    at EventDispatcher->dispatch('action.order.updateStatus', object(OrderEvent)) in /homez.317/m-----/www/shop/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/ContainerAwareEventDispatcher.php line 167
    at ContainerAwareEventDispatcher->dispatch('action.order.updateStatus', object(OrderEvent)) in /homez.317/m-----/www/shop/local/modules/PartialDelivery/Listener/Update.php line 73
    at Update->update_quantity(object(PartialDeliveryEvent))
    at call_user_func(array(object(Update), 'update_quantity'), object(PartialDeliveryEvent)) in /homez.317/m-----/www/shop/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php line 164
    at EventDispatcher->doDispatch(array(array(object(SendEMail), 'update_status'), array(object(Update), 'update_quantity')), 'partial.delivery.update.sent.quantity', object(PartialDeliveryEvent)) in /homez.317/m-----/www/shop/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php line 53
    at EventDispatcher->dispatch('partial.delivery.update.sent.quantity', object(PartialDeliveryEvent)) in /homez.317/m-----/www/shop/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/ContainerAwareEventDispatcher.php line 167
    at ContainerAwareEventDispatcher->dispatch('partial.delivery.update.sent.quantity', object(PartialDeliveryEvent)) in /homez.317/m-----/www/shop/core/lib/Thelia/Controller/BaseController.php line 95
    at BaseController->dispatch('partial.delivery.update.sent.quantity', object(PartialDeliveryEvent)) in /homez.317/m-----/www/shop/local/modules/PartialDelivery/Controller/SendPartialOrder.php line 85
    at SendPartialOrder->sendPartial('4')
    at call_user_func_array(array(object(SendPartialOrder), 'sendPartial'), array('4')) in /homez.317/m-----/www/shop/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php line 129
    at HttpKernel->handleRaw(object(Request), '1') in /homez.317/m-----/www/shop/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php line 73
    at HttpKernel->handle(object(Request), '1', true) in /homez.317/m-----/www/shop/core/lib/Thelia/Core/TheliaHttpKernel.php line 81
    at TheliaHttpKernel->handle(object(Request), '1', true) in /homez.317/m-----/www/shop/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Kernel.php line 197
    at Kernel->handle(object(Request)) in /homez.317/m-----/www/shop/web/index_dev.php line 37

Offline

#2 Re: module PartialDelivery

(21-05-2014 13:50:02)


Ouvre une issue sur le Github du module.


OpenStudio Toulouse

Offline

#3 Re: module PartialDelivery

(21-05-2014 14:06:54)


ok je le fais smile