Good day! Please help me with an error on the site

header.php on line 248

After manipulating the code, the site became unavailable and began to issue such an error. Tell me where to look?

</table> </td> <td rowspan="2" background="/bitrix/templates/digisnew/images/tbl_news_right.jpg" width="5">&nbsp;</td> </tr> <tr> <td width="100%"> <table border="0" width="100%" height="100%" cellpadding="5" cellspacing="5"> <tr> <td> <? } ?> <?if ($IS_MAIN_PAGE != "true") {?> </td> </tr> </table> </td> <td></td><?}?>#WORK_AREA# <?if ($IS_MAIN_PAGE != "true") {?> <tr> <td height="5"><img border="0" sr 

Here is the code snippet. Obviously, the error is at the very end, since the PHP file cannot end like this!

  • one
    It's simple - on line 248 of the file header.php - Maksym Prus
  • In general, it was not bad to write a part of the code where an error is possible and the type of error that is specified in the error message. Then there is a chance to suggest the right decision. - Maksym Prus
  • And what of this - line 248? If this is the very end of the file, then your deeds are bad: you cut the file and now you have to restore it. - ling
  • What type of error? - Maksym Prus
  • error message Parse error: syntax error, unexpected $ end "file address" /header.php on line 248 - feitletrun

2 answers 2

 <?if ($IS_MAIN_PAGE != "true") {?> 

The code is not closed, not enough <?}?>

And show the full error code, there are not psychics.

unexpected $end means that the bracket is not closed after the condition. Close it as I described above.

    In general, there is very little information, but I will allow myself to put on a telepathic helmet and try to answer.


    I'm afraid that the site is edited directly from the site itself. As a result, open the admin panel (something tells me that it is WordPress) and return everything as it was not possible.

    If all this is true, then there is only one way out: Surely access to the site is via ftp or ssh. Therefore, you need to go to the site and fix this file.