Welcome Guest, Not a member yet? Register   Sign In
Problem with hosting, please help!
#1

[eluser]Unknown[/eluser]
Hi everyone,
i am pretty new to CI and this is the first project i have tried uploading to my shared web hosting (with Streamline.net). i have uploaded my site (plus a test site which is just the base project of ci straight out the box) neither sites work at all. When i try to load the welcome page for either project i get this error:

Warning: Unterminated comment starting line 28 in /home/fhlinux199/s/shiftycreations.co.uk/user/htdocs/citest/index.php on line 28.

Both my projects work perfectly on my local server, so i'm a bit baffled. Can anyone help me?

Thank you.
#2

[eluser]brianw1975[/eluser]
what is on line 28?

have you done a diff between your local copy and the remote copy to verify the file is being uploaded completely?
#3

[eluser]Daniel Moore[/eluser]
If I'm not mistaken, there is a comment starting on line 28 of a standard install of CI 1.7.1 that is as follows:
Code:
/*
|---------------------------------------------------------------
| APPLICATION FOLDER NAME
|---------------------------------------------------------------
|
| If you want this front controller to use a different "application"
| folder then the default one you can set its name here. The folder
| can also be renamed or relocated anywhere on your server.
| For more info please see the user guide:
| http://ellislab.com/codeigniter/user-guide/general/managing_apps.html
|
|
| NO TRAILING SLASH!
|
*/
    $application_folder = "../application";

The initial "/*" is line 28 and starts the comment. What has happened here is that it appears for some reason the "*/" must be missing. Sounds like a file got corrupted on upload. Upload the files again and try again.
#4

[eluser]Unknown[/eluser]
hi guys,
i've sorted the problem! the files i uploaded to my hosting were corrupted, thats why it was saying that the comment had not been terminated. its stupid, i've tried so many different ftp clients and none of them seem to be able to carry out a simple upload. in the end i used a web based ftp client provided by my hosting company, and now my sites are working fine.

it was a stupid mistake to make, i should of checked the files, but just assumed that the ftp client had done its job properly. big thanks for the response from you guys, you really helped!

thanks.
#5

[eluser]brianw1975[/eluser]
[quote author="Awesome Beats" date="1238645847"]hi guys,
it was a stupid mistake to make, i should of checked the files, but just assumed that the ftp client had done its job properly. big thanks for the response from you guys, you really helped!

thanks.[/quote]

You may need to force those clients to ascii for text files. I had problems with Filezilla like that once a long while back.




Theme © iAndrew 2016 - Forum software by © MyBB