Hi Guys,

not absolutely right, Gernot. You do not need arrays except extend - at least 
an empty instance of that array must be there.

Kevin, you find a full documentation of the metadata-stuff here: 
http://wiki.oxidforge.org/Features/Extension_metadata_file

Mandatory fields

The list of fields that are mandatory for metadata file:
metadata version
id
title
extend
files (if module has any php files which are used only in module, and does not 
extends shop classes)
blocks (if module has any templates blocks)
settings (if module has any settings)

So there seems to be everything, that is needed, but maybe something in the DB 
is messed up?
Try the following steps to clear all module-configuration:
clear your tmp-folder
open your DB and execute the following sql appended at the end of the Mail
reactivate your modules (all are deactivated, except invoicepdf)

The SQL wipes out all module-stuff from the config-table. Clearing tmp is 
necessary, because some of the values are cached. IMPORTANT: Do not open any 
shop-/admin-page before having done all 3 steps!

SQL for DB-cleaning:
    DELETE FROM `oxconfig` WHERE `oxconfig`.`OXVARNAME` = 'aModules' LIMIT 1;
    DELETE FROM `oxconfig` WHERE `oxconfig`.`OXVARNAME` = 'aLegacyModules' 
LIMIT 1;
    DELETE FROM `oxconfig` WHERE `oxconfig`.`OXVARNAME` = 'aDisabledModules' 
LIMIT 1;
    DELETE FROM `oxconfig` WHERE `oxconfig`.`OXVARNAME` = 'aModulePaths' LIMIT 
1;
    DELETE FROM `oxconfig` WHERE `oxconfig`.`OXVARNAME` = 'aModuleFiles' LIMIT 
1;
    DELETE FROM `oxconfig` WHERE `oxconfig`.`OXVARNAME` = 'aModuleTemplates' 
LIMIT 1;
    REPLACE INTO `oxconfig` 
(OXID,OXSHOPID,OXMODULE,OXVARNAME,OXVARTYPE,OXVARVALUE) 
VALUES('8563fba1c3938c994.40718405', 'oxbaseshop', '', 'aModules', 'aarr', 
0x4dba322c774f5444a5777125d61918a96e9e65e1b8fba2e9f6f8ff4e240b745241e4b01edd9224c81f3020f58a2d);

// only needed, if you have settings in metadata    
// replace [MODULENAME] with the id-value from the metadata.php
    DELETE FROM `oxconfig` WHERE `oxmodule` = 'module:[MODULENAME]';

Mit freundlichem Gruß,

Kai Gazmaga




Am 01.08.2013 um 13:30 schrieb Gernot Payer <[email protected]>:

> Hi Matthias,
> 
> your metadata.php ist missing some entries. Unfortunately you have to include 
> all of them ('files'. 'extend', 'templates', 'blocks', 'events', 'settings') 
> even if they are empty.
> 
> If entries are missing then you won't be able to activate the module. Yes, 
> the non-existent error message does not help.
> 
> Good luck!
> 
> Gernot
> ________________________________________
> Von: [email protected] 
> <[email protected]> im Auftrag von Matthias Kluth 
> <[email protected]>
> Gesendet: Donnerstag, 1. August 2013 12:58
> An: [email protected]
> Betreff: Re: [oxid-dev-general] Oxid Vendor folder
> 
> Hi Johannes,
> 
> it looks like this:
> 
> <?php
> 
> /**
>  * comment description
>  *
>  * PHP version 5
>  *
>  * @category An/Category
>  * @package  Some/Package
>  * @author   Matthias Kluth <[email protected]>
>  * @license  http://www.example.org/license.html tba.
>  * @link     http://www.abc.de
>  */
> 
> /**
>  * Metadata version
>  */
> $sMetadataVersion = '1.1';
> 
> $aModule = array(
>     'id'        =>    'modulename',
>     'title'        =>    'Some fancy title',
>     'extend'    =>    array(
>         'erp'    =>
> 'vendorname/modulename/application/controller/someclass',
>         ),
>     );
> 
> On 01.08.2013 11:46, Johannes Ackermann wrote:
>> Hi,
>> 
>> what does your metadata.php look like?
>> 
>> 
>> --Johannes
>> 
>> -----Ursprüngliche Nachricht-----
>> Von: [email protected] 
>> [mailto:[email protected]] Im Auftrag von Matthias 
>> Kluth
>> Gesendet: Donnerstag, 1. August 2013 11:40
>> An: [email protected]
>> Betreff: [oxid-dev-general] Oxid Vendor folder
>> 
>> Good morning,
>> 
>> I'm just trying to add a new module-folder inside of a vendor folder.
>> So my setup is:
>> 
>> modules/
>> |
>> |--vendorname
>>      |--vendormetadata.php
>>      |--modulename
>>          |
>>          |--metadata.php
>> 
>> But as I want to activate it inside my oxid installation, it only shows me 
>> the vendorname as modulename and tells me: "Module has no metadata file, so 
>> for registering..."
>> 
>> So it doesn't seem to recognize my vendor folder, right?
>> Did I miss something? I guess it's just a small error, but I can't find it.
>> 
>> I really appreciate your help.
>> 
>> Have a nice day,
>> 
>> Matthias Kluth
>> _______________________________________________
>> dev-general mailing list
>> [email protected]
>> http://dir.gmane.org/gmane.comp.php.oxid.general
>> _______________________________________________
>> dev-general mailing list
>> [email protected]
>> http://dir.gmane.org/gmane.comp.php.oxid.general
> 
> _______________________________________________
> dev-general mailing list
> [email protected]
> http://dir.gmane.org/gmane.comp.php.oxid.general
> 
> 
> _______________________________________________
> dev-general mailing list
> [email protected]
> http://dir.gmane.org/gmane.comp.php.oxid.general
> 

_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

Reply via email to