Can anyone tell me why the following maybe failing now where previously it worked?
global $modx;
require_once '/home/public_html/config.core.php';
require_once MODX_CORE_PATH.'model/modx/modx.class.php';
$modx = new modX();
$modx->initialize('web');
$modx->getService('error','error.modError');
$siteStartId = $modx->getOption('site_start');
$modx->resource = $modx->getObject('modResource',$modx->getOption('site_start'));
$modx->user = $modx->getObject('modUser',1);
I have a site which uses lime survey and have integrated Wayfinder calls into the header and footer of the template. The header still works but the page gets stuck afterwards with the following error message:
Fatal error: Cannot redeclare class modTemplateVarOutputRenderDefault in /home/public_html/core/model/modx/processors/element/tv/renders/web/output/default.class.php on line 16
So I guess the class has already been declared somewhere else. Should I be calling Modx differently or should I be looking in my setup elsewhere?
Thanks in advance for any help with this.