D-Mack Media Forums

Full Version: Parse error: syntax error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I have installed latest version in Version 1.5.4 and legacy 1.0.

In both the scenario, It was showing some message like…
Parse error: syntax error, unexpected $end in C:\wamp1\www\Menu4\components\com_recommendfriends\recommendfriends.php on line 608
or

Parse error: syntax error, unexpected $end in C:\wamp1\www\Menu3\components\com_recommendfriends\recommendfriends.php on line 619

Please check and let us know this message is coming…


thanks a lot in advance for your help.


rajesh
Hey rajeshatbuzz,

I had the same problem and I managed to fix it. Smile After reviewing the code the fix was rather simple.

Within recommendfriends.php located in the components/com_recommendfriends folder on or around line 567 it shows:

PHP Code:
<? 


This appears right above these few lines of code:

PHP Code:
}

/////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////  Captcha Class and Functions
/////////////////////////////////////////////////////////////////////////////////////////////////

class CaptchaSecurityImages 


Line 567 php tag is incomplete.

It should be <?php instead of <?

Therefore, your code should look like this:

PHP Code:
<?php 


Viola!!! The error should be removed and your Recommend Friends Form should now be visible.

I hope this helps you as it has helped me!

Tongue Happy coding!

Reference URL's