Created on 15 March 2024, 9 months ago
Updated 3 May 2024, 8 months ago

Problem/Motivation

After validating the settings page I get Error: Call to a member function isRouted() on string in uma_apply_markup() (line 221 of modules/contrib/user_menu_avatar/user_menu_avatar.module). and I'm unable to login back to the site because the session could not start. I could not even debug with dpm getting wsod. The only solution was to uninstall the module. Using Drupal 10.2.4, Bootstrap theme and Gin admin theme.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs review

Version

9.0

Component

Code

Created by

🇫🇷France erwangel

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @erwangel
  • 🇮🇳India dineshkumarbollu

    @erwangel
    Try to add one more condition in user_menu_avatar.module to fix the issue,
    if (uma_anon_markup() && is_object($menu_link['url']) && $menu_link['url']->isRouted() && $menu_link['url']->getRouteName() === "user.login") {

  • 🇫🇷France erwangel

    Still not working. With the suggested changes I was able to access the settings page but once I validated the form I got again a wsod and was logged out with a RuntimeException: Failed to start the session. in Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start() (line 173 of /path_to_site_root/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php).
    Cache rebuild didn't help, it just permit access to the login page but once the credentials validated, white scren again. I had to uninstall the module to get the site back.
    In the php logs Maximum execution time of 40 seconds exceeded and Allowed memory size exhausted as well as Warning: session_start(): Failed to decode session object. Session has been destroyed in Drupal logs which just explains the symphony session failure.

  • Status changed to Needs review 8 months ago
  • 🇮🇹Italy vdupom

    Here a patch that try to fix the issue adding some checks

Production build 0.71.5 2024