PHPBB Parse error: syntax error, unexpected '}' overall_header.html.php

290 views Asked by At

Hi my problem is that I am getting this error here on ym PHPBB3 website

Parse error: syntax error, unexpected '}' in /public_html/cache/tpl_anami_overall_header.html.php on line 309

It happened when I installed a mod onto PHPBB3 and it suddenly became like this.

Notes: (Things that didn't work for me)

  1. I have tried deleting the files off the cache
  2. I have tried restoring backups of previous dates

Also would my forum data such as posts, forums and topics be deleted if I would reinstall a new version of PHPBB3 into my directory with the same sql database? If this is possible, I would just reinstall phpbb instead

Thanks

3

There are 3 answers

0
vvondra On

The cache file is generated from styles/anami/templates/overall_header.html.

Open the cache file and look at line 309, find the matching line in the file above and fix the syntax error on that line, then clear the cache.

0
Riad On

Actually this is very simple error you are talking about. This should be solved by yourself. Use PHP Syntax Checker or other tools for this.

0
Eeji On

in a text editor open styles/anami/templates/overall_header.html and check every <-- IF xxx --> and <!-- BEGIN xxx --> statement opens and closes correctly. You may find you have one too many <!-- ENDIF --> or <!-- END xxx -->