After updating to latest CORE I am getting the following warning intermittently:

Warning: Invalid argument supplied for foreach() in _socialmedia_widgets_get_facebook_locales() (line 754 of /home/felix/public_html/sites/all/modules/socialmedia/socialmedia.widgets.inc).

Please advise.

Comments

bezu60 created an issue. See original summary.

downwriter’s picture

Any updates on this issue? I just ran into this problem as well.

mohankumar.r’s picture

Hi dude, I think, its php version issue. It does not occur on a server that runs PHP 5.4.10.

kyletaylored’s picture

Title: Error after latest CORE update » Facebook Locales XML feed broken
Category: Support request » Bug report

I can confirm this is actually an issue - Facebook stopped supporting their locales XML feed and those now run through some app interface. Luckily, there is a JSON version on Github we can refer to (I don't think these will change very much), so I'll add my patch here.

kyletaylored’s picture

This should be patched on dev now.

kyletaylored’s picture

Status: Active » Fixed
PROMES’s picture

I can't find a new dev-version or a patch. The current dev-version is still from 2015-Mar-13...
???????

kyletaylored’s picture

Yea, this is weird. Usually, the commit shows up, but it doesn't seem to be generating a new tarball/zip. But you can definitely see it in the git log.

http://cgit.drupalcode.org/socialmedia/log/

junaidpv’s picture

I assume commit should go to 7.x-1.x branch to get next dev tarball to get generated,

Also, this appears to be a problem with Facebook itself. It is already reported at Facebook's bug tracker: https://developers.facebook.com/bugs/1836827343245862/ . They accepted it as a valid one.

  • kyletaylored committed 7b36c28 on 7.x-1.x
    Issue #2556779 by kyletaylored: Facebook Locales XML feed broken
    
kyletaylored’s picture

@junaidpv yep, you're right.

And thanks for letting me know! I added in another workaround, for now, that should also pull in and cache updates from a JSON file on Github. It's non-dynamic fix, but one nonetheless.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.