Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to edit User Group as while logged in as root user #383

Closed
fstaylor104 opened this issue Aug 4, 2015 · 6 comments
Closed

Unable to edit User Group as while logged in as root user #383

fstaylor104 opened this issue Aug 4, 2015 · 6 comments
Labels
confirmed bug Something isn't working troubleshooting Support with current features

Comments

@fstaylor104
Copy link

Hi guys, whenever I sign in as the root user and go to edit my user group landing page I get a warning to check the php error logs which outputs as follows:

[03-Aug-2015 07:10:34 America/New_York] Error in C:\wamp\www\Project\userfrosting\userfrosting\models\mysql\MySqlGroup.php on line 23: Object of class UserFrosting\DatabaseTable could not be converted to string

[03-Aug-2015 07:10:34 America/New_York] #0 C:\wamp\www\Project\userfrosting\userfrosting\models\mysql\MySqlGroup.php(23): Slim\Slim::handleErrors(4096, 'Object of class...', 'C:\\wamp\\www\\Pro...', 23, Array)
#1 C:\wamp\www\Project\userfrosting\userfrosting\controllers\GroupController.php(321): UserFrosting\MySqlGroup->store()
#2 C:\wamp\www\Project\userfrosting\public\index.php(206): UserFrosting\GroupController->updateGroup('1')
#3 [internal function]: {closure}('1')
#4 C:\wamp\www\Project\userfrosting\userfrosting\vendor\slim\slim\Slim\Route.php(468): call_user_func_array(Object(Closure), Array)
#5 C:\wamp\www\Project\userfrosting\userfrosting\vendor\slim\slim\Slim\Slim.php(1357): Slim\Route->dispatch()
#6 C:\wamp\www\Project\userfrosting\userfrosting\vendor\slim\slim\Slim\Middleware\Flash.php(85): Slim\Slim->call()
#7 C:\wamp\www\Project\userfrosting\userfrosting\vendor\slim\slim\Slim\Middleware\MethodOverride.php(92): Slim\Middleware\Flash->call()
#8 C:\wamp\www\Project\userfrosting\userfrosting\auth\CsrfGuard.php(51): Slim\Middleware\MethodOverride->call()
#9 C:\wamp\www\Project\userfrosting\userfrosting\vendor\slim\slim\Slim\Slim.php(1302): Slim\Extras\Middleware\CsrfGuard->call()
#10 C:\wamp\www\Project\userfrosting\public\index.php(388): Slim\Slim->run()
#11 {main}

Any ideas on how to fix this issue would be greatly appreciated!

Many Thanks!

@alexweissman alexweissman added troubleshooting Support with current features confirmed bug Something isn't working labels Aug 4, 2015
@alexweissman
Copy link
Member

Looks like a bug to me in https://github.com/alexweissman/UserFrosting/blob/master/userfrosting/models/mysql/MySqlGroup.php#L23. I'll get it fixed, thanks for finding it!

@alexweissman
Copy link
Member

Ok, should be fixed. Please let me know if this resolves your issue.

@fstaylor104
Copy link
Author

Alex,

Got it working, but had to change user from default primary to default...
Many Thanks!

@alexweissman
Copy link
Member

No problem!

@tolotratlt
Copy link

I had the same problem too, but now it is set. Thank you so much

@alexweissman
Copy link
Member

No problem, don't forget to star the project!

alexweissman added a commit that referenced this issue Sep 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed bug Something isn't working troubleshooting Support with current features
Projects
None yet
Development

No branches or pull requests

3 participants