thelia-modules / StripePayment

Thelia payment module for Stripe
GNU Lesser General Public License v3.0
0 stars 8 forks source link

[RuntimeException] Activation fail with Exception - ON MODULE ACTIVATION #19

Open oopen opened 3 years ago

oopen commented 3 years ago

I have try to require StripePayment (actualy v2.0.4) composer require thelia/stripe-payment-module ~2.0.0 on a fresh Thelia-project v2.4.4 installation, when I activate the module in CLI or BackOffice I get error :

[RuntimeException]                                                                                                                                                                      
  Activation fail with Exception : [0] Unable to execute INSERT statement [INSERT INTO `module_image` (`id`, `module_id`, `position`, `created_at`, `updated_at`) VALUES (:p0, :p1, :p2,  
   :p3, :p4)]

Log :

1: ERROR [ModuleController.php:toggleActivationAction()] {262} 2021-05-01 20:36:33: Failed to activate/deactivate module:
2: ERROR [ModuleController.php:toggleActivationAction()] {262} 2021-05-01 20:36:33: Unable to execute INSERT statement [INSERT INTO `module_image` (`id`, `module_id`, `position`, `created_at`, `updated_at`) VALUES (:p0, :p1, :p2, :p3, :p4)]
#0 /application/cache/propel/model/Thelia/Model/Base/ModuleImage.php(905): Thelia\Model\Base\ModuleImage->doInsert()
#1 /application/cache/propel/model/Thelia/Model/Base/ModuleImage.php(857): Thelia\Model\Base\ModuleImage->doSave()
#2 /application/vendor/thelia/propel/src/Propel/Runtime/Connection/TransactionTrait.php(35): Thelia\Model\Base\ModuleImage->Thelia\Model\Base\{closure}()
#3 /application/cache/propel/model/Thelia/Model/Base/ModuleImage.php(870): Propel\Runtime\Connection\ConnectionWrapper->transaction()
#4 /application/vendor/thelia/core/lib/Thelia/Module/BaseModule.php(287): Thelia\Model\Base\ModuleImage->save()
#5 /application/local/modules/StripePayment/StripePayment.php(69): Thelia\Module\BaseModule->deployImageFolder()
#6 /application/vendor/thelia/core/lib/Thelia/Module/BaseModule.php(102): StripePayment\StripePayment->postActivation()
#7 /application/vendor/thelia/core/lib/Thelia/Action/Module.php(68): Thelia\Module\BaseModule->activate()
#8 /application/vendor/symfony/event-dispatcher/EventDispatcher.php(184): Thelia\Action\Module->toggleActivation()
#9 /application/vendor/symfony/event-dispatcher/EventDispatcher.php(46): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch()
#10 /application/vendor/thelia/core/lib/Thelia/Controller/BaseController.php(124): Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
#11 /application/vendor/thelia/core/lib/Thelia/Controller/Admin/ModuleController.php(252): Thelia\Controller\BaseController->dispatch()
#12 /application/vendor/symfony/http-kernel/HttpKernel.php(135): Thelia\Controller\Admin\ModuleController->toggleActivationAction()
#13 /application/vendor/symfony/http-kernel/HttpKernel.php(57): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#14 /application/vendor/thelia/core/lib/Thelia/Core/TheliaHttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handle()
#15 /application/vendor/thelia/core/lib/Thelia/Core/Stack/ParamInitMiddleware.php(87): Thelia\Core\TheliaHttpKernel->handle()
#16 /application/vendor/thelia/core/lib/Thelia/Core/Stack/SessionMiddleware.php(80): Thelia\Core\Stack\ParamInitMiddleware->handle()
#17 /application/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Thelia\Core\Stack\SessionMiddleware->handle()
#18 /application/vendor/symfony/http-kernel/Kernel.php(183): Stack\StackedHttpKernel->handle()
#19 /application/web/index.php(41): Symfony\Component\HttpKernel\Kernel->handle()
#20 {main}
alexandremottier commented 2 years ago

Hi,

You need to add a picture on the module, for example the Stripe logo ;)

Good luck !