Follow Us
Contribute
  • Register

Parse Error: syntax error, unexpected $end in (X).php on line (X)

+1 vote
This error message is seen in the error.log file of Apache Web Server. The error is mainly caused by the short open tags of a php file.
requested 1 year ago by errorbase (169,970 points)
edited 1 year ago by onur

1 Solution

+1 vote

If you are using short open tags and you do not enable them in php.ini file then you'll receive this error message. You can change this option from php.ini file. php.ini file is located in the php installation folder.

  1. Open php.ini file.
  2. Find short_open_tag
  3. Change it to short_open_tag = On
  4. Restart web server.
solved 1 year ago by errorbase (169,970 points)
edited 1 year ago by onur

Related errors

0 votes
0 solutions
+1 vote
1 solution
requested 1 year ago by errorbase (169,970 points)