Latest version broke drupal admin config

Created on 11 August 2023, over 1 year ago

Problem/Motivation

After Updating from 8.x-1.1 to 8.x-1.2 drupal admin page config displayed this:

/** * @file * Installation actions for menu_markup. */ /** * Implements hook_install(). */ function menu_markup_install() { // No specific installation actions required. } The website encountered an unexpected error. Please try again later.
(with a stack trace)

Dblog had this stack message: (not sure if any other pages were affected, I downgraded back to version 1.1 before checking other areas and read through the logs.)

RuntimeException: Failed to start the session because headers have already been sent by "/var/www/html/web/modules/contrib/menu_markup/menu_markup.install" at line 1. in Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start() (line 152 of /var/www/html/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php)
#0 /var/www/html/web/core/lib/Drupal/Core/Session/SessionManager.php(162): Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start()
#1 /var/www/html/web/core/lib/Drupal/Core/Session/SessionManager.php(110): Drupal\Core\Session\SessionManager->startNow()
#2 /var/www/html/vendor/symfony/http-foundation/Session/Session.php(57): Drupal\Core\Session\SessionManager->start()
#3 /var/www/html/web/core/modules/big_pipe/src/Render/BigPipe.php(240): Symfony\Component\HttpFoundation\Session\Session->start()
#4 /var/www/html/web/core/modules/big_pipe/src/Render/BigPipe.php(295): Drupal\big_pipe\Render\BigPipe->performPreSendTasks()
#5 /var/www/html/web/core/modules/big_pipe/src/Render/BigPipeResponse.php(112): Drupal\big_pipe\Render\BigPipe->sendContent(Object(Drupal\big_pipe\Render\BigPipeResponse))
#6 /var/www/html/vendor/symfony/http-foundation/Response.php(381): Drupal\big_pipe\Render\BigPipeResponse->sendContent()
#7 /var/www/html/web/index.php(20): Symfony\Component\HttpFoundation\Response->send()
#8 {main}

Steps to reproduce

Composer update to latest version, then drush updb and drush returned database update required for menu_markup so I said 'yes' and then followed with drush cr now go to ../admin/config page (broken) with above listed response..

The site this occured on is running Drupal 9.5.10, PHP 8.1.13, Apache/2.4.38

I haven't looked any further into the cause - however I did notice when I ran drush updb this module triggered a notice to update db with "/** * @file * Installation actions for menu_markup. */ /** * Implements hook_install(). */ function menu_markup_install() { // No specific installation actions required. }" reported by drush (as stated above I said yes to update) so I'm "thinking/guessing" the newly included code implementing hook update or somewhere else in the .module file (perhaps syntax) is where the problem lies! If I get anytime (unfortunately it likely would not be anytime soon) I'll try to figure out what happened and offer a patch if I can.

If you need any other info please let me know!

🐛 Bug report
Status

Active

Version

1.2

Component

Code

Created by

🇺🇸United States sidgrafix

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024