Forums › Forums › OroCommerce › Can't login !
This topic contains 11 replies, has 2 voices, and was last updated by mouali 8 years, 6 months ago.
Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.
- CreatorTopic
- October 8, 2015 at 12:59 am #31011
Hi,
First thanks for the great job you do with OroCommerce.
I follow installation steps for RC1 with success. But unforunately, when i try to access the application throw the login page and using admin account, i have this message: “Bad credentials!”, when i request password by clicking on forgot password link, i got error that he don’t found account for given admin mail !!!
During installation, i say “yes” to install sample datas.
Please help,
Thanks - CreatorTopic
- AuthorReplies
- October 8, 2015 at 1:16 am #31012
I change admin password using console: /Users/mouali/php app/console oro:user:update admin –user-password=admin –env=prod
I also change sessions directory rights, and still cannot access, still same erreir: Bad credentials !!!s
October 8, 2015 at 3:10 am #31013Finally the simple question is: how can i access admin area
On you doc, i have just to add “/admin” to the url, i have a simple url: http://localhost:8888 , when i try with http://localhost:8888/admin/ i got a 404 error ???Please help!
ThanksOctober 8, 2015 at 3:32 am #31014Finally i got an error when trying to access admin area :)
Regarding my last question, i forgot that i changed the admin prefix :(
“Catchable Fatal Error: Argument 1 passed to Oro\Bundle\DashboardBundle\Model\Manager::findUserActiveOrDefaultDashboard() must be an instance of Oro\Bundle\UserBundle\Entity\User, null given, called in /Users/mouali/Projects/b2b/orocommerce-application/src/Oro/src/Oro/Bundle/DashboardBundle/Controller/DashboardController.php on line 304 and defined in /Users/mouali/Projects/b2b/orocommerce-application/src/Oro/src/Oro/Bundle/DashboardBundle/Model/Manager.php on line 215”
October 8, 2015 at 3:39 am #31015what is the login page for admin login ?
October 8, 2015 at 12:16 pm #31016By default the login page for the admin part of your application will be available at http://your.domain:port/path-to-you-applications-web-folder/admin/
For example, if you application frontend is available at http://orocommerce.localhost:8888/ , then the admin login will be at http://orocommerce.localhost:8888/admin/The path to the admin can be modified during installation via the command line (composer install will ask for a value for backend_prefix ), or afterwards (modify backend_prefix value in app/config/parameters.yml and clear the cache).
In order to verify that the admin URL is not accessible due to your webserver rewrite rules misconfiguration, you can try http://orocommerce.localhost:8888/app.php/admin/ or http://orocommerce.localhost:8888/app_dev.php/admin/
Please note, that due to RFC 2965 and its successors, some browsers may (actually they are required to, but are quite forgiving) reject the cookies if domain name doesn’t have a dot in it, like the plain ‘localhost’ (see section 3.3.2 of the aforementioned RFC for more details). It is recommended to either add a custom domain with a dot (like ‘orocommerce.localhost’) into your hosts files or use http://127.0.0.1/ , and configure the web-server accordingly.
October 8, 2015 at 11:25 pm #31017@Michael: Thanks for your answer.
I changer the domain name, as you suggest in your answer, but i got the same 505 error:
Catchable Fatal Error: Argument 1 passed to Oro\Bundle\DashboardBundle\Model\Manager::findUserActiveOrDefaultDashboard() must be an instance of Oro\Bundle\UserBundle\Entity\User, null given, called in /Users/fincom/Projects/b2b/orocommerce-application/src/Oro/src/Oro/Bundle/DashboardBundle/Controller/DashboardController.php on line 304 and defined in /Users/fincom/Projects/b2b/orocommerce-application/src/Oro/src/Oro/Bundle/DashboardBundle/Model/Manager.php on line 215
Please help !
ThanksOctober 15, 2015 at 7:31 am #31018@Michael Bessolov : Please any help ?
October 15, 2015 at 8:32 am #31019You may also need to remove existing sessions data – try to remove everything in app/cache/sessions:
rm -rf app/cache/sessions
October 15, 2015 at 8:37 am #31020Thanks,
I already done that, but still same error
Thanks
October 15, 2015 at 9:34 am #31021This error happens because Symfony cannot properly authenticate the user.
If cookies are now working, and sessions were cleaned, I can suggest the following:1. Clear the entire cache
rm -rf app/cache/{prod,dev,test,sessions}
2. Debug getUser() method in Symfony standard controller to see why exactly it cannot authenticate the user:
https://github.com/symfony/symfony/blob/2.8/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php#L354-L361October 17, 2015 at 3:53 am #31022Thanks again for your help.
While debuging, I gort an exception in this part of code:
if (!is_object($user = $token->getUser())) {
// e.g. anonymous authentication
return;
}
The user returned is: String: “anon.” and thats why it show next exception:
Catchable Fatal Error: Argument 1 passed to Oro\Bundle\DashboardBundle\Model\Manager::findUserActiveOrDefaultDashboard() must be an instance of Oro\Bundle\UserBundle\Entity\User, null given, called in /Users/fincom/Projects/b2b/orocommerce-application/src/Oro/src/Oro/Bundle/DashboardBundle/Controller/DashboardController.php on line 304 and defined...
Thanks
- AuthorReplies
The forum ‘OroCommerce’ is closed to new topics and replies.