Skip to content

Instantly share code, notes, and snippets.

@pepebe
Created November 5, 2013 12:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pepebe/7318178 to your computer and use it in GitHub Desktop.
Save pepebe/7318178 to your computer and use it in GitHub Desktop.
Fix fatal error:
<?php
/*
Quick fix for this problem until I have the time to look for the cause.
"Fatal Error: Cannot redeclare class modTemplateVarInputRenderText...
...in core/model/modx/processors/element/tv/renders/mgr/input/text.class.php onl line 10"
*/
/**
* @package modx
* @subpackage processors.element.tv.renders.mgr.input
*/
if (! class_exists('modTemplateVarInputRenderText')) {
class modTemplateVarInputRenderText extends modTemplateVarInputRender {
public function getTemplate() {
return 'element/tv/renders/input/textbox.tpl';
}
}
}
return 'modTemplateVarInputRenderText';
@jaygilmore
Copy link

Did you ever find the cause of this @pepebe?

@robindarlington
Copy link

I have the same issue, and am also using this fix. No idea what the cause is however.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment