Mega menu throws an error when adding the block
Permalink Browser Info Environment
Throws an error when we attempt to add the menu to our site on a clean install of 9.1.1
Undefined property: Concrete\Package\JbMegamenu\Block\JbMegamenu\Controller::$requestArray Details /home/uksmdtxb/public_html/concrete/src/Block/BlockController.php(698): Whoops\Exception\ErrorException->null /home/uksmdtxb/public_html/concrete/src/Block/BlockController.php(698): Whoops\Run->handleError /home/uksmdtxb/public_html/packages/jb_megamenu/blocks/jb_megamenu/controller.php(203): Concrete\Core\Block\BlockController->post /home/uksmdtxb/public_html/concrete/src/Entity/Block/BlockType/BlockType.php(675): Concrete\Package\JbMegamenu\Block\JbMegamenu\Controller->save /home/uksmdtxb/public_html/concrete/src/Page/Collection/Collection.php(1032): Concrete\Core\Entity\Block\BlockType\BlockType->add /home/uksmdtxb/public_html/concrete/src/Page/Page.php(2653): Concrete\Core\Page\Collection\Collection->addBlock /home/uksmdtxb/public_html/concrete/controllers/dialog/page/add_block.php(100): Concrete\Core\Page\Page->addBlock /home/uksmdtxb/public_html/concrete/src/Controller/AbstractController.php(318): Concrete\Controller\Dialog\Page\AddBlock->submit /home/uksmdtxb/public_html/concrete/src/Controller/AbstractController.php(318): null->call_user_func_array /home/uksmdtxb/public_html/concrete/src/Routing/ControllerRouteAction.php(64): Concrete\Core\Controller\AbstractController->runAction /home/uksmdtxb/public_html/concrete/src/Http/RouteDispatcher.php(37): Concrete\Core\Routing\ControllerRouteAction->execute /home/uksmdtxb/public_html/concrete/src/Http/Middleware/DispatcherDelegate.php(39): Concrete\Core\Http\RouteDispatcher->dispatch /home/uksmdtxb/public_html/concrete/src/Http/Middleware/MiddlewareStack.php(86): Concrete\Core\Http\Middleware\DispatcherDelegate->next
Viewing 15 lines of 34 lines. View entire code block.
Type: | Ticket |
---|---|
Status: | In Progress |
Seems that php 8.0 is the issue here, concrete themselves are officially supporting 8.0 up now so you may get more people having this issue going forward.
When I first installed Concrete CMS V9, I tried with PHP 8 and it threw errors (that's just the core, not addons). So even after a couple months I would not be comfortable running it on a production site even without the errors now. There are likely to be more core bugs that get discovered relating to PHP8 in the coming weeks.
I'm currently travelling and out of the office for an extended period, so development work is on hold until I get back. But as soon as I get a chance I'll run 9.1.1 on a new installation to test it more thoroughly.
JB
I'm currently travelling and out of the office for an extended period, so development work is on hold until I get back. But as soon as I get a chance I'll run 9.1.1 on a new installation to test it more thoroughly.
JB
Just circling back to let you know that the latest version of Mega Menu is compatible with PHP8 and the latest version of ConcreteCMS 9.x. Hope this helps.
Have you installed this on any other sites with previous versions of Concrete CMS?
I noticed in your environment you've got PHP 8+. I don't think I've tested Mega Menu on PHP 8 yet either. It's been a bit hit or miss with Concrete so I've been waiting until the core is more stable with 8 before pushing forward with that.
Any chance you can test with PHP 7.4 to see if that's the cause?
JB