Getting Cannot read property 'nodeName' of undefined in magento 2 consoleCustomize Magento 2 Blank themeMagento 2 - jsError - Cannot read property 'autocomplete' of undefinedCannot read property `scopeLabel` of undefined on Product Detail PageNo content is displaying on the main content areaIs it possible to import all style from base theme into custom theme in magento 2 and how?Uncaught TypeError: Cannot read property 'get' of undefinedCannot read property 'RFC_2822' of undefinedMagento 2 Luma Theme inherence error 2.2.1 CEChanges in Parent Luma theme is not reflected in Child Luma theme in Magento 2.3.0?Magento 2 Uncaught TypeError: Cannot read property 'quoteData' of undefined
Can I play a first turn Simic Growth Chamber to have 3 mana available in the second turn?
Why do they not say "The Baby"
Why is the total number of hard disk sectors shown in fdisk not the same as theoretical calculation?
How does one stock fund's charge of 1% more in operating expenses than another fund lower expected returns by 10%?
Does Google Maps take into account hills/inclines for route times?
Dropping outliers based on "2.5 times the RMSE"
Why is dry soil hydrophobic? Bad gardener paradox
Are there any double stars that I can actually see orbit each other?
Is `curl something | sudo bash -` a reasonably safe installation method?
Help with understanding nuances of extremely popular Kyoto-ben (?) tweet
Too many spies!
Why the term 'unified' in "unified mass unit"?
A DVR algebra with weird automorphisms
P-MOSFET failing
Players of unusual orchestral instruments
How to check the quality of an audio sample?
Can a continent naturally split into two distant parts within a week?
Hacker Rank : Electronics Shop
Draw 3D Cubes around centre
What does "Fotze" really mean?
Find the wrong number in the given series: 6, 12, 21, 36, 56, 81?
Missing Contours in ContourPlot
In which ways do anagamis still experience ignorance?
Why would an Inquisitive rogue choose to use Insightful Fighting as opposed to using their Cunning Action to Hide?
Getting Cannot read property 'nodeName' of undefined in magento 2 console
Customize Magento 2 Blank themeMagento 2 - jsError - Cannot read property 'autocomplete' of undefinedCannot read property `scopeLabel` of undefined on Product Detail PageNo content is displaying on the main content areaIs it possible to import all style from base theme into custom theme in magento 2 and how?Uncaught TypeError: Cannot read property 'get' of undefinedCannot read property 'RFC_2822' of undefinedMagento 2 Luma Theme inherence error 2.2.1 CEChanges in Parent Luma theme is not reflected in Child Luma theme in Magento 2.3.0?Magento 2 Uncaught TypeError: Cannot read property 'quoteData' of undefined
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I am getting this error on all of the pages except the HOMEPAGE, i am using a custom theme whose parent theme is LUMA.
magento2 theme luma-theme parent-child-theme
add a comment |
I am getting this error on all of the pages except the HOMEPAGE, i am using a custom theme whose parent theme is LUMA.
magento2 theme luma-theme parent-child-theme
Check file js/custom.js in your theme. It maybe cause this problem. Some element missing or hidden cause this undefined
– mrtuvn
Jul 18 '17 at 0:53
please provide link for your site. i will check and tell
– Rama Chandran M
Jul 18 '17 at 20:20
add a comment |
I am getting this error on all of the pages except the HOMEPAGE, i am using a custom theme whose parent theme is LUMA.
magento2 theme luma-theme parent-child-theme
I am getting this error on all of the pages except the HOMEPAGE, i am using a custom theme whose parent theme is LUMA.
magento2 theme luma-theme parent-child-theme
magento2 theme luma-theme parent-child-theme
edited Jul 18 '17 at 10:54
Teja Bhagavan Kollepara
3,0084 gold badges21 silver badges51 bronze badges
3,0084 gold badges21 silver badges51 bronze badges
asked Jul 17 '17 at 19:54
Abdul MoizAbdul Moiz
1691 silver badge13 bronze badges
1691 silver badge13 bronze badges
Check file js/custom.js in your theme. It maybe cause this problem. Some element missing or hidden cause this undefined
– mrtuvn
Jul 18 '17 at 0:53
please provide link for your site. i will check and tell
– Rama Chandran M
Jul 18 '17 at 20:20
add a comment |
Check file js/custom.js in your theme. It maybe cause this problem. Some element missing or hidden cause this undefined
– mrtuvn
Jul 18 '17 at 0:53
please provide link for your site. i will check and tell
– Rama Chandran M
Jul 18 '17 at 20:20
Check file js/custom.js in your theme. It maybe cause this problem. Some element missing or hidden cause this undefined
– mrtuvn
Jul 18 '17 at 0:53
Check file js/custom.js in your theme. It maybe cause this problem. Some element missing or hidden cause this undefined
– mrtuvn
Jul 18 '17 at 0:53
please provide link for your site. i will check and tell
– Rama Chandran M
Jul 18 '17 at 20:20
please provide link for your site. i will check and tell
– Rama Chandran M
Jul 18 '17 at 20:20
add a comment |
1 Answer
1
active
oldest
votes
In this case you will definitely accessing any node in html which is not present. so you have to place its presence check before calling it. wrap your code like following
if(jQuery('#someID').length)
Now question is how You can fins it it will present in above console error check ne by one lines and you will find that line definitely it will be your custom line, not magentos code.
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%2f184174%2fgetting-cannot-read-property-nodename-of-undefined-in-magento-2-console%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
In this case you will definitely accessing any node in html which is not present. so you have to place its presence check before calling it. wrap your code like following
if(jQuery('#someID').length)
Now question is how You can fins it it will present in above console error check ne by one lines and you will find that line definitely it will be your custom line, not magentos code.
add a comment |
In this case you will definitely accessing any node in html which is not present. so you have to place its presence check before calling it. wrap your code like following
if(jQuery('#someID').length)
Now question is how You can fins it it will present in above console error check ne by one lines and you will find that line definitely it will be your custom line, not magentos code.
add a comment |
In this case you will definitely accessing any node in html which is not present. so you have to place its presence check before calling it. wrap your code like following
if(jQuery('#someID').length)
Now question is how You can fins it it will present in above console error check ne by one lines and you will find that line definitely it will be your custom line, not magentos code.
In this case you will definitely accessing any node in html which is not present. so you have to place its presence check before calling it. wrap your code like following
if(jQuery('#someID').length)
Now question is how You can fins it it will present in above console error check ne by one lines and you will find that line definitely it will be your custom line, not magentos code.
answered Jan 22 at 10:51
Hassan Ali ShahzadHassan Ali Shahzad
8394 silver badges17 bronze badges
8394 silver badges17 bronze badges
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%2f184174%2fgetting-cannot-read-property-nodename-of-undefined-in-magento-2-console%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
Check file js/custom.js in your theme. It maybe cause this problem. Some element missing or hidden cause this undefined
– mrtuvn
Jul 18 '17 at 0:53
please provide link for your site. i will check and tell
– Rama Chandran M
Jul 18 '17 at 20:20