× Joomla Facebook Connect support forum

Topic-icon Jfb connect Fatal Error

Active Subscriptions:

None
15 years 1 month ago #401 by salvodj
hello,
ust installed 2.0 'stable'....
while in configuring JFBConnect and I click on "Overview" I get a falat error page like this.
Facebook Application Information

Application Name:
Fatal error: Cannot use object of type stdClass as array in /var/www/vhosts/
.com/httpdocs/administrator/components/com_jfbconnect/views/jfbconnect/tmpl/default.php on line 25

anybody any idea how to cure this?
The topic has been locked.
Support Specialist
15 years 1 month ago #406 by alzander
Replied by alzander on topic Jfb connect Fatal Error
Can you go into the Configuration and ensure that your API and Secret keys are set correctly? The line that's causing the problem is where JFBConnect is trying to retrieve your Application information from their server. Obviously, it shouldn't cause a fatal error like that, but I think if you can get those keys set up correctly, you'll be good to go.
The topic has been locked.
Active Subscriptions:

None
15 years 1 month ago #407 by salvodj
Replied by salvodj on topic Jfb connect Fatal Error
thanks for the answer,
do I have some problems in to shape the application of facebook, can you explain me that parameters I must use?
you excuse me for the English but I am Italian
thank you
The topic has been locked.
Support Specialist
15 years 1 month ago #413 by alzander
Replied by alzander on topic Jfb connect Fatal Error
Ah ha! I was incorrect in what I said earlier. While investigating another issue, we ran into this issue as well. It seems to be caused when with a combination of a PHP 5.0 or 5.1 library installed (PHP 5.2+ is not affected) and using the JSON wrapper that Facebook includes. If this is gibberish, don't worry.

If you are comfortable making a change to a file, we'd love to hear if the below change fixes your issue. It will definitely be included in the next release of JFBConnect as well:

File: /administrator/components/com_jfbconnect/assets/facebook-api/jsonwrapper/jsonwrapper_inner.php
On both lines, add the bolded section within the ( )
Line 9 and line 18:
$services_json = new Services_JSON(SERVICES_JSON_LOOSE_TYPE);

You're English was fine by the way. We understood the question, but didn't not realize the problem. Hopefully the above helps!
The topic has been locked.
Active Subscriptions:

None
15 years 1 month ago #422 by salvodj
Replied by salvodj on topic Jfb connect Fatal Error
thanks for the modify.it has worked perfectly
The topic has been locked.