Hi,
One hint from csimon says there maybe problems with the EE-Version.
The problem is knowing the shop id, that is currently loaded by user, so as
it may be taken from the session, oxSession instance is currently loaded
first.
There was the same question posted in this list previously (2010.06.16),
with a pointer to a bug entry:
https://bugs.oxid-esales.com/view.php?id=1097
Copying the answer from my earlier reply:
---------
For now, if this class module is really needed, there is a (not really nice)
workaround to do it.
As aModules config variables is usually taken from the oxconfig table - it
is taken after loading the session.
For earlier steps this parameter may be initialized in config.inc.php:
$this->_aConfigParams['aModules'] = array('oxutilsfile' => 'module...');
Note: this parameter will get overwritten by loading oxconfig table, so you
may need to duplicate needed module entry here too in some cases.
----------
Best regards,
Sarunas
----- Original Message -----
From: "dasGollum" <[email protected]>
To: <[email protected]>
Sent: Saturday, October 09, 2010 11:58 AM
Subject: [oxid-dev-general] Load Configuration more early
Hi all,
based on this thread
http://www.oxid-esales.com/forum/showthread.php?t=6604
there are in several updates problems with modules.
Here was not possible overwriting eg. oxlang (4.4.1=>4.4.2).
So all modules which uses oxlang are not working anymore.
The solution is load the config before any other action.
Insert at end of config.inc.php:
include getShopBasePath().'core/oxconfk.php';
$this->_loadVarsFromDb( $this->getShopId(), array('aModules') );
Of course, its better in the oxconfig directly after including oxconfk.php
...
but oxconfig is a core file.
So there is a central point which loads the aModules very early from DB.
One hint from csimon says there maybe problems with the EE-Version.
So my questions:
- what problems?
- is it possible to solve these problems?
Because I like the chaining of oxid, and wanna will use it so far as
possible.
So I think, this should be in the core, if possible.
And its a really not nice, if you make a update and there moduls which
can't
work anymore.
Regards,
Markus
_______________________________________________
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