I get this error when I installed a tracking script:
( ! ) Parse error: syntax error, unexpected end of file in /var/www/track.freemerchandiseblog.com/htdocs/202-config/functions.php on line 189 Call Stack
I tried installing the same script on my shared hosting at hostgator and it installed perfectly.
I am running on Ubuntu 14.04, and LEMP installed with EasyEngine installation script found at rtcamp.com/easyengine
Can anyone help me out with what this error is about and how I can fix it?
Thanks so much.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
This error is because you are using <? instead of <?php tag. Correct the php opening tag and it will work!
If I remember correctly, unexpected End of File in PHP can be caused by a mis-placed semicolon (;). <br> <br>It’s a pain, but check through the code to make sure that every statement is ended correctly, and that all if and while statements are correctly terminated (make sure there isn’t a stray closing bracket } that doesn’t pair up). <br> <br>Something like PHPLinter may help with this.
Ubuntu 14.04 is running PHP 5.5. Perhaps the script isn’t compatible? Are there any listed system requirements for the software? If you need an older version of PHP, you can try Ubuntu 12.04.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.