Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The facebook picture is showing on the Profile, but on all other pages it is missing, and I get this error:
Warning: Illegal string offset 'fb_avatar' in fbconnect_theme_user_picture_override() (line 935 of /var/www/studentango/sites/all/modules/contrib/fbconnect/fbconnect.module).
I'm working with an up to date Drupal 7.19.
Comment | File | Size | Author |
---|---|---|---|
#8 | fbconnect-fix-for-user-pic-1917934-8.patch | 772 bytes | Erik Frèrejean |
#6 | fbconnect-fix-for-user-pic-1917934-6.patch | 723 bytes | Erik Frèrejean |
#3 | fbconnect-fix-for-user-pic-1917934-3.patch | 668 bytes | lhridley |
Comments
Comment #1
SebaSOFT CreditAttribution: SebaSOFT commentedsuscribing
Comment #2
rashmiarora CreditAttribution: rashmiarora commentedI am facing the same problem. Found any solution ??
Comment #3
lhridley CreditAttribution: lhridley commentedPatched to fix with the following:
Replace line fbconnect.module:line 935
with
Patch is attached.
Comment #4
jcisio CreditAttribution: jcisio commentedThanks. Committed and pushed.
Comment #6
Erik FrèrejeanThe provided patch doesn't seem to fix this fully. The problem is caused because
$account->data
is a serialized array, but the module tries to alter data directly by accessing the data as if it is an array.I've created an additional patch for this issue that will handle the serialization.
Comment #7
Erik FrèrejeanComment #8
Erik FrèrejeanApperently the serialized string only gets passed in the first request after a cache clear. Updated the patch to only unserialize if there is actually a string in
$account->data