invalid argument

lucyr's picture
lucyr
Fri, 06/22/2018 - 22:10
#1
invalid argument

I can not use this module, and I have followed all the directions and searched the forum and google

I am in Drupal 8, there is no Structure -> MD Megamenu per the documentation.  There is a checkbox Enable megamenu in my existing menus.

When I click the Edit megamenu pencil icon in the menu settings, there is a spinner that just spins and spins.  The following is from the dblog, it mentions your module specifically:

Referrer
Message
Severity
Warning: Invalid argument supplied for foreach() in _awebuilder_set_all_part_to_variable() (line 694 of /var/www/html/modules/awe_builder/awe_builder.module) #0 /var/www/html/core/includes/bootstrap.inc(582): _drupal_error_handler_real(2, 'Invalid argumen...', '/var/www/html/m...', 694, Array) #1 /var/www/html/modules/awe_builder/awe_builder.module(694): _drupal_error_handler(2, 'Invalid argumen...', '/var/www/html/m...', 694, Array) #2 /var/www/html/modules/md_megamenu/md_megamenu.module(254): _awebuilder_set_all_part_to_variable(Array) #3 /var/www/html/core/lib/Drupal/Core/Theme/ThemeManager.php(287): md_megamenu_preprocess_md_menu_item(Array, 'md_menu_item', Array) #4 /var/www/html/core/lib/Drupal/Core/Render/Renderer.php(437): Drupal\Core\Theme\ThemeManager->render('md_menu_item', Array) #5 /var/www/html/core/lib/Drupal/Core/Render/Renderer.php(450): Drupal\Core\Render\Renderer->doRender(Array) #6 /var/www/html/core/lib/Drupal/Core/Render/Renderer.php(195): Drupal\Core\Render\Renderer->doRender(Array, false) #7 /var/www/html/core/lib/Drupal/Core/Template/TwigExtension.php(490): Drupal\Core\Render\Renderer->render(Array) #8 /var/www/html/sites/default/files/php/twig/5ad681ec68d04_md-menubox.html.twig_kVr_1_H4d-V-lOtLP3Hr8gJ9I/ooRZH5JNiJDx4Hc_1dvRqZ629GqyOZODIfYL2FIJdBE.php(98): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true) #9 /var/www/html/vendor/twig/twig/lib/Twig/Template.php(432): __TwigTemplate_5a2436daf2b9d8e4e5f43b7dec6805ce5a439307bbdc10c2d86f96bf8d466abc->doDisplay(Array, Array) #10 /var/www/html/vendor/twig/twig/lib/Twig/Template.php(403): Twig_Template->displayWithErrorHandling(Array, Array) #11 /var/www/html/vendor/twig/twig/lib/Twig/Template.php(411): Twig_Template->display(Array) #12 /var/www/html/core/themes/engines/twig/twig.engine(64): Twig_Template->render(Array) #13 /var/www/html/core/lib/Drupal/Core/Theme/ThemeManager.php(384): twig_render_template('modules/md_mega...', Array) #14 /var/www/html/core/lib/Drupal/Core/Render/Renderer.php(437): Drupal\Core\Theme\ThemeManager->render('md_menubox', Array) #15 /var/www/html/core/lib/Drupal/Core/Render/Renderer.php(450): Drupal\Core\Render\Renderer->doRender(Array) #16 /var/www/html/core/lib/Drupal/Core/Render/Renderer.php(195): Drupal\Core\Render\Renderer->doRender(Array, false) #17 /var/www/html/core/lib/Drupal/Core/Template/TwigExtension.php(490): Drupal\Core\Render\Renderer->render(Array) #18 /var/www/html/sites/default/files/php/twig/5ad681ec68d04_md-megamenu.html.twig_lPKZD1tMT9sM2TPtrxXDFvp7P/hctXCj6CEvtA1BjlGmb4iC-DqXmRxbAv3G35e18auO4.php(77): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true) #19 /var/www/html/vendor/twig/twig/lib/Twig/Template.php(432): __TwigTemplate_8e9abaa0e22178d3c254925f7eba440a1a777b0f6793bceb42ffa2569a14f9f7->doDisplay(Array, Array) #20 /var/www/html/vendor/twig/twig/lib/Twig/Template.php(403): Twig_Template->displayWithErrorHandling(Array, Array) #21 /var/www/html/vendor/twig/twig/lib/Twig/Template.php(411): Twig_Template->display(Array) #22 /var/www/html/core/themes/engines/twig/twig.engine(64): Twig_Template->render(Array) #23 /var/www/html/core/lib/Drupal/Core/Theme/ThemeManager.php(384): twig_render_template('modules/md_mega...', Array) #24 /var/www/html/core/lib/Drupal/Core/Render/Renderer.php(437): Drupal\Core\Theme\ThemeManager->render('block', Array) #25 /var/www/html/core/lib/Drupal/Core/Render/Renderer.php(450): Drupal\Core\Render\Renderer->doRender(Array) #26 /var/www/html/core/lib/Drupal/Core/Render/Renderer.php(195): Drupal\Core\Render\Renderer->doRender(Array, false) #27 /var/www/html/core/lib/Drupal/Core/Template/TwigExtension.php(490): Drupal\Core\Render\Renderer->render(Array) #28 /var/www/html/sites/default/files/php/twig/5ad681ec68d04_page--fullwidth.html.twig_hhKEOxHq8_GO2PXajeZ3BUrwV/RwW-jfnwKSTDIiKTs4ygsP_6uf3ux_ZUyk3UaTyKJSI.php(150): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true) #29 /var/www/html/vendor/twig/twig/lib/Twig/Template.php(215): __TwigTemplate_3a21635288dfb447e24702a073018679b84903bbade3f2258867a9e85354c3ce->block_navbar(Array, Array) #30 /var/www/html/sites/default/files/php/twig/5ad681ec68d04_page--fullwidth.html.twig_hhKEOxHq8_GO2PXajeZ3BUrwV/RwW-jfnwKSTDIiKTs4ygsP_6uf3ux_ZUyk3UaTyKJSI.php(105): Twig_Template->displayBlock('navbar', Array, Array) #31 /var/www/html/vendor/twig/twig/lib/Twig/Template.php(432): __TwigTemplate_3a21635288dfb447e24702a073018679b84903bbade3f2258867a9e85354c3ce->doDisplay(Array, Array) #32 /var/www/html/vendor/twig/twig/lib/Twig/Template.php(403): Twig_Template->displayWithErrorHandling(Array, Array) #33 /var/www/html/vendor/twig/twig/lib/Twig/Template.php(411): Twig_Template->display(Array) #34 /var/www/html/core/themes/engines/twig/twig.engine(64): Twig_Template->render(Array) #35 /var/www/html/core/lib/Drupal/Core/Theme/ThemeManager.php(384): twig_render_template('themes/thesaas/...', Array) #36 /var/www/html/core/lib/Drupal/Core/Render/Renderer.php(437): Drupal\Core\Theme\ThemeManager->render('page', Array) #37 /var/www/html/core/lib/Drupal/Core/Render/Renderer.php(195): Drupal\Core\Render\Renderer->doRender(Array, false) #38 /var/www/html/core/lib/Drupal/Core/Template/TwigExtension.php(490): Drupal\Core\Render\Renderer->render(Array) #39 /var/www/html/sites/default/files/php/twig/5ad681ec68d04_html.html.twig_N4h0zoeKQs5UgLMEmwokDd3YF/pRmfJBS1W1QKno7aeFVzKsMy2qmwBzyUC-8edw8dN9M.php(95): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true) #40 /var/www/html/vendor/twig/twig/lib/Twig/Template.php(432): __TwigTemplate_2bd9fedb9dbb1c3c43b0be7a46f555c6366fd430b19f8f5be38dea3c968f7305->doDisplay(Array, Array) #41 /var/www/html/vendor/twig/twig/lib/Twig/Template.php(403): Twig_Template->displayWithErrorHandling(Array, Array) #42 /var/www/html/vendor/twig/twig/lib/Twig/Template.php(411): Twig_Template->display(Array) #43 /var/www/html/core/themes/engines/twig/twig.engine(64): Twig_Template->render(Array) #44 /var/www/html/core/lib/Drupal/Core/Theme/ThemeManager.php(384): twig_render_template('themes/thesaas/...', Array) #45 /var/www/html/core/lib/Drupal/Core/Render/Renderer.php(437): Drupal\Core\Theme\ThemeManager->render('html', Array) #46 /var/www/html/core/lib/Drupal/Core/Render/Renderer.php(195): Drupal\Core\Render\Renderer->doRender(Array, false) #47 /var/www/html/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(147): Drupal\Core\Render\Renderer->render(Array) #48 /var/www/html/core/lib/Drupal/Core/Render/Renderer.php(582): Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() #49 /var/www/html/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(148): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #50 /var/www/html/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\CurrentRouteMatch)) #51 [internal function]: Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object(Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher)) #52 /var/www/html/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func(Array, Object(Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher)) #53 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(156): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.view', Object(Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent)) #54 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #55 /var/www/html/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #56 /var/www/html/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #57 /var/www/html/core/modules/page_cache/src/StackMiddleware/PageCache.php(184): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #58 /var/www/html/core/modules/page_cache/src/StackMiddleware/PageCache.php(121): Drupal\page_cache\StackMiddleware\PageCache->fetch(Object(Symfony\Component\HttpFoundation\Request), 1, true) #59 /var/www/html/core/modules/page_cache/src/StackMiddleware/PageCache.php(75): Drupal\page_cache\StackMiddleware\PageCache->lookup(Object(Symfony\Component\HttpFoundation\Request), 1, true) #60 /var/www/html/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #61 /var/www/html/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(50): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #62 /var/www/html/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #63 /var/www/html/core/lib/Drupal/Core/DrupalKernel.php(664): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #64 /var/www/html/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #65 {main}.
Warning

cindy's picture
cindy
Thu, 06/28/2018 - 22:56

Hi,

Please make sure that you are always using latest version

And send us your site url, admin account and FTP account to check this issue

lucyr's picture
lucyr
Fri, 06/29/2018 - 20:26

I will post the url in a following message, and leave this here for others who may be experiencing similar difficulties.

I am not sending you our ftp or admin account.  Please post a link to instructions for drupal 8, the ones on https://megadrupal.com/docs/mega-menu-documentation are for drupal 7.  

I expect if we don't receive a response soon, we will be requesting a refund.  This last response is unsatisfactory, and took 7 days 

cindy's picture
cindy
Sun, 07/01/2018 - 22:15

Hi,

This is our documentation http://docs.megadrupal.com/drupal-8/megamenu/

Because we have checked our demo serveral times and do not encounter this problem, so we request you to send us your account to check. This issue may occur in your own site because of your theme or other modules

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.