View Issue Details

IDProjectCategoryView StatusLast Update
0005743OXID eShop (all versions)2.3. Extensions (modules, themes)public2015-12-01 10:10
Reporterrevoltek 
PrioritynormalSeverityminorReproducibilityalways
Status acknowledgedResolutionopen 
Product Version 
Target VersionFixed in Version 
Summary0005743: Module is activ even if onActivate Event failed
DescriptionHello,

if an Module uses the onActivate Event it should only be active if this method runs without an error.

In my case i check for file perms in the onActivate method so when this failed an exception is thrown. The exception is displayed but the module is also activated.
TagsNo tags attached.
ThemeAzure
BrowserAll
PHP VersionNot defined
MySQL VersionNot defined

Activities

FibreFoX

2014-04-24 15:26

reporter   ~0009859

a nicer module-handling would really be appreciated, for me i would prefer an exception instead of having to return false/true (gives more power to specify more-detailed information instead of just having a nothing-telling "no, cant activate" as choice)

quick workaround could be to deactivate that module programmatically within your onActivate-event (loading modules and disable it).