Problem/Motivation

Seems to just be an issue trying to send a success message.

Message Error: Call to undefined method Drupal\Core\Messenger\Messenger::addSuccess() in Drupal\menu_export\Form\MenuImportForm->submitForm() (line 94 of /var/www/web/modules/contrib/menu_export/src/Form/MenuImportForm.php)

Steps to reproduce

Import a menu in D9

CommentFileSizeAuthor
#2 import_error-3183188-2.patch594 bytesjamesoakley

Comments

Mirabuck created an issue. See original summary.

jamesoakley’s picture

Priority: Minor » Critical
Status: Active » Needs review
StatusFileSize
new594 bytes

I can confirm the problem.

The reason is that the correct method to call on the Messenger class is addStatus, not addSuccess.

The attached patch fixes it. Please can someone check and then mark this as RTBC. Thanks

joseph.olstad’s picture

Status: Needs review » Fixed

Credited, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.