Welcome Guest, Not a member yet? Register   Sign In
Community Auth issues - Any help would be appreciated
#11

(This post was last modified: 11-15-2016, 09:24 PM by revelnode.)

Ok, one last issue, although it is above and beyond the scope of your actual app, however, it was posted on your blog.

I am trying to get the users Name and possibly even a photo to appear in the banner of my app.  Before I get into the photo issue, I simply did what you have in your blog to create customer profiles.  However, I get an error when I do:

Code:
A PHP Error was encountered
Severity: Notice

Message: Undefined property: stdClass::$first_name

Filename: core/MY_Controller.php

Line Number: 36

Backtrace:

File: /var/www/html/application/core/MY_Controller.php
Line: 36
Function: _error_handler

File: /var/www/html/application/third_party/community_auth/core/Auth_Controller.php
Line: 224
Function: _set_user_variables

File: /var/www/html/application/controllers/Welcome.php
Line: 34
Function: require_role

File: /var/www/html/public/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined property: stdClass::$last_name

Filename: core/MY_Controller.php

Line Number: 37

Backtrace:

File: /var/www/html/application/core/MY_Controller.php
Line: 37
Function: _error_handler

File: /var/www/html/application/third_party/community_auth/core/Auth_Controller.php
Line: 224
Function: _set_user_variables

File: /var/www/html/application/controllers/Welcome.php
Line: 34
Function: require_role

File: /var/www/html/public/index.php

I got a similar error when I tried to add to the auth_(variable) list (like auth_email or auth_username) I tried to add auth_photo but it gave me a lot of issues.
Any Ideas?

Regards,
Koster
Reply
#12

Never mind... was using $this->profile_data->first_name instead of just $first_name and changed the auth level restriction from "== 1" to ">= 1" as all my users have a profile.
Reply
#13

(11-16-2016, 07:38 PM)revelnode Wrote: Never mind... was using $this->profile_data->first_name instead of just $first_name and changed the auth level restriction from "== 1" to ">= 1" as all my users have a profile.

What are you using for a debugger? I use FirePHP and it really makes coding life a lot easier.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB