I had a custom theme, lost some files to a battle with a hacker, and now the pages that use that theme are down. The error persists despite upgrades and theme changes. Here is some output: it breaks at line “include this template” Thanks for any help, no matter how weird!
/updates/concrete-cms-9.2.7/concrete/src/Block/View/BlockView.php
$app = Application::getFacadeApplication();
// If you hook into this event and use `preventRendering()`,
// you can prevent the block from being displayed.
$event = new BlockBeforeRender($this->block);
$app->make('director')->dispatch('on_block_before_render', $event);
return $event->proceed();
};
if (!$shouldRender()) {
return;
}
unset($shouldRender);
extract($scopeItems);
if (!$this->outputContent) {
ob_start();
include $this->template;
$this->outputContent = ob_get_contents();
ob_end_clean();
}
// In case the view changes any scope items, the block header/footer
// could break without extracting the scope items again. This can happen
// if the block view changes any local variables such as the `$b`
// variable which is possible as they can be user defined.
extract($scopeItems);
// The translatable texts in the block header/footer need to be printed
// out in the system language.
$loc = Localization::getInstance();
$loc->pushActiveContext(Localization::CONTEXT_UI);
if ($this->blockViewHeaderFile) {
include $this->blockViewHeaderFile;
}
$this->controller->registerViewAssets($this->outputContent);
Arguments
- “Path cannot be empty”