Hi,
I first want to say that I love this module and am happy to be using it.
Second I want to post this error I just got last night, "unserialize() expects parameter 1 to be string, array given in /home/admin/domains/psc-site.com/public_html/sites/all/modules/facebook_status/facebook_status.module on line 1656."
I just want to know if anybody else encountered this error and if there's a way to fix it. Thanks.

Comments

mikepadiernos’s picture

Sorry, I forgot how the error came about. My setup have been the same and I updated both ctools and panels when the error first came up but when I switched back to the stable releases from the dev releases of the other two modules and error remained. I haven't really done anything but switch from shared to vps and haven't done any changes that differed from the last time.

icecreamyou’s picture

Version: 6.x-2.3 » 6.x-2.x-dev
Priority: Normal » Minor
Status: Active » Needs review

You're using the dev build not 2.3 and you have another module installed that is incorrectly manipulating the global $user object. It's easy to stop the error in FBSS but you could still have problems in other places because of this that you may not know about.

Anyway replace line 1656 in facebook_status.module with this (not including <?php ?>):

  $data = $account->data;
  if (is_string($data)) {
    $data = unserialize($data);
  }

If that solves your problem, I will commit the change.

mikepadiernos’s picture

That definitely worked! Thanks a bunch!

icecreamyou’s picture

Status: Needs review » Reviewed & tested by the community

No problem. Will commit as soon as I get a chance.

icecreamyou’s picture

Status: Reviewed & tested by the community » Fixed

Committed to dev

Status: Fixed » Closed (fixed)

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