Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
After recent core changes regarding route rebuilding, tests in some modules (FileEntityAdminTest - file_entity) are displaying the notice from ViewsLocalTask->getDerivativeDefinitions()
(line 74) with a message: Undefined index: content.page_1
.
Comments
Comment #1
dawehnerMH, we maybe should throw some helpful information, instead of the undefined index, but its certainly a bad defined local task, if its points to the wrong route / not existing route. Do you have some idea in mind how to present that missing information?
Comment #2
mbovan CreditAttribution: mbovan at MD Systems GmbH commentedHere is the screenshot:
Comment #3
BerdirWow, already 4 month since we opened this? :)
Tracked our test fail down finally, we enable node module in the test and then the routes don't get rebuilt but the local tasks were invalidated. https://github.com/md-systems/file_entity/commit/d94d52faca04b52f29151fa... fixed it.
So it's not a big issue since it's pretty much test only, but a better check to avoid the notice would be nice I guess.
Comment #14
quietone CreditAttribution: quietone at PreviousNext commentedI wasn't sure what to do with this one so asked in #bugsmash. lendude explained that this is a DX issue and a task. Updating the metadata.
There has been no interest in improving the message in 7 years.
Is this worth doing?
Comment #17
smustgrave CreditAttribution: smustgrave at Mobomo commentedSince there was no answer for #14 after a year going to say no.