OXID eShop bugtrack - OXID eShop (all versions)
View Issue Details
0004025OXID eShop (all versions)2.3. Extensions (modules, themes)public2012-05-10 12:182014-01-09 15:33
b.hasis 
highminoralways
resolvedfixed 
4.6.0 revision 44406 
4.7.11 / 5.0.114.7.11 / 5.0.11 
Both
All
any
any
0004025: no update of tbl:oxtplblocks by changing module/metadata.php 'blocks' => array()
If you change block settings in module/metadata.php they are no update of allready exists entries, and new entries in your 'blocks' => array() doesnt insert in Database:oxtplblocks. So its not Possible to patch your Modules.
Create a Module with metadata.php
Insert a block
Activate that Module in adminarea
add and update a block in metadata.php

You will see no change in Database:oxtplblocks

Deactivate/Activate that Module doesnt help.
No tags attached.
has duplicate 0004866resolved Linas Kukulskis Start page header element (including CSS) disappear after ruining installed PayPal module. 
related to 0004129resolved Linas Kukulskis metadata.php changes are not committed right to aModules 
related to 0005270resolved mantas.vaitkunas after deactivation still data in db 
child of 0004942acknowledged  Changing Module ID will move old module(id) to aDiabledModules and let them stay there until the module directory is deleted 
Issue History
2012-05-10 12:18b.hasisNew Issue
2012-05-17 15:30svetlanaAssigned To => svetlana
2012-05-17 15:30svetlanaStatusnew => assigned
2012-05-18 08:11svetlanaAssigned Tosvetlana => dainius.bigelis
2012-05-22 10:11dainius.bigelisNote Added: 0006665
2012-05-22 10:11dainius.bigelisSeveritymajor => minor
2012-05-22 10:11dainius.bigelisAssigned Todainius.bigelis =>
2012-05-22 10:11dainius.bigelisStatusassigned => confirmed
2012-06-07 16:04svetlanaRelationship addedrelated to 0004129
2012-07-02 16:59cata.vanceaIssue Monitored: cata.vancea
2012-07-02 17:02cata.vanceaNote Added: 0007041
2012-11-07 09:20alfonsas_cirtautasAssigned To => alfonsas_cirtautas
2012-11-07 09:20alfonsas_cirtautasStatusconfirmed => assigned
2012-12-10 13:33Linas KukulskisCategoryExtensions handling: Themes & Modules => 2.3. Extensions (modules, themes)
2012-12-13 14:21Linas KukulskisTarget Version => 4.6.6 revision 54646
2012-12-13 14:31Linas KukulskisAssigned Toalfonsas_cirtautas =>
2012-12-13 14:31Linas KukulskisStatusassigned => confirmed
2013-02-06 15:50svetlanaTarget Version4.6.6 revision 54646 => 4.6.7
2013-03-19 08:38Linas KukulskisTarget Version4.6.7 => 4.7.4 / 5.0.4 revision 57063
2013-04-04 14:17jurate.basevicieneTarget Version4.7.4 / 5.0.4 revision 57063 => 4.7.5 / 5.0.5
2013-04-23 15:18svetlanaTarget Version4.7.5 / 5.0.5 => 4.7.6 / 5.0.6
2013-05-21 14:37svetlanaTarget Version4.7.6 / 5.0.6 => 4.7.6 / 5.0.6
2013-05-23 07:52svetlanaTarget Version => 4.7.6 / 5.0.6
2013-06-12 17:09svetlanaTarget Version4.7.6 / 5.0.6 => 4.7.7 / 5.0.7
2013-07-08 13:09b.hasisNote Added: 0008881
2013-07-08 16:34FibreFoXIssue Monitored: FibreFoX
2013-07-09 12:20rayNote Added: 0008884
2013-07-16 10:47mantas.vaitkunasTarget Version4.7.7 / 5.0.7 => 4.7.7 / 5.0.7
2013-08-09 09:31Linas KukulskisTarget Version4.7.7 / 5.0.7 => 4.7.8 / 5.0.8
2013-09-12 16:01svetlanaTarget Version4.7.8 / 5.0.8 => 4.7.9 / 5.0.9
2013-10-18 13:35releaseTarget Version4.7.9 / 5.0.9 => 4.7.10 / 5.0.10
2013-12-11 13:31saulius.stasiukaitisRelationship addedrelated to 0005270
2013-12-11 13:37saulius.stasiukaitisRelationship addedchild of 0004942
2013-12-11 13:47saulius.stasiukaitisRelationship addedchild of 0004866
2013-12-16 16:57svetlanaTarget Version4.7.10 / 5.0.10 => 4.7.11 / 5.0.11
2014-01-07 11:54Linas KukulskisRelationship deletedchild of 0004866
2014-01-07 11:54Linas KukulskisRelationship addedhas duplicate 0004866
2014-01-07 12:07Linas KukulskisAssigned To => Linas Kukulskis
2014-01-07 12:07Linas KukulskisStatusconfirmed => assigned
2014-01-09 15:33Linas KukulskisNote Added: 0009398
2014-01-09 15:33Linas KukulskisStatusassigned => resolved
2014-01-09 15:33Linas KukulskisFixed in Version => 4.7.11 / 5.0.11
2014-01-09 15:33Linas KukulskisResolutionopen => fixed

Notes
(0006665)
dainius.bigelis   
2012-05-22 10:11   
The module handling functionality will be improved for more detailed handling of module entries into DB. Currently it just checks if there are any entries for this module in i.e. oxtplblocks table and if there are - does not insert new entries on module activation.
So for now as workaround - you need just delete entries with your module ID from oxtplblocks table and Activate module once again (then it will insert latest entries from metadata file).
We will implement more detailed check for those entries in DB in one of soonest eShop versions.
(0007041)
cata.vancea   
2012-07-02 17:02   
Yes, the only solution for fixing it is to remove entries manually from oxtplblocks and reactivate the modules
(0008881)
b.hasis   
2013-07-08 13:09   
Hi people,

so, at the moment i get sick by
executing "delete from oxtplblocks where OXMODULE = 'module_id'".

So, if you only want to press deactivate / active to refresh the Blocks of the module, do this:

go to oxmodule::activate() at make this:

            $this->_addTemplateBlocks( $this->getInfo("blocks") );

            // checking if module has tpl blocks and they are installed
            /*if ( !$this->_hasInstalledTemplateBlocks($sModuleId) ) {
                // installing module blocks
                $this->_addTemplateBlocks( $this->getInfo("blocks") );
            } else {
                //activate oxblocks
                $this->_changeBlockStatus( $sModuleId, "1" );
            }*/
Than go to oxmodule::_addTemplateBlocks() and add this

$oDb->execute("DELETE FROM oxtplblocks WHERE OXMODULE = '{$sModuleId}' and OXSHOPID = '{$sShopId}'"); after
$oDb = oxDb::getDb();

But you will lose your oxpos for the blocks.
(0008884)
ray   
2013-07-09 12:20   
there is a nice module available including the needed function to delete oxtplblocks:

http://vanilla-thunder.github.io/vt-devutils/ [^]
(0009398)
Linas Kukulskis   
2014-01-09 15:33   
on deactivation all block will be removed from db