[oxid-dev-general] Mysterious error: Call to a member function pageClose() on a non-object

2014-07-15 Thread Maximilian Walter
Hello everybody, I noticed today the following PHP-error in the log-files [Tue Jul 15 16:03:02 2014] [error] [client x.x.x.x] PHP Fatal error: Call to a member function pageClose() on a non-object in /path/to/core/oxconfig.php on line 642, referer: http://example.com/ I can't explain the

Re: [oxid-dev-general] Mysterious error: Call to a member function pageClose() on a non-object

2014-07-15 Thread Frank Zunderer
Hi All, oxconfig::init() is only called in oxconfig::getConfigParam, which looks a bit arbitrary. If you don't use getConfigParam, oxconfig is not initialized. For example this code: require_once dirname(__FILE__) . /../bootstrap.php; // initializes singleton config class $myConfig =

Re: [oxid-dev-general] Mysterious error: Call to a member function pageClose() on a non-object

2014-07-15 Thread Maximilian Walter
Hi all, thanks for your suggestions. I finally found the problem, which was surprisingly not related to oxConfig or oxShopControl. I use a custom module to decode the SEO-URL, which uses the following query: $oDb-select(select oxstdurl, oxlang from oxseo where oxseourl= . $oDb-quote(