Topic-icon Parse error: syntax error, unexpected T_STRING!

Active Subscriptions:

None
14 years 4 months ago #18814 by Walker
Hey,

I am getting this error when trying to load my site..

Parse error: syntax error, unexpected T_STRING in /home/caseprac/public_html/upload/administrator/components/com_jlinked/assets/linkedin/linkedin_3.1.1.php on line 1

I read previous suggestions on php version, but I my hosts php version is 5.3.8!
This was working on localhost, but have ported it to an online host. (Yes, all config.php settings for the joomla site are correct, database is connected etc!)

Any help is much appreciated.
The topic has been locked.
Support Specialist
14 years 4 months ago #18820 by alzander
Walker,
The issue isn't your PHP, it looks like the file's encoding itself which could cause problems on some hosts. If you're on a Linux server and have access to SSH (command line), can you go to the directory specified above and run the following command:
dos2unix linkedin_3.1.1.php linkedin_3.1.1.php
That will hopefully clear up the formatting.

If you can't do that (no SSH, not on Linux, no clue what I'm talking about, etc), let me know.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 4 months ago #18852 by Walker
Thanks Alzander,

Read and understood what you said, but fixed before I got back here. A simple component reinstall is all that was needed.. which would have effectively done the same as dos2unix... although I am dev'ing on a mac..

I feel the number 1 problem with joomla sites is the platforms / apps / interoperability is continually changing, like... daily. I find running joomla with 4-5 components, you are updating, troubleshooting, debugging, RE-integrating at least once a week.. (Completely off-topic!)

Thanks again, as always sourcecoast is a leader in support.

walker
The topic has been locked.
Support Specialist
14 years 4 months ago #18853 by alzander
Walker,
Glad to hear you got it. We'll be fixing the encoding on that file with the next release so a simple transfer should work and reinstall won't be necessary.

As for updating, we definitely understand. We try to keep updates to a minimum outside of 'big' feature updates every 3 months or so (which no one really complains too much about). We test heavily to try to prevent constant bug-fixes.. though some always can slip through.

Anyways, no problem for our support. Thank you for subscribing and supporting us! If you haven't already, please consider leaving a rating and review for JLinked on the Joomla Extension Directory. It's certainly not required, but very appreciated:
extensions.joomla.org/extensions/access-...on-cloud-based/18957

Thanks, and good luck with your site,
Alex
The topic has been locked.