Saturday, 21 February 2009 03:40

Fix for: Parse error: syntax error, unexpected $end in

Written by 
Rate this item
(0 votes)

One of my clients asked me to debug his site, because when php5 is enabled from the control panel the site does not show anything, just white pages!

The site was built using Joomla! 1.5, so I enabled debugging mode and set the error reporting level to maximum to know what is the problem.

Then this error was displayed when opening any page:

Parse error: syntax error, unexpected $end in filename:lineno

it was the index.php file of the template, and after some debugging I found that the problem is the using of short php tags, like this:
<?
The server was not configured to allow short tags.
For maximum compatibility, it is preferred to use full tags, like this:
<?php
Hope this help you all!
Read 36766 times Last modified on Wednesday, 22 February 2012 22:25

13 comments

  • Comment Link Friday, 01 October 2010 17:30 posted by

    i have checked everything still the same problem .

  • Comment Link Saturday, 21 August 2010 08:01 posted by

    THANK YOU VERY VERY MUCH..! IT REALLY HELPED ME ALSO ... :-)

    I was stuck to this problem from yesterday.

  • Comment Link Friday, 20 August 2010 08:52 posted by

    Thanks, it helped me a lot!

Login to post comments