Sudden twig errors

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
CheGuevara
Registered User
Posts: 57
Joined: Wed Mar 15, 2006 11:04 am

Sudden twig errors

Post by CheGuevara »

Hi,

Hoping someone can help me with this sudden issue. Went to sleep forum was fine. Over night without anyone touching anything it suddenly broke. Here are the errors from server log:
Feb 16 13:10:45 server in: PHP Fatal error: Uncaught Twig_Error_Syntax: Unknown "endif" tag in "viewtopic_body.html" at line 6. in /home/[del]admin/domains/[del].com/public_html/forum/vendor/twig/twig/lib/Twig/Parser.php:178#012Stack trace:#012#0 /home/[del]admin/domains/[del].com/public_html/forum/vendor/twig/twig/lib/Twig/Parser.php(100): Twig_Parser->subparse(NULL, false)#012#1 /home/[del]admin/domains/[del].com/public_html/forum/vendor/twig/twig/lib/Twig/Environment.php(619): Twig_Parser->parse(Object(Twig_TokenStream))#012#2 /home/[del]admin/domains/[del].com/public_html/forum/vendor/twig/twig/lib/Twig/Environment.php(671): Twig_Environment->parse(Object(Twig_TokenStream))#012#3 /home/[del]admin/domains/[del].com/public_html/forum/vendor/twig/twig/lib/Twig/Environment.php(396): Twig_Environment->compileSource('<!-- INCLUDE ov...', 'viewtopic_body....')#012#4 /home/[del]admin/domains/[del].com/public_html/forum/phpbb/template/twig/environment.php(243): Twig_Environment->loadTemplate('viewtopic_body....', NULL)#012#5 /home in /home/[del]admin/domains/[del].com/public_html/forum/vendor/twig/twig/lib/Twig/Parser.php on line 178
Feb 16 13:10:45 server in: PHP Fatal error: Uncaught Twig_Error_Syntax: Unknown "endif" tag in "viewforum_body.html" at line 8. in /home/[del]admin/domains/[del].com/public_html/forum/vendor/twig/twig/lib/Twig/Parser.php:178#012Stack trace:#012#0 /home/[del]admin/domains/[del].com/public_html/forum/vendor/twig/twig/lib/Twig/Parser.php(100): Twig_Parser->subparse(NULL, false)#012#1 /home/[del]admin/domains/[del].com/public_html/forum/vendor/twig/twig/lib/Twig/Environment.php(619): Twig_Parser->parse(Object(Twig_TokenStream))#012#2 /home/[del]admin/domains/[del].com/public_html/forum/vendor/twig/twig/lib/Twig/Environment.php(671): Twig_Environment->parse(Object(Twig_TokenStream))#012#3 /home/[del]admin/domains/[del].com/public_html/forum/vendor/twig/twig/lib/Twig/Environment.php(396): Twig_Environment->compileSource('<!-- INCLUDE ov...', 'viewforum_body....')#012#4 /home/[del]admin/domains/[del].com/public_html/forum/phpbb/template/twig/environment.php(243): Twig_Environment->loadTemplate('viewforum_body....', NULL)#012#5 /home in /home/[del]admin/domains/[del].com/public_html/forum/vendor/twig/twig/lib/Twig/Parser.php on line 178
Any ideas?
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53412
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Sudden twig errors

Post by Brf »

CheGuevara wrote: Thu Feb 16, 2017 11:14 am Unknown "endif" tag in "viewtopic_body.html" at line 6.
It says there is an error in viewtopic_body.html
CheGuevara
Registered User
Posts: 57
Joined: Wed Mar 15, 2006 11:04 am

Re: Sudden twig errors

Post by CheGuevara »

I can see that. I haven't touched the file, but before posting I made sure I deleted the file and uploaded from phpBB archive.
Line 8 is

<!-- IF FORUM_DESC --><div style="display: none !important;">{FORUM_DESC}<br /></div><!-- ENDIF -->
User avatar
RMcGirr83
Former Team Member
Posts: 22016
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Sudden twig errors

Post by RMcGirr83 »

After uploading the file, purge the cache.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
CheGuevara
Registered User
Posts: 57
Joined: Wed Mar 15, 2006 11:04 am

Re: Sudden twig errors

Post by CheGuevara »

I have done that numerous times, board still doesn't work.
Post Reply

Return to “[3.2.x] Support Forum”