commerce_line_item.module on line 521

I am trying to install the clean demo on my server.

Followed the steps in the instructions.

  1. Create a new database in your phpmyadmin/cPanel tools and create database user.
  2. Import the supplied file (located in Packages folder in your package) into this database.
  3. Upload the "demo" folder to your server. In most cases you will unpack it under the public_html folder, www root folder (windows hosting) or the root folder of your server.
  4. Change the database info in sites/default/settings.php to match the database name, user and password for your new created database.

I got stuck now, because I can't access that website to login, customize, etc.

All I get is this message:

Parse error: syntax error, unexpected $end in /home/content/92/12642692/html/ftkSplash1/sites/all/modules/commerce/modules/line_item/commerce_line_item.module on line 521


The error message appears look like you are using php 5.3 or lower. Please check and upgrade php to 5.4 or highter.

thanks for quick reply, you were part right, server was indeed running 5.3.

However, updating to 5.4 didn't make any difference. I am still having the same message:

Parse error: syntax error, unexpected end of file in /home/content/92/12642692/html/ftkSplash1/sites/all/modules/commerce/modules/line_item/commerce_line_item.module on line 521

I tried different times to install the demo, but all I got is more errors. like this one.

Warning: Unterminated comment starting line 520 in /home/content/92/12642692/html/ftkDemo/sites/all/modules/flag/includes/flag/ on line 520

Parse error: syntax error, unexpected end of file, expecting function (T_FUNCTION) in /home/content/92/12642692/html/ftkDemo/sites/all/modules/flag/includes/flag/ on line 542


I identified the problem. 

The ftp file transffer manager (FileZilla) was cutting some of the files short.

I am using a different FTP transfer manager and works fine.

Thank you.