Skip to content

cannot read property 'section loadurl' of undefined in all pages - Custom Theme #8628

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
anjanaVoilaah opened this issue Feb 21, 2017 · 4 comments
Labels
Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Progress: needs update

Comments

@anjanaVoilaah
Copy link

anjanaVoilaah commented Feb 21, 2017

Preconditions

  1. Magento version - 2.1.3
  2. PHP - 5.6

Steps to reproduce

It was working fine until last week... but after I updated my footer styles this issue occurs. I reverted my footer changes but the issue is still present. This is happening if I'm using my custom theme. When I change to default Luma theme JS error is not showing.

Expected result

  1. Page Main content need to be displayed

Actual result

  1. But instead, I'm getting JS error on pages like homepage, login, register etc.

issue3

issue4

@prateekkarki
Copy link

prateekkarki commented Apr 11, 2017

I'm was getting the same error too, with Magento version - 2.1.5, PHP - 7.0.6,
I had previously removed "content" container from customer module,
I fixed it by adding following code to layout.xml

    <referenceContainer name="content">
        <block name="customer.section.config" class="Magento\Customer\Block\SectionConfig"
               template="Magento_Customer::js/section-config.phtml"/>
        <block name="customer.customer.data"
               class="Magento\Customer\Block\CustomerData"
               template="Magento_Customer::js/customer-data.phtml"/>
    </referenceContainer>

@veloraven
Copy link
Contributor

@anjanaVoilaah thank you for your feedback.
Please provide exact steps in format:

Steps

  1. ....
  2. ....
  3. ....

@magento-engcom-team magento-engcom-team added G1 Passed Progress: needs update Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed and removed G1 Passed labels Sep 5, 2017
@magento-engcom-team
Copy link
Contributor

@anjanaVoilaah thank you for your report. Unfortunately, we can not fix the issue in the core if we can not reproduce it. We are closing the issue for now. If you'd like to update it, please reopen the issue.

@dhrumin44
Copy link

I am getting the error in console like this only on categoty page.

Uncaught TypeError: Cannot read property 'sectionLoadUrl' of undefined

I searched in Google for this and fixed the issue, it's created becuase of i have remove magento default main container and create new container so it's created , simple i past bellow code into my container and clear cache and issue was fixed.

<block name="customer.section.config" class="Magento\Customer\Block\SectionConfig"
               template="Magento_Customer::js/section-config.phtml"/>
 <block name="customer.customer.data" class="Magento\Customer\Block\CustomerData"
  template="Magento_Customer::js/customer-data.phtml"/>

Hope you understant my cenario and code.

magento-devops-reposync-svc pushed a commit that referenced this issue Nov 13, 2023
AC-10521: Exclude `Adminhtml` area changes in the static test to notify developer of missing GraphQl changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Progress: needs update
Projects
None yet
Development

No branches or pull requests

5 participants