- Issue created by @themodularlab
- Status changed to Needs review
over 1 year ago 8:06pm 12 May 2023 -
themodularlab β
committed 27545149 on 2.x
Issue #3360092 by themodularlab: Fix issues found via PHPCS...
-
themodularlab β
committed 27545149 on 2.x
- Status changed to Fixed
over 1 year ago 10:10pm 6 June 2023 - πΊπΈUnited States todea
This update breaks the ability to save a mega menu configuration on Drupal 9.59. When I try to save I get this error:
Error: Call to undefined method Symfony\Component\HttpFoundation\Request::getContentTypeFormat() in Drupal\tb_megamenu\Controller\TBMegaMenuAdminController->saveConfiguration() (line 103 of /var/www/html/bpld9/modules/contrib/tb_megamenu/src/Controller/TBMegaMenuAdminController.php).
I reverted this line back to
$request->getContentType()
- if ($request->getContentType() == 'json') { + if ($request->getContentTypeFormat() == 'json') {
- πΊπΈUnited States themodularlab
@todea,
Thanks for catching this. It's actually a symfony issue where getContentType is deprecated in 6.1 and removed in 6.2. Drupal 10 requires a minimum of 6.2. See my comment here: https://www.drupal.org/project/tb_megamenu/issues/3366463#comment-15102311 π Cannot save menu with Drupal < 10 and 2.0 Alpha4 Fixed .
I'm going to fork our 2.x branch into 3.x which will be drupal 10 version of 2.x, but without the deprecations. An alpha release with the fix for this issue and a new 3.x release is incoming.
- πΊπΈUnited States themodularlab
For Drupal 9: Use https://www.drupal.org/project/tb_megamenu/releases/2.0.0-alpha6 β
For Drupal 10: use https://www.drupal.org/project/tb_megamenu/releases/3.0.0-alpha1 β Automatically closed - issue fixed for 2 weeks with no activity.