× Joomla Facebook Connect support forum

Topic-icon JFBconnect 4.3.3 a lot of warning in front page

Active Subscriptions:

None
Hi,
I just upgraded to 4.3.3 (J1.5) and I now get a lot of warnings on my front page:
Warning: Invalid argument supplied for foreach() in /home/amirba/kfaryona.com/site/libraries/joomla/registry/registry.php on line 227
Warning: Invalid argument supplied for foreach() in /home/amirba/kfaryona.com/site/libraries/joomla/registry/registry.php on line 227
Warning: Invalid argument supplied for foreach() in /home/amirba/kfaryona.com/site/libraries/joomla/registry/registry.php on line 227
Warning: Invalid argument supplied for foreach() in /home/amirba/kfaryona.com/site/libraries/joomla/registry/registry.php on line 227
...

as you can see it in www.kfaryona.com/site/

Any idea why and how to fix this?
It seems to work though...

Thanks
Amir
The topic has been locked.
Support Specialist
11 years 3 months ago #29013 by alzander
Amir,
Unfortunately, that warning is pretty generic and doesn't help us narrow down where it's coming from. Can you tell us/test:
* Have you configured any Objects or Actions yet? If so, can you unpublish them and see if the messages go away.
* Go to the Configuration area of JFBConnect and simply hit 'apply'. Test again.

If none of that changes anything, simply go to the Global Config area of Joomla and set Error Reporting to None. That should at least hide the PHP notices (which aren't errors, just messages for developers) and we'll investigate further as to what's wrong and how to remove those.

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

None
11 years 3 months ago #29014 by Morpheus
Hi
Thanks for your quick response.
I didn't set up any Objects or Actions yet.
Error reporting is also turned off...
:(

I simply installed the new version.
The topic has been locked.
Support Specialist
11 years 3 months ago #29033 by alzander
Amir,
We found the issue, and it's a real easy fix. Can you do what we recommended above:

Go to the Configuration area of JFBConnect and simply hit 'apply'. Test again.

You don't need to change any settings, just make JFBConnect 'refresh' it's settings. There's a new setting in JFBConnect, and if you don't hit apply to save the proper default value, that message looks to appear.

Let us know if that helps or not. It worked for us on a test site we setup to recreate the problem.

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

None
11 years 3 months ago #29039 by Morpheus
Amazing!
It works! :)
The topic has been locked.
Support Specialist
11 years 3 months ago #29043 by alzander
Yup, I like the silly/easy fixes. Hope that's the only issue you run into, but let us know how it goes either way.

Thanks, and good luck,
Alex
The topic has been locked.
11 years 3 months ago #29046 by chramb1
Yup, the problem was in scconfig.php in getSetting(), passing an empty json_decoded $value when $value was empty. I diagnosed this before coming to this page. I should have just found this first ;)
The topic has been locked.
Support Specialist
11 years 3 months ago #29052 by alzander
Yeah, sorry about that. We'll be fixing this in the next release, of course, but once you hit 'save', it's just not an issue anymore.. and it should be able to be hidden with the Error Messages setting in Joomla as well (depending on if your host allows that setting to be used).

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

None
11 years 3 months ago #29094 by iveth
Alex

I also have this error showing on all my domains - sorry I have tried it all now no luck - do you have the updated file to upload...

+ when I try to reinstall jfbc I get this error:

JInstaller::install: SQL Error. DB function failed with error number 1060
Duplicate column name 'params' SQL=ALTER TABLE `jos_jfbconnect_user_map` ADD COLUMN `params` TEXT;
SQL =

ALTER TABLE `jos_jfbconnect_user_map` ADD COLUMN `params` TEXT;

Component Install: SQL error or missing or unreadable SQL file. DB function failed with error number 1060
Duplicate column name 'params' SQL=ALTER TABLE `jos_jfbconnect_user_map` ADD COLUMN `params` TEXT;
SQL =

ALTER TABLE `jos_jfbconnect_user_map` ADD COLUMN `params` TEXT;
The topic has been locked.
Active Subscriptions:

None
11 years 3 months ago #29098 by iveth
Hmm... now the whole website crashed.. what to do
The topic has been locked.