Geting this error on an upgrade & need to fix!!
Fatal error: Call to a member function log() on a non-object in /home/canad036/public_html/core/cache/includes/elements/modplugin/12.include.cache.php on line 18
the content of the cache file is:
<?php
function elements_modplugin_12($scriptProperties= array()) {
global $modx;
if (is_array($scriptProperties)) {
extract($scriptProperties, EXTR_SKIP);
}
//$modx->log(modX::LOG_LEVEL_ERROR, 'email = '.$user->get('email'));
//$modx->setPlaceholder('myPlaceholder', 'this is my placeholder data'.$ext);
$eventname = $modx->event->name;
$modx->log(modX::LOG_LEVEL_ERROR,'System event running = ' . $eventname);
}
no errors in the log, any ideas?
*** Not just websites, we also create signage, banners, print, trade show displays and more! ***
Sean Kimball CLP, CLS.
Technical Director / Sr. Developer | BigBlock Studios
._______________________________________________.
Bigblock Studios
http://www.bigblockstudios.ca Web site design & development.
27-1300 King Street East. Box 167 Oshawa, Ontario L1H8J4 Canada.
phone/fax: 905-426-5525
It means the $modx object is not getting instantiated. It might be a bad path or URL in core/config/config.inc.php or in one of the three config.core.php files (root, manager/includes, connectors).
I assume you've tried deleting all files and the core/cache directory and clearing you browser cache and cookies.
Quote from: BobRay at Jun 25, 2013, 02:11 AMIt means the $modx object is not getting instantiated. It might be a bad path or URL in core/config/config.inc.php or in one of the three config.core.php files (root, manager/includes, connectors).
I assume you've tried deleting all files and the core/cache directory and clearing you browser cache and cookies.
Yes - been through all that & checked the paths, no dice.
I'm jumping a couple of versions - so I think I will try an incremental update next.
*** Not just websites, we also create signage, banners, print, trade show displays and more! ***
Sean Kimball CLP, CLS.
Technical Director / Sr. Developer | BigBlock Studios
._______________________________________________.
Bigblock Studios
http://www.bigblockstudios.ca Web site design & development.
27-1300 King Street East. Box 167 Oshawa, Ontario L1H8J4 Canada.
phone/fax: 905-426-5525
Still no luck - is there anyway to run the setup in debug mode or something?
*** Not just websites, we also create signage, banners, print, trade show displays and more! ***
Sean Kimball CLP, CLS.
Technical Director / Sr. Developer | BigBlock Studios
._______________________________________________.
Bigblock Studios
http://www.bigblockstudios.ca Web site design & development.
27-1300 King Street East. Box 167 Oshawa, Ontario L1H8J4 Canada.
phone/fax: 905-426-5525
I'm an idiot. Just disable that plugin in the DB in the modx_site_plugins table, then run setup again.
Let me know what plugin 12 is in case its one of mine.
Interesting - it looks like maybe a testing plugin or something that just logs the current running event .... definitely not one of yours and obviously not actually doing anything useful.
*disabled*
well, the update worked but now I'm getting these:
Fatal error: Call to a member function getOption() on a non-object in /home/canad036/public_html/core/xpdo/om/xpdoobject.class.php on line 692
Quote from: BobRay at Jun 25, 2013, 07:18 PMI'm an idiot. Just disable that plugin in the DB in the modx_site_plugins table, then run setup again.
Let me know what plugin 12 is in case its one of mine.
*** Not just websites, we also create signage, banners, print, trade show displays and more! ***
Sean Kimball CLP, CLS.
Technical Director / Sr. Developer | BigBlock Studios
._______________________________________________.
Bigblock Studios
http://www.bigblockstudios.ca Web site design & development.
27-1300 King Street East. Box 167 Oshawa, Ontario L1H8J4 Canada.
phone/fax: 905-426-5525
That means the xPDO object is not instantiated, but I have no idea how that could happen other than maybe a corrupted or missing file in the update or something stuck in the MODX or browser cache.
Hey Sean did you ever figure out why you were getting that fatal error:
Fatal error: Call to a member function getOption() on a non-object in /home/canad036/public_html/core/xpdo/om/xpdoobject.class.php on line 692
I am having the same problem.
The pdo extensions are enabled on most hosts but the date/timezone think is a common issue. Did you try setting the MODX date_timezone System Setting to Australia/Perth?