THELIA Forum

Welcome to the THELIA support and discusssion forum

Announcement

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

Offline


Bonjour,

La suppression de gabarit de produits ne fonctionne pas si on n'a pas préalablement supprimé les déclis associées.

Si c'est une sécurité, aucun message n'apparaît lors de la tentative de suppression, juste une page blanche.

Last edited by Aurelien12 (15-06-2014 16:11:58)

Offline


Bonjour,

Je ne parviens pas à reproduire ce problème. Peux tu effectuer la manip en mode développement, c'est à dire en accédant à l'admin via index_dev.php :

http://www.maboutique.com/index_dev.php/admin

Si tu n'est pas en local, tu devra sans doute modifier le fichier index_dev.php pour y ajouter ton adresse IP :

// List of allowed IP
$trustedIp = array(
  '::1',
  '127.0.0.1',
  'ton.adresse.ip.ici'
);

Ou alors regarder dans le fiochier error.log d'Apache quelle est l'erreur PHP qui se produit, et la faire connaitre ici.


OpenStudio Toulouse

Offline


Donc :

Whoops, looks like something went wrong.
2/2 PropelException: Propel\Runtime\ActiveQuery\ModelCriteria::delete is unable to delete.

    in C:\wamp\www\thelia_2.0.2\core\vendor\propel\propel\src\Propel\Runtime\ActiveQuery\ModelCriteria.php line 1331
    at ModelCriteria->delete(object(ConnectionWrapper)) in C:\wamp\www\thelia_2.0.2\core\lib\Thelia\Model\Base\TemplateQuery.php line 773
    at TemplateQuery->delete(object(ConnectionWrapper)) in C:\wamp\www\thelia_2.0.2\core\lib\Thelia\Model\Base\Template.php line 710
    at Template->delete() in C:\wamp\www\thelia_2.0.2\core\lib\Thelia\Action\Template.php line 95
    at Template->delete(object(TemplateDeleteEvent))
    at call_user_func(array(object(Template), 'delete'), object(TemplateDeleteEvent)) in C:\wamp\www\thelia_2.0.2\core\vendor\symfony\event-dispatcher\Symfony\Component\EventDispatcher\EventDispatcher.php line 164
    at EventDispatcher->doDispatch(array(array(object(Template), 'delete')), 'action.deleteTemplate', object(TemplateDeleteEvent)) in C:\wamp\www\thelia_2.0.2\core\vendor\symfony\event-dispatcher\Symfony\Component\EventDispatcher\EventDispatcher.php line 53
    at EventDispatcher->dispatch('action.deleteTemplate', object(TemplateDeleteEvent)) in C:\wamp\www\thelia_2.0.2\core\vendor\symfony\event-dispatcher\Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher.php line 167
    at ContainerAwareEventDispatcher->dispatch('action.deleteTemplate', object(TemplateDeleteEvent)) in C:\wamp\www\thelia_2.0.2\core\lib\Thelia\Controller\BaseController.php line 95
    at BaseController->dispatch('action.deleteTemplate', object(TemplateDeleteEvent)) in C:\wamp\www\thelia_2.0.2\core\lib\Thelia\Controller\Admin\AbstractCrudController.php line 549
    at AbstractCrudController->deleteAction()
    at call_user_func_array(array(object(TemplateController), 'deleteAction'), array()) in C:\wamp\www\thelia_2.0.2\core\vendor\symfony\http-kernel\Symfony\Component\HttpKernel\HttpKernel.php line 129
    at HttpKernel->handleRaw(object(Request), '1') in C:\wamp\www\thelia_2.0.2\core\vendor\symfony\http-kernel\Symfony\Component\HttpKernel\HttpKernel.php line 73
    at HttpKernel->handle(object(Request), '1', true) in C:\wamp\www\thelia_2.0.2\core\lib\Thelia\Core\TheliaHttpKernel.php line 82
    at TheliaHttpKernel->handle(object(Request), '1', true) in C:\wamp\www\thelia_2.0.2\core\vendor\symfony\http-kernel\Symfony\Component\HttpKernel\Kernel.php line 197
    at Kernel->handle(object(Request)) in C:\wamp\www\thelia_2.0.2\web\index_dev.php line 36

1/2 PropelException: Unable to execute DELETE statement [DELETE FROM `template` WHERE template.ID=:p1]

    in C:\wamp\www\thelia_2.0.2\core\vendor\propel\propel\src\Propel\Runtime\ActiveQuery\Criteria.php line 2406
    at Criteria->doDelete(object(ConnectionWrapper)) in C:\wamp\www\thelia_2.0.2\core\vendor\propel\propel\src\Propel\Runtime\ActiveQuery\ModelCriteria.php line 1325
    at ModelCriteria->delete(object(ConnectionWrapper)) in C:\wamp\www\thelia_2.0.2\core\lib\Thelia\Model\Base\TemplateQuery.php line 773
    at TemplateQuery->delete(object(ConnectionWrapper)) in C:\wamp\www\thelia_2.0.2\core\lib\Thelia\Model\Base\Template.php line 710
    at Template->delete() in C:\wamp\www\thelia_2.0.2\core\lib\Thelia\Action\Template.php line 95
    at Template->delete(object(TemplateDeleteEvent))
    at call_user_func(array(object(Template), 'delete'), object(TemplateDeleteEvent)) in C:\wamp\www\thelia_2.0.2\core\vendor\symfony\event-dispatcher\Symfony\Component\EventDispatcher\EventDispatcher.php line 164
    at EventDispatcher->doDispatch(array(array(object(Template), 'delete')), 'action.deleteTemplate', object(TemplateDeleteEvent)) in C:\wamp\www\thelia_2.0.2\core\vendor\symfony\event-dispatcher\Symfony\Component\EventDispatcher\EventDispatcher.php line 53
    at EventDispatcher->dispatch('action.deleteTemplate', object(TemplateDeleteEvent)) in C:\wamp\www\thelia_2.0.2\core\vendor\symfony\event-dispatcher\Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher.php line 167
    at ContainerAwareEventDispatcher->dispatch('action.deleteTemplate', object(TemplateDeleteEvent)) in C:\wamp\www\thelia_2.0.2\core\lib\Thelia\Controller\BaseController.php line 95
    at BaseController->dispatch('action.deleteTemplate', object(TemplateDeleteEvent)) in C:\wamp\www\thelia_2.0.2\core\lib\Thelia\Controller\Admin\AbstractCrudController.php line 549
    at AbstractCrudController->deleteAction()
    at call_user_func_array(array(object(TemplateController), 'deleteAction'), array()) in C:\wamp\www\thelia_2.0.2\core\vendor\symfony\http-kernel\Symfony\Component\HttpKernel\HttpKernel.php line 129
    at HttpKernel->handleRaw(object(Request), '1') in C:\wamp\www\thelia_2.0.2\core\vendor\symfony\http-kernel\Symfony\Component\HttpKernel\HttpKernel.php line 73
    at HttpKernel->handle(object(Request), '1', true) in C:\wamp\www\thelia_2.0.2\core\lib\Thelia\Core\TheliaHttpKernel.php line 82
    at TheliaHttpKernel->handle(object(Request), '1', true) in C:\wamp\www\thelia_2.0.2\core\vendor\symfony\http-kernel\Symfony\Component\HttpKernel\Kernel.php line 197
    at Kernel->handle(object(Request)) in C:\wamp\www\thelia_2.0.2\web\index_dev.php line 36