View Issue Details

IDProjectCategoryView StatusLast Update
0005925OXID eShop (all versions)2.3. Extensions (modules, themes)public2023-12-20 15:17
Reporterleofonic Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status assignedResolutionopen 
Product Version4.9.0 / 5.2.0 
Summary0005925: Template Blocks are not cleared when deactivating module
DescriptionIf you have a module with template blocks and deactivate the module, template blocks are still active until /tmp is emptied manually.
Steps To ReproduceTo reproduce install attached module, activate and deactivate.
Additional InformationReason is in oxmoduleinstaller::deactivate, template blocks are deleted from database. After this module cache is cleared, but because template blocks have already been deleted, no cache files to delete are found. If the order is reversed and template cache is cleared first, the error is gone.
TagsTemplate Blocks
Attached Files
testblocks.zip (1,507 bytes)
ThemeAzure
BrowserAll
PHP VersionNot defined
Database VersionNot defined

Relationships

has duplicate 0006261 closedSvenBrunk entries in oxtplblocks are duplicated, when module gets deactivated from oxid 
related to 0005976 resolvedSvenBrunk Deactivation of theme switch module destroys shop 

Activities

dominik_ziegler

2019-09-19 09:35

reporter   ~0013005

Also, when re-activating a module which got deactivated automatically due to module errors, template blocks in database table oxtplblocks gets duplicated (they are inserted again), because they are not removed on auto deactivation or on re-activating via backend. This gets really annoying in module development.

QA

2019-09-19 10:58

administrator   ~0013006

Hello dominik_ziegler,

there is already another issue entry regarding your described behavior:
https://bugs.oxid-esales.com/view.php?id=6261

[sp]