We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 41049
    • 35 Posts
    After I installed some extras I got this error when I click Articles reource..

    Fatal error: include() [<a href='function.include'>function.include</a>]: Cannot redeclare class modtemplatevarinputrendertext in /home/content/57/7560357/html/metropolorg/core/model/modx/modtemplatevar.class.php on line 413

    I removed those extras (don't remember them smiley ) but stil doesen't work.
    Any ideas?

    Regards!
    Denis
      • 3749
      • 24,544 Posts
      Try manually deleting all files in the core/cache directory. The offending extras my still be stored in the cache.
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 41049
        • 35 Posts
        That was the first thing I tried to do, nothing changed. Any other ideas?
          • 3749
          • 24,544 Posts
          That class file is declared in core\model\modx\processors\element\tv\renders\mgr\input\text.class.php. The file is being included twice for some reason.

          The only thing I can think of is wrapping it like this:

          if (! class_exists('modTemplateVarInputRenderText')) {
              class modTemplateVarInputRenderText extends modTemplateVarInputRender {
                  public function getTemplate() {
                      return 'element/tv/renders/input/textbox.tpl';
                  }
              }
          }
          return 'modTemplateVarInputRenderText';


          The return might have to be just above the last } -- not sure.



            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 41049
            • 35 Posts
            BobRay - I havent had time to try this yet.

            I figured it out that I can create articles and they work, but when I include my custom ArticleContainer template I get this error. This template contain no additional TVs and code that it did before the error.