ssossossosso

Forums

Covering OroCommerce topics, B2B eCommerce trends, community updates and company announcements.

This topic contains 11 replies, has 2 voices, and was last updated by  mouali 10 months, 2 weeks ago.

  • Creator
    Topic
  • #311

    mouali
    Participant

    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

Viewing 11 replies - 1 through 11 (of 11 total)
  • Author
    Replies
  • #312

    mouali
    Participant

    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

    #313

    mouali
    Participant

    Finally 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!
    Thanks

    #314

    mouali
    Participant

    Finally 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”

    #315

    mouali
    Participant

    what is the login page for admin login ?

    #323
    Michael
    Michael
    Oro Core

    By 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.

    #325

    mouali
    Participant

    @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 !
    Thanks

    #342

    mouali
    Participant

    @Michael Bessolov : Please any help ?

    #343
    Michael
    Michael
    Oro Core

    You may also need to remove existing sessions data – try to remove everything in app/cache/sessions:
    rm -rf app/cache/sessions

    #344

    mouali
    Participant

    Thanks,

    I already done that, but still same error

    Thanks

    #345
    Michael
    Michael
    Oro Core

    This 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-L361

    #351

    mouali
    Participant

    Thanks 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

Viewing 11 replies - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.