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;
I have this error when I add special characters to menu or categories like "&"
It's from module Ves Megamenu.
Warning:
Invalid argument supplied forforeach()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
add a comment |
I have this error when I add special characters to menu or categories like "&"
It's from module Ves Megamenu.
Warning:
Invalid argument supplied forforeach()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
add a comment |
I have this error when I add special characters to menu or categories like "&"
It's from module Ves Megamenu.
Warning:
Invalid argument supplied forforeach()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
I have this error when I add special characters to menu or categories like "&"
It's from module Ves Megamenu.
Warning:
Invalid argument supplied forforeach()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
magento2 php module megamenu
edited Jun 8 at 7:35
divya sekar
504118
504118
asked Jun 7 at 20:56
BartZalasBartZalas
884513
884513
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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/
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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/
add a comment |
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/
add a comment |
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/
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/
answered Jun 7 at 20:56
BartZalasBartZalas
884513
884513
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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