Invalid argument supplied for foreach() in /var/www/html/app/code/Ves/Megamenu/Model/Config/Source/StoreCategories.php on line 284Magento - For “Manage Categories” Forbidden You do not have permission to access this documentAdd multiple sections under same tab magento 2.0Invalid arguments supplied for foreach() in module-catalog/Model/ProductLink/CollectionProvider.php magento 2.1.2Magento ERR (3): Warning: Invalid argument supplied for foreach() in /home/onyxclot/public_html/shell/abstract.php on line 144How can I get the second Image of a product in Magento2?Invalid argument supplied for foreach() magento version 2.1.3Magento 2: Warning: array_merge(): Argument #1 is not an array vendor/magento/framework/App/Config/Initial/Converter.php on line 78No Url Rewrites for new websitesIn Magento 2.1.1,Warning: Invalid argument supplied for foreach() in Product.php.Invalid Argument Supplied for foreach() in /…/Importblock.php on Line 67

Is it possible to have battery technology that can't be duplicated?

Can a 40amp breaker be used safely and without issue with a 40amp device on 6AWG wire?

How did Avada Kedavra get its name?

Must a CPU have a GPU if the motherboard provides a display port (when there isn't any separate video card)?

Digital signature that is only verifiable by one specific person

I sent an angry e-mail to my interviewers about a conflict at my home institution. Could this affect my application?

New Site Design!

Nth term of Van Eck Sequence

Can an escape pod land on Earth from orbit and not be immediately detected?

What does the output current rating from an H-Bridge's datasheet really mean?

Is it possible to install Firefox on Ubuntu with no desktop enviroment?

How can Caller ID be faked?

Are athletes' college degrees discounted by employers and graduate school admissions?

Do legislators hold the right of legislative initiative?

The title "Mord mit Aussicht" explained

Does anyone recognize these rockets, and their location?

What is wind "CALM"?

Is there a term for someone whose preferred policies are a mix of Left and Right?

My parents claim they cannot pay for my college education; what are my options?

How many possible starting positions are uniquely solvable for a nonogram puzzle?

How many times to repeat an event with known probability before it has occurred a number of times

What is the context for Napoleon's quote "[the Austrians] did not know the value of five minutes"?

What is the difference between state-based effects and effects on the stack?

What is the color associated with lukewarm?



Invalid argument supplied for foreach() in /var/www/html/app/code/Ves/Megamenu/Model/Config/Source/StoreCategories.php on line 284


Magento - For “Manage Categories” Forbidden You do not have permission to access this documentAdd multiple sections under same tab magento 2.0Invalid arguments supplied for foreach() in module-catalog/Model/ProductLink/CollectionProvider.php magento 2.1.2Magento ERR (3): Warning: Invalid argument supplied for foreach() in /home/onyxclot/public_html/shell/abstract.php on line 144How can I get the second Image of a product in Magento2?Invalid argument supplied for foreach() magento version 2.1.3Magento 2: Warning: array_merge(): Argument #1 is not an array vendor/magento/framework/App/Config/Initial/Converter.php on line 78No Url Rewrites for new websitesIn Magento 2.1.1,Warning: Invalid argument supplied for foreach() in Product.php.Invalid Argument Supplied for foreach() in /…/Importblock.php on Line 67






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I have this error when I add special characters to menu or categories like "&"
It's from module Ves Megamenu.




Warning:
Invalid argument supplied for foreach() in /var/www/html/app/code/Ves/Megamenu/Model/Config/Source/StoreCategories.php on line 284




Warning Line:



$categoriesTrees = $this->getCategoriesTree();
foreach ($categoriesTrees as $category)
$this->generatCategory($category);










share|improve this question






























    0















    I have this error when I add special characters to menu or categories like "&"
    It's from module Ves Megamenu.




    Warning:
    Invalid argument supplied for foreach() in /var/www/html/app/code/Ves/Megamenu/Model/Config/Source/StoreCategories.php on line 284




    Warning Line:



    $categoriesTrees = $this->getCategoriesTree();
    foreach ($categoriesTrees as $category)
    $this->generatCategory($category);










    share|improve this question


























      0












      0








      0








      I have this error when I add special characters to menu or categories like "&"
      It's from module Ves Megamenu.




      Warning:
      Invalid argument supplied for foreach() in /var/www/html/app/code/Ves/Megamenu/Model/Config/Source/StoreCategories.php on line 284




      Warning Line:



      $categoriesTrees = $this->getCategoriesTree();
      foreach ($categoriesTrees as $category)
      $this->generatCategory($category);










      share|improve this question
















      I have this error when I add special characters to menu or categories like "&"
      It's from module Ves Megamenu.




      Warning:
      Invalid argument supplied for foreach() in /var/www/html/app/code/Ves/Megamenu/Model/Config/Source/StoreCategories.php on line 284




      Warning Line:



      $categoriesTrees = $this->getCategoriesTree();
      foreach ($categoriesTrees as $category)
      $this->generatCategory($category);







      magento2 php module megamenu






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jun 8 at 7:35









      divya sekar

      504118




      504118










      asked Jun 7 at 20:56









      BartZalasBartZalas

      884513




      884513




















          1 Answer
          1






          active

          oldest

          votes


















          1














          Solutions was to change this line to:



          $categoriesTrees = $this->getCategoriesTree();
          if(is_array($categoriesTrees))
          foreach ($categoriesTrees as $category)
          $this->generatCategory($category);




          Now I can use "&" or "/" in categories names, without crashing the site.



          Useful source:
          https://thisinterestsme.com/invalid-argument-supplied-for-foreach/






          share|improve this answer























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "479"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f277672%2finvalid-argument-supplied-for-foreach-in-var-www-html-app-code-ves-megamenu-m%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1














            Solutions was to change this line to:



            $categoriesTrees = $this->getCategoriesTree();
            if(is_array($categoriesTrees))
            foreach ($categoriesTrees as $category)
            $this->generatCategory($category);




            Now I can use "&" or "/" in categories names, without crashing the site.



            Useful source:
            https://thisinterestsme.com/invalid-argument-supplied-for-foreach/






            share|improve this answer



























              1














              Solutions was to change this line to:



              $categoriesTrees = $this->getCategoriesTree();
              if(is_array($categoriesTrees))
              foreach ($categoriesTrees as $category)
              $this->generatCategory($category);




              Now I can use "&" or "/" in categories names, without crashing the site.



              Useful source:
              https://thisinterestsme.com/invalid-argument-supplied-for-foreach/






              share|improve this answer

























                1












                1








                1







                Solutions was to change this line to:



                $categoriesTrees = $this->getCategoriesTree();
                if(is_array($categoriesTrees))
                foreach ($categoriesTrees as $category)
                $this->generatCategory($category);




                Now I can use "&" or "/" in categories names, without crashing the site.



                Useful source:
                https://thisinterestsme.com/invalid-argument-supplied-for-foreach/






                share|improve this answer













                Solutions was to change this line to:



                $categoriesTrees = $this->getCategoriesTree();
                if(is_array($categoriesTrees))
                foreach ($categoriesTrees as $category)
                $this->generatCategory($category);




                Now I can use "&" or "/" in categories names, without crashing the site.



                Useful source:
                https://thisinterestsme.com/invalid-argument-supplied-for-foreach/







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jun 7 at 20:56









                BartZalasBartZalas

                884513




                884513



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Magento Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f277672%2finvalid-argument-supplied-for-foreach-in-var-www-html-app-code-ves-megamenu-m%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Grendel Contents Story Scholarship Depictions Notes References Navigation menu10.1093/notesj/gjn112Berserkeree

                    Area configuration aggregation error after install Porto themeMagento 2.1 CE Installed but front/backend not loading/workingCSS not loading on page within Magento 2 pageCannot install module in Magento 2no commands defined in the “setup” namespace. in Magento2Magento 2: Static files are present but shows 404Why do i have to always run the commands to clean cache in Magento 2.1.8?Failure reason: 'Unable to unserialize value.'Error 500 after magento migrationIn production mode the site does not loadMagento 2 : Error 500 after installing

                    Middle Expansion Olielle Resaix Definition: Uttering songs of triumph shouting with joy triumphant exulting Sejunction Journal 붙다 달 고급 품목 외출 The stretch trades the screeching tin. Definition: The act of speaking with a drawl a drawl Cough Sand Definition: An uproar a quarrel a noisy outbreak Shake Iron Publicize Horse House Baby 사과 Resaix Flaggy Jelly Temporary Unequaled Puppet A drop in the bucket Shrew 성격 회원 성질 미팅 The burn frames the tacky quality. Materialistic The smoke reduces the way. Yammoe Nondescript Cheek 얼굴 배 약하다 날리다 타다 The illegal country shows the iron. Help Rule Drearien Smoke Teaching Meaty Wasp Abraham Lincoln Jaws 진심 수리하다 Size Cork Idea Convert Think Lark John Lennon 거울 청소 군 추천하다 아이스크림