3 Comments

Can Not View Content Blocks due to require.js error – Magento 2 theme change

Magento2 getViewFileUrl on backend and frontend
Create 'blank' custom homepage in Magento2

I am facing problem with require.js on Magento 2 theme change
Content > Blocks
The page shows endless spinner and I can never view my imported blocks for my new theme. When I do Firebug on the page. This is the error message

Error: Script error for: Magento_Ui/js/lib/key-codes
htt://requirejs.org/docs/errorshtml#scripterror require.js (line 166,
col 17)

Error: Script error for: Magento_AdminNotification/toolbar_entry
htt://requirejs.org/docs/errorshtml#scripterror require.js (line 166,
col 17)

Error: Script error for: Magento_Ui/js/core/app
htt://requirejs.org/docs/errorshtml#scripterror require.js (line 166,
col 17)

Error: Script error for: Magento_AdminNotification/system/notification
htt://requirejs.org/docs/errorshtml#scripterror require.js (line 166,
col 17)

Can someone help me resolving this require.js issue?

Many thanks in advance 🙂

Related Posts

  • how to fix error after deploy:mode: developer? (1)
    in magento2 after i created custom.less in myTheme. it not render file less. so y tried run cli php bin/magento deploy:mode:set developer then in admin get error SyntaxError: missing } after property list }; require...nfig.js (line 381, col 1) "NetworkError: 404 Not Found - […]
  • How to import product content different for each store view (translations/multilingual)? (1)
    In Magento 1.x you could import different content for each store view by having each store data in new line and empty sku field. Unfortunately this seems not to work in Magento 2 and I could not find any information about it. The official docs are not very helpful on this matter. I […]
  • How to import product content different for each store view (translations/multilingual)? (1)
    In Magento 1.x you could import different content for each store view by having each store data in new line and empty sku field. Unfortunately this seems not to work in Magento 2 and I could not find any information about it. The official docs are not very helpful on this matter. I […]
  • Product edit so slow on Magento 2 (1)
    I have a Magento 2 store with around 20k products, and when I try to edit a product, it loading up the content and showing a spinner, but after few seconds, page freezes. But I see the content loaded behind the transparent loader background. But still the page is not accessible and […]
  • white page when i click on system-configuration (2)
    I have added a new theme, but when i clik the system-configuration, showt a white page. with this error. (Fatal error: Call to a member function toOptionArray() on a non-object in /public_html/app/code/core/Mage/Adminhtml/Block/System/Config/Form.php on line 463) Thanks in advance for help
  • Magento 1.9.2.4 patch 8788 && order view adminhtml malformed (1)
    Magento 1.9.2.4 patch 8788 && order view malformed After running patch 8788 with -R (and first removing uploaderSingle.swf) succesfully we now see an empty order page. And nothing in logs ... Anyone run into this one? [UPDATE] Instead of clicking order 1 I clicked order […]
  • Magento 1.9.2.4 patch 8788 && order view adminhtml malformed (1)
    Magento 1.9.2.4 patch 8788 && order view malformed After running patch 8788 with -R (and first removing uploaderSingle.swf) succesfully we now see an empty order page. And nothing in logs ... Anyone run into this one? [UPDATE] Instead of clicking order 1 I clicked order […]
  • Magneto2 Include custom JS in theme (2)
    I want to include custom js in my theme i put it in web/js path of theme F:xampphtdocsmagento2appdesignfrontendGWthemegwwebjsjquery.flexisel.js Then i created requirejs-config.js var config = { map: { '*': { clientrotate: 'GWtheme_gw/js/jquery.flexisel' […]
  • Is it possible to redirect the Magento 2 Contact Form without a custom module? (0)
    I'm trying to get the Magento 2 Contact form to redirect not to /contact/index but someplace else. Here is what I have so far: We use a custom theme, in which I have created a the following folders Magento_Contact -email -submitted_form.html -templates - […]
  • How can i solve the error oftenly my menu script collapsed. [closed] (0)
    Am using magento sample data theme and changed menu block. How can i solve oftenly my menu script collapse. i am using this menu.
Magento2 getViewFileUrl on backend and frontend
Create 'blank' custom homepage in Magento2

3 Comments on this article

  • User November 12, 2016

    First of all your link have missing p in htt::// instead of http://. so check about url issue.
    If further issue is not resolve, try cmd command,

    php bin/magento setup:static-content:deploy
    

    remove var folder from root.

    Also set permission for magento projects.

    Reply

  • User November 12, 2016

    Hi All / Rakesh / David,

    Thank you so much for your response.
    I have set up the file permission for
    All directories have 770 permissions.
    All files have 660 permissions.
    But still the error message remains. I have spent one week and still can not get thru

    I also have tried copy paste requirejs-config.js from pub static to
    /app/design/frontend///web/js

    based on this thread
    get requirejs-config.js to load declared cdn's for jquery

    basically what i have done is installing magento full package theme (F2).
    Then, I access admin page and click content>blocks
    so this problem might be experienced by everybody who install magento 2 for the first time.

    Is there a way to fix this permanently?
    Thank you so much for your help in advance. 🙂


    Hi All

    I am facing problem with require.js on Magento 2 theme change Content > Blocks The page shows endless spinner and I can never view my imported blocks for my new theme. When I do Firebug on the page. This is the error message

    Error: Script error for: Magento_Ui/js/lib/key-codes http://requirejs.org/docs/errorshtml#scripterror require.js (line 166, col 17)
    
    Error: Script error for: Magento_AdminNotification/toolbar_entry http://requirejs.org/docs/errorshtml#scripterror require.js (line 166, col 17)
    
    Error: Script error for: Magento_Ui/js/core/app http://requirejs.org/docs/errorshtml#scripterror require.js (line 166, col 17)
    
    Error: Script error for: Magento_AdminNotification/system/notification http://requirejs.org/docs/errorshtml#scripterror require.js (line 166, col 17)
    

    Reply

  • User November 12, 2016

    Magento 2 team is trying to create a huge blunder by setting permissions managed at an application level.

    File and Dir Permissions should not be managed at an application level.

    If you look at around this forums many are complaining about file permissions issue. This has caused Require.js problems, css problems , etc.

    Can anyone tell me how can I survive just running magento 2 by setting file permission manually?
    I have set dir permission = 755
    and file permission = 644

    770 for dir and 660 for file does not work . it trigger 403 error.
    I can not even view my content>blocks
    Please help

    Reply

Add a comment