Fatal error: Call to a member function getAttribute() on a non-object
Fatal error: Call to a member function getAttribute() on a non-object in F:\wamp\www\packages\my_theme\themes\my_theme\member.php on line 40
And here is the offending code
<?php $c = Page::getCurrentPage(); $uID = $c->getCollectionUserID(); $ui = UserInfo::getByID($uID); echo $ui->getAttribute('full_name'); ?>
The "Full Name" displays perfectly on the page and I only get this error when trying to set up page defaults?
The easiest fix is probably
That will prevent the dashboard / defaults problem, but allow it to function OK on a real page.
Once again, Many Thanks for your help..