# Unable to login locally

**URL:** <https://forum.mautic.org/t/unable-to-login-locally/17744>\
**Category:** Product Support\
**Created:** [January 12, 2021, 7:21am UTC](https://forum.mautic.org/t/unable-to-login-locally/17744 "2021-01-12T07:21:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anamikakatyal](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/anamikakatyal/32/561_2.png) [@anamikakatyal](https://forum.mautic.org/u/anamikakatyal)\
**Post date:** [January 12, 2021, 7:21am UTC](https://forum.mautic.org/t/unable-to-login-locally/17744/1 "2021-01-12T07:21:58Z")

</div>

**Your software**  
My Mautic version is: 3.2  
My PHP version is: 7.4  
My Database type and version is: mySQL

**Your problem**  
My problem is: I have installed mautics locally, trying to login using the credentials, the login\_check is giving error 500

These errors are showing in the log:

**500** Internal Server Error - Type error: Argument 1 passed to Mautic\UserBundle\Entity\PermissionRepository::getPermissionsByRole() must be an instance of Mautic\UserBundle\Entity\Role, null given, called in C:\xampp\htdocs\mautic\mautic-features\app\bundles\UserBundle\Security\Provider\UserProvider.php on line 104

Steps I have tried to fix the problem:  
I have checked the user role, the role is not getting passed, also in the Mysql user schema, only role id is available.
