Code: Select all
PHP Fatal error: Uncaught Twig\Error\SyntaxError: Unexpected end of template. in /home/Main_DB/domains/%domain%/public_html/styles/prosilver/template/overall_header.html:132
Stack trace:
#0 /home/Main_DB/domains/%domain%/public_html/vendor/twig/twig/src/TokenParser/IfTokenParser.php(47): Twig\TokenStream->next()
#1 /home/Main_DB/domains/%domain%/public_html/vendor/twig/twig/src/Parser.php(209): Twig\TokenParser\IfTokenParser->parse(Object(Twig\Token))
#2 /home/Main_DB/domains/%domain%/public_html/vendor/twig/twig/src/Parser.php(122): Twig\Parser->subparse(NULL, false)
#3 /home/Main_DB/domains/%domain%/public_html/vendor/twig/twig/src/Environment.php(735): Twig\Parser->parse(Object(Twig\TokenStream))
#4 /home/Main_DB/domains/%domain%/public_html/vendor/twig/twig/src/Environment.php(793): Twig\Environment->parse(Object(Twig\TokenStream))
#5 /home/Main_DB/domains/%domain%/public_html/vendor/twig/twig/src/Environment.php(482): Twig\Environment->compileSource(Object(Twig\Source))
#6 /home/Main_DB/dom in /home/Main_DB/domains/%domain%/public_html/styles/prosilver/template/overall_header.html on line 132
What did you use to edit the file? Most likely you did not save the file in the correct format.
I just noticed this: you should put the original .htaccess and index.htm back. (adding a _ to the filename defeats their purpose and could pose a security risk.
What david63 implies is that some editors (such as Windows Notepad) will mess up the files.
It would have been, but I'm guessing, either the editor built into my sFTP tool or by edited the file directly on the site's file system through the browser. I'd lean on the later, since they have easy dropdown tools for copying and renaming files.
You should feel confident : even though something went wrong somewhere at some time, your backup strategy made a full recovery possible