× Joomla Facebook Connect support forum

Topic-icon JFBLogin - When installed I loose my site????

Active Subscriptions:

None
14 years 11 months ago #1114 by dtott
Hi all,

When I install this module, even if it is not displayed I loose all my site. I have changed module positions and the button width quality etc. The site just goes blank. The second I uninstall it the site comes back up as working. Any ideas? I am trying to use it with JoomlArt JA Rutile template.

This is frustrating, I have a presentation Thursday where I would like to demonstrate FB and JS integration.

Thanks in advance,

Darryl :(
The topic has been locked.
Support Specialist
14 years 11 months ago #1119 by alzander
Go to Site->Global Configuration and click on the "Server" tab. Turn Error Reporting to Maximum, and reload the offending page. Any time a page goes white (with any component), there is usually a PHP error being generated. Report that error here and we should be able to help you find a solution pretty quickly.
The topic has been locked.
Active Subscriptions:

None
14 years 11 months ago #1122 by dtott
Parse error: syntax error, unexpected $end in /home/sites/studentslove.co.uk/public_html/modules/mod_jfbclogin/tmpl/default.php on line 131

There you go! Need this pretty quick as in tonight if possible???? PLEASE
The topic has been locked.
Support Specialist
14 years 11 months ago #1125 by alzander
Did you customize the login module? That error generally comes when there is an opening { without a closing } or something to that effect. The main file to check in is the mod_jfbclogin/tmpl/default.php file it's calling out.

If you can't find the issue, or if you didn't modify the login module, IM your info and I can help narrow it down quickly. I'll be checking the forums regularly the rest of the night.
The topic has been locked.
Active Subscriptions:

None
14 years 10 months ago #1345 by bonox
I ha ve this error, Why?
please help me, thanks

Parse error: syntax error, unexpected $end in /home/mysite.com/modules/mod_jfbclogin/tmpl/default.php on line 115
<?php

defined('_JEXEC') or die('Restricted access');

JFBConnectFacebookHelper&#58;&#58;init();

if ($formType == "login")
{
	if ($params->get('showLoginForm'))
	{ ?>
		<form action="<?php echo JRoute&#58;&#58;_(JURI&#58;&#58;root()); ?>" method="post" name="login" id="form-login" >
			<fieldset class="input">
			<div id="form-login-username">
				<label for="modlgn_username"><?php echo JText&#58;&#58;_('Username') ?></label><br />
				<input id="modlgn_username" type="text" name="username" class="inputbox" alt="username" size="18" />
			</div>
			<div id="form-login-password">
				<label for="modlgn_passwd"><?php echo JText&#58;&#58;_('Password') ?></label><br />
				<input id="modlgn_passwd" type="password" name="passwd" class="inputbox" size="18" alt="password" />
			</div>
			<input type="submit" name="Submit" class="button" value="<?php echo JText&#58;&#58;_('LOGIN') ?>" />
			</fieldset>

			<input type="hidden" name="option" value="com_user" />
			<input type="hidden" name="task" value="login" />
			<input type="hidden" name="return" value="<?php echo $jLoginUrl; ?>" />
			<?php echo JHTML&#58;&#58;_( 'form.token' ); ?>
		</form>
<?php }
	echo JText&#58;&#58;_('Login using Facebook'); ?></a>
	<fb&#58;login-button onlogin="javascript&#058;fb_login_button_click();"></fb&#58;login-button>
	<ul>  
		<?php
		$usersConfig = &JComponentHelper&#58;&#58;getParams( 'com_users' );
		if ($params->get('showRegisterLink')) { ?>
			<li>
				<a href="<?php echo $registerLink ?>">
				<?php echo JText&#58;&#58;_('Register For This Site'); ?></a>
			</li>
		<?php }
		if ($params->get('register_type') == "communitybuilder" && ($params->get('showForgotUsername') || $params->get('showForgotPassword')))
		{ ?>
				<li>
					<a href="<?php echo $forgotLink ?>">
					<?php echo JText&#58;&#58;_('Forgot Login?'); ?></a>
				</li>
		<?php }
		else
		{
	  		if ($params->get('showForgotUsername')) { ?>
				<li>
					<a href="<?php echo $forgotUsernameLink ?>">
					<?php echo JText&#58;&#58;_('Forgot Username?'); ?></a>
				</li>
			<?php }
			if ($params->get('showForgotPassword')) { ?>
				<li>
					<a href="<?php echo $forgotPasswordLink ?>">
					<?php echo JText&#58;&#58;_('Forgot Password?'); ?></a>
				</li>
			<?php }
		}
	?>

</ul>


<? } ###################### end login form #####################################
else
{	# show logout
?>
	<?php
	# Show their FB avatar (if desired), or give them the option to link accounts
	if ($fbClient->user)
	{
		if($params->get("enableProfilePic")) 
		{ 
			$picHeightParam = $params->get("profileHeight");
			$picWidthParam = $params->get("profileWidth");
			$picHeight = $picHeightParam != "" ? 'height="'.$picHeightParam.'px"' &#58; "";
			$picWidth = $picWidthParam != "" ? 'width="'.$picWidthParam.'px"' &#58; "";
			$linked = ($params->get("linkProfile") == 1)?"true"&#58;"false";
			$fbLogo = ($params->get("facebookLogo") == 1)?"true"&#58;"false"; 
			$fbUid = $fbClient->user;
			?>
			<div id="profile-pic">
				<fb&#58;profile-pic uid="<?php echo $fbUid;?>"
					size="<?php echo $params->get('picQuality'); ?>"
					<?php echo $picHeight;?>
					<?php echo $picWidth;?>
					linked="<?php echo $linked;?>" 
					facebook-logo="<?php echo $fbLogo;?>"
				/>
			</div>
	<?php 
		}
	} 
	?>
	<div>
	<?php echo JText&#58;&#58;_("Welcome")." ".$user->get('name') ?>
	</div>
	<input type="submit" name="Submit" class="button" value="<?php echo JText&#58;&#58;_('Logout') ?>" onclick="javascript&#058;logout_button_click()" />
	<?php
	if (!$fbClient->user) # show facebook connect button to join accounts
	{ ?>
		<div class="fb_connect_user"><?php echo JText&#58;&#58;_('Connect User'); ?></div>	
		<fb&#58;login-button onlogin="javascript&#058;fb_login_button_click();"></fb&#58;login-button>
	<?php }
	?>

<?
} # end logout

?>
The topic has been locked.
Support Specialist
14 years 10 months ago #1362 by alzander
That error is from having an opening { without a closing }. I didn't look close enough to see if/how you modified that file, but I'd recommend restoring the original and see if that works. Then make minor modifications to get to the overall look you were attempting. That way, if you run into another error, you can find it quicker.

If that's the original default.php file, let us know.
The topic has been locked.
Active Subscriptions:

None
14 years 10 months ago #1373 by bonox
yes, this is the original file that I have installed mod_jfbclogin_j1.5_v2.1.1.zip
The topic has been locked.
Support Specialist
14 years 10 months ago #1377 by alzander
Alright, think we may have found a solution for you. This will be included in an upcoming release as well, and affects only a minor amount of users with certain configurations of PHP.

In the file you copied below, find the following two lines and update the "<?" with "<?php". Sometimes, PHP is very finnicky about it's opening tags, and we should be more consistent in our use of them.

line 68: <?php } ###################### end login form #####################################
line 111: <?php

Let us know if that helps.
The topic has been locked.
Active Subscriptions:

None
14 years 10 months ago #1396 by bonox
thanks, is ok .-)
The topic has been locked.
Active Subscriptions:

None
14 years 9 months ago #1669 by dpk
"Finnicky?" Horsepuckey.

get rid of the short open tags.

<!-- m --><a class="postlink" href="perishablepress.com/press/2009/01/12/php-short-open-tag/">perishablepress.com/press/2009/0 ... -open-tag/
The topic has been locked.