Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8067283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T12:14:28+00:00 2026-06-05T12:14:28+00:00

I recently did a vendors/install and now my sonata admin is broken with the

  • 0

I recently did a vendors/install and now my sonata admin is broken with the following error:

Item “roles” for “” does not exist in SonataAdminBundle::standard_layout.html.twig at line 92

Here is the twig code:

{% if app.security %}
  {% for role in app.security.token.roles %}
    {% if not allowed %}
      {% set allowed = role.role == 'ROLE_SONATA_ADMIN' %}
    {% endif %}
  {% endfor %}
{% endif %}

Anyone have any thoughts?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T12:14:29+00:00Added an answer on June 5, 2026 at 12:14 pm

    I searched through admin bundle with blame option and it comes from a commit 7 days ago

    So what you have to do is go to deps.lock

    Find the adminBundle commit hash(In my case it started with 4a….)
    replace the hash with 25b401e6271ee0fd896d700d0328b06994e4e138 which is commit before the commit that cause problem

    I tried it and dashboard works correctly

    Good luck

    EDIT

    Be careful not to use php bin/vendor update since it will update the commit hash

    Use php bin/vendor install

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Recently I was debugging a poof-all-customer-data-is-gone problem. It did not take much time to
I recently inherited an iPhone app. The original developer did not understand memory management
I recently did a mailing to a lot of hotmail addresses and now all
I got the following error in Delphi 2007. What does it mean? [DCC Error]
Was asked this question recently and did not know the answer. From a high
I recently did a fresh install of PhoneGap 2.0 and so far I've managed
Until recently, our app did not specify a doctype. Then, to make the app
When we install SQL Server it does not ask to install .Net Framework but
I recently did a survey, which had upto 10 questions. Now I need to
I recently did a clean install of Eclipse from the tar ball ( eclipse-SDK-3.7.2-linux-gtk-x86_64.tar.gz

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.