Undefined variable: poster in fbsmp_fbsmp() (line 1414 of /sites/all/modules/fbsmp/fbsmp.module).
$poster is not defined

Comments

Vineeth’s picture

Status: Active » Needs work
Vineeth’s picture

Project: Statuses (Social Microblog) » Facebook-style Statuses (Microblog)
Component: Code (API) » Code - API
Vineeth’s picture

Project: Facebook-style Statuses (Microblog) » Facebook-style Micropublisher
mathankumarc’s picture

Status: Needs work » Active

There is no patch in the issue. Dont set the status to needs work without any patch or solution.

ralva83638’s picture

I get an ajax error when trying to share an image, no error in messages or apache error log, freezes up firebug so no info there either.

mathankumarc’s picture

Status: Active » Needs review

Well another issue which exists in 6.x-2.x too. The problem is same, FBSMP doesn't adopted FBSS 3.x changes properly. I think poster is sender now.

But the big question here is, poster is undefined in 6.x-1.x also(I think so). The variable is used, however the user object of poster or sender never assigned to this variable in all the versions.

I'm going to ask Isaac to look into this.

IceCreamYou’s picture

Status: Needs review » Active

Looks like it was copied incorrectly from FBSS 6.x-2.x. Don't worry about fixing FBSMP 6.x-1.x. For FBSMP 6.x-2.x it should be _facebook_status_user_load($status->sender); and for FBSMP 7.x-1.x it should be user_load($status->sender);.

mathankumarc’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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