× Joomla Facebook Connect support forum

Topic-icon Undefined offset jfbcsystem.php

Active Subscriptions:

None
15 years 2 months ago #8674 by mlewis
Everything was working right up until a week or so ago. We didn't even know that people were no longer able to sign up and create an account.
We've been at this for days trying to find the problems and found some things that still don't explain much.

For example, we run our prod servers on a segmented lan and for some reason, this site stopped working. We moved it to another lan and it worked. We moved it back thinking it might be a firewall issue and were not able to find any such issue. We moved in back to the other lan and while the site now works fine, for some reason, everything we click on shows the following error.

Apr 1 12:38:27 192.168.1.90 httpd[3823]: [error] [client 192.168.1.205] PHP Notice: Undefined offset: 0 in /var/www/html/plugins/system/jfbcsystem.php o
n line 41, referer: www.xxx.com/index.php

The problem of course is preventing users from creating accounts. I'm not sure what else to post at this point because there are so many variables but happy to give more info based on questions.

php 5.2
mysql 5.1
apache 2.2.x
centos 5.5 fully updated
jomsocial 2.0.6 I believe

Mike
The topic has been locked.
Support Specialist
15 years 2 months ago #8678 by alzander
Mike,
What version of JFBConnect are you using? The latest version is 3.1.2, and we'll be releasing 3.2 next week. I don't know of the issue you speak of off-hand, but it may be fixed in a more recent version. Additionally, I don't see a subscription attached your account, so I can't look up what version you're using.

Please let me know, and we'll be able to help you further. If you don't have an active subscription, I'd suggest updating that so you can get the latest release, and if you continue to have issues, we can help you from there. If you're interested in what the 3.2 holds, feel free to check out our sneak peek:
www.sourcecoast.com/blog/item/106-jfbconnect-32-sneak-peek

Thanks, and good luck!
The topic has been locked.
Active Subscriptions:

None
15 years 2 months ago #8692 by mlewis
Hi, thanks for the reply.
The version is 3.1.2 - 2010/01/24. You won't see a sub under my name because my wife bought it, but even then, I'm not sure who she bought it under because we do development for others as well.

It looked like people were not able to sign up but that was because SEO had been turned off and forgotten in testing. Turning it back on fixed that part, now we're just trying to find the source of the error which doesn't appear to be critical. Can you confirm this.

Thanks.
The topic has been locked.
Support Specialist
15 years 2 months ago #8709 by alzander
No problem about the subscription. If you would, please have your wife post to this thread, or create new ones, so we know who we're supporting. It helps. We can add the subscription to your account too, once we know who's account to associate it with.

As for the warning you're seeing, if you edit the jfbsystem.php file you've pasted above, at that line, simply change the code to the following, and you'll be good to go:
if (preg_match('/\<body.*?\>/', $body, $matches))
{
  $newBody = str_replace($matches[0], $matches[0] . $fbApiJs, $body);
  JResponse::setBody($newBody);
}

That will get rid of the warning. Additionally, you can turn off error reporting in the Joomla configuration error as warnings are not 'critical' problems. This issue has been fixed in the 3.2 release, and you shouldn't see it once that's released as well.

Hope this helps, and good luck!
The topic has been locked.
Active Subscriptions:

None
15 years 2 months ago #8732 by mlewis
If you don't think it's a problem, I won't worry about it and just update when your update comes out.

Thanks.
The topic has been locked.