We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2850
    • 23 Posts
    Hello all,

    one year ago i made a website using ModX Revolution 2.1.5.-pl.
    Everything was working fine, but now (without making any changes - except the owner of the site made content changes) when i try to login to manager
    I get HTTP 500 (Internal Server Error).

    I tried to do reinstall, but the problem still persist. When i open the error log, the only thing i can see is:

    PHP Fatal error:  Uncaught exception 'Exception' with message 'Unexpected input at line36: <' in /web/core/model/smarty/sysplugins/smarty_internal_templatelexer.php:201
    Stack trace:
    #0 /web/core/model/smarty/sysplugins/smarty_internal_templatelexer.php(111): Smarty_Internal_Templatelexer->yylex1()
    #1 /web/core/model/smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(49): Smarty_Internal_Templatelexer->yylex()
    #2 /web/core/model/smarty/sysplugins/smarty_internal_templatecompilerbase.php(82): Smarty_Internal_SmartyTemplateCompiler->doCompile('<!DOCTYPE html ...')
    #3 /web/core/model/smarty/sysplugins/smarty_internal_template.php(259): Smarty_Internal_TemplateCompilerBase->compileTemplate(Object(Smarty_Internal_Template))
    #4 /web/core/model/smarty/sysplugins/smarty_internal_template.php(412): Smarty_Internal_Template->compileTemplat in /web/core/model/smarty/sysplugins/smarty_internal_templatelexer.php on line 201


    Can somebody help me out ? Thanks in advance.

    This question has been answered by lokamaya. See the first response.

    • discuss.answer
      • 17403 ☆ A M B ☆
      • 183 Posts
      There is similar topic on Smarty forum here http://www.smarty.net/forums/viewtopic.php?p=66366.

      Clear the cache manually by removing all files and folders inside core/cache/.

      And as U. Tews suggested in Smarty forum, add below line of code at the top of index.php (or into core/config/config.inc.php)

      ini_set('pcre.backtrack_limit', -1); 
      [ed. note: lokamaya last edited this post 13 years, 10 months ago.]
        zaenal.lokamaya
        • 2850
        • 23 Posts
        Hey, did it and it seems it works fine....

        Thanks very much Lokamaya wink