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 = oxRegistry::getConfig(); /*Commented out to stop maintenance temporarily*/ // executing maintenance tasks.. //oxNew( "oxmaintenance" )->execute(); // closing page, writing cache and so on.. $myConfig->pageClose(); In bin/cron.php will trigger this error onscreen. I think oxconfig could be initialized in oxregistry::getConfig Regards, Frank Zunderer Zunderer IT Beratung Waldstr. 22 82205 Gilching 08105-777250 0173-8362768 [email protected] Von: [email protected] [mailto:[email protected]] Im Auftrag von Clemens Sahs Gesendet: Dienstag, 15. Juli 2014 17:50 An: [email protected] Betreff: Re: [oxid-dev-general] Mysterious error: Call to a member function pageClose() on a non-object moin Maximilian, On my the first examination you overwrite the original file, the original line is 650. https://github.com/OXID-eSales/oxideshop_ce/blob/v4.8.6/source/core/oxconfig .php#L650 In the case that you overwrite important lines, this that can be the source of you problem. In the case that you overload the oxconfig::init function with a custom module you need a parent::init() call hope this help you Best regards, clemens Am 15.07.2014 um 17:32 schrieb Maximilian Walter <[email protected]>: 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 errors. I'm also not able to reproduce it, although they appear quite frequently. I checked the access-log and didn't found anything suspicious, only status-code 200 and no requests to offline.html. Has anybody experience with an similar problem? We use OXID Professional Edition 4.8.6 with some custom modules. Thanks in advance. Best regards, Maximilian _______________________________________________ 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
