[Notice] Trying to get property of non-object

GET /dashboard/facebook/

Line 23 in /var/www/vhosts/DohaNanny.com/httpdocs/mysite/code/FacebookConnectPage/form/FacebookConnectForm.php

Source

14      * @param Controller $controller
15      * @param string $name
16      */
17     public function __construct(Controller $controller, $name)
18     {
19         /** @var Member|Facebook_MemberExtension $member */
20         $member = Member::currentUser();
21 
22         $fields = FieldList::create();
23         $fields->add($facebookId = HiddenField::create('FacebookID')->setValue($id = $member->FacebookID));
24         $fields->add($remoteFacebookId = HiddenField::create('RemoteFacebookID'));
25         $fields->add($status = LiteralField::create('Status', ''));
26 
27         $userName = $userLink = null;
28 
29         if (false == is_null($id)) {

Trace

Facebook connect page » Doha Nanny