Parse error: syntax error, unexpected $end

Joomla version 1.5 is end-of-life and are no longer supported. Please use Joomla 3.x instead.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
ashley1493
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Wed Oct 22, 2014 5:37 pm

Parse error: syntax error, unexpected $end

Post by ashley1493 » Fri Dec 26, 2014 6:10 pm

Hello,

I am trying to create a development site on my computer using wamp server and when I tried to click my project I got this error:

Parse error: syntax error, unexpected $end in C:\wamp\www\crmscom_dev\modules\mod_mainmenu\helper.php on line 445

From what I have read, this error most likely might be a syntax but I can't figure out what is missing because line 445 is the end of the file. Can someone please help me figure out where the error might be?

Thank you!

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30940
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Parse error: syntax error, unexpected $end

Post by Per Yngve Berg » Fri Dec 26, 2014 7:42 pm

The file may got truncated.

Are you running 1.5.26 and what version of php do you have?

ashley1493
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Wed Oct 22, 2014 5:37 pm

Re: Parse error: syntax error, unexpected $end

Post by ashley1493 » Fri Dec 26, 2014 7:45 pm

My company is still using joomla 1.5.17 I believe and I am trying to upgrade it to 1.5.26 but I want to see how the upgrade is going to look with the development site first. I am using php version 5.3.13 because I was having a problem running the development site with the most recent version of wamp and php.

ashley1493
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Wed Oct 22, 2014 5:37 pm

Re: Parse error: syntax error, unexpected $end

Post by ashley1493 » Fri Dec 26, 2014 7:52 pm

I also tried to upload the file to my computer again from ftp just in case the file may have been corrupted from the original transfer but it's still showing the same error.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30940
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Parse error: syntax error, unexpected $end

Post by Per Yngve Berg » Sat Dec 27, 2014 8:58 am

Do the update to 1.5.26 and see if the site starts to work.

http://joomlacode.org/gf/download/frsre ... ackage.zip

Unzip the Package and upload to the site. It will not change the look of your site, unless you have modified core files.

The file in the 1.5.26 Package is different.

ashley1493
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Wed Oct 22, 2014 5:37 pm

Re: Parse error: syntax error, unexpected $end

Post by ashley1493 » Mon Dec 29, 2014 5:42 pm

I was actually able to get my development site to work with the upgraded files. Two of the files were corrupted which was why I was getting the error. I upgraded to 1.5.26 and hid the module that was corrupted. Was able to get my development site running. Now to fix the issue with my corrupted files :( but thanks for your help!


Locked

Return to “Migrating and Upgrading to Joomla! 1.5”