Topic-icon fatal error

Active Subscriptions:

None
10 years 7 months ago #36052 by nitmen1
fatal error was created by nitmen1
Alex,

I have facebook login in my website f4friends.com and its working fine but when ever i try to login with facebook on mobile i am getting this error
" Fatal error: call to member function init() on a non-object in/home/f4friend/public_html/templates/weblieusocial/index.php on line 142 "
The topic has been locked.
Support Specialist
10 years 7 months ago #36064 by alzander
Replied by alzander on topic fatal error
I'm not sure what that would be. Can you look at the file that's mentioned above and let me know the block of code around line 142? That's not part of JFBConnect, so we'd need to know what your template is trying to do there to know if it's something we could fix in JFBConnect.

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

None
10 years 7 months ago #36070 by nitmen1
Replied by nitmen1 on topic fatal error
Alex,

i am unable to figure out the issue....do u want my ftp details....?
The topic has been locked.
Support Specialist
10 years 7 months ago #36084 by alzander
Replied by alzander on topic fatal error
No, FTP credentials wouldn't help us at this point. Can you post the block of code around line 142 in your /home/f4friend/public_html/templates/weblieusocial/index.php file? That line is what's causing the issue, and it's obviously not from JFBConnect. Seeing what's being attempted there may help us understand what's going on, but we'd need to see it first.

We only ask for FTP credentials when we know the issue is specific to a problem with JFBConnect as it's impossible to debug every other extension and template out there. The line above is directly coming from your template though, and whoever developed it may need to look into where the conflict is coming from as well.

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

None
10 years 7 months ago #36118 by nitmen1
Replied by nitmen1 on topic fatal error
alex,

i am not exactly to get the codes by line number but what i think comes under line number 142 is given below

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="www.w3.org/1999/xhtml" xml:lang="language; ?>" lang="language;?>" >
<head>
<?php
$gantry->displayHead();
$gantry->addStyles(array('template.css','joomla.css'));

if ($gantry->get('fixedheader') && $gantry->get('menu-type') != 'splicemenu') $gantry->addScript('rt-fixedheader.js');

$browser = $gantry->browser->name;
$ver = $gantry->browser->shortversion;
if ($browser == 'ie' && ($ver == 7 || $ver == 8 || $ver == 9)){
$gantry->addScript('IE-animations.js');
}

if ($gantry->browser->platform != 'iphone')
$gantry->addInlineScript('window.addEvent("domready", function(){ new SmoothScroll(); });');

?>
</head>

waiting for your reply...
The topic has been locked.
Support Specialist
10 years 7 months ago #36169 by alzander
Replied by alzander on topic fatal error
Nitish,
There are lots of editors that can show you the line numbers of files. The original error message indicated that the function being called was init(), which isn't included in the code you pasted above.

You'll need to find the right block for us to look at. Once you find a line that's calling init(), paste the 10 lines before and after that, and it should help us. Again though, this is in your template, so I'm not sure I'll even be able to give you an exact answer as to what's going wrong.

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

None
10 years 7 months ago #36218 by nitmen1
Replied by nitmen1 on topic fatal error
Alex,

The problem is solved.There were some problem with gantry frame work i installed it again and updated it and website is working fine

Even though this problem had no connection with Jfb connect you tried to help me i really appreciate it and am very thankful to you, If the jomsocial people were in ur position they would have simply closed the thread by saying " Its not related to jomsocial and we can not develope your website"...You are very kind..Thnax a lot
The topic has been locked.
Support Specialist
10 years 7 months ago #36228 by alzander
Replied by alzander on topic fatal error
Awesome. Glad we could help narrow things down. I didn't think there was much we could do in JFBConnect, but we never have a problem trying to localize the issue. I'm happy we were able to help!

If you need anything else, just let us know.

Thanks,
Alex
The topic has been locked.