1

There are some posts about this error for Drupal 7, but I'm using Drupal 8.1 and those solutions don't work for D8.

I tried this patch (coded for D7) and doesn't work.

The effect of the error is that QuickEdit doesn't work: sometimes the quick edit link doesn't appears, sometimes it appears but when edit some fields I get error.

Can anybody help?

UPDATE for neograph: I haven't changed anything about the loading of the javascript. The only thing I did is edit the my_theme.libraries.yml for adding JS plugins:

global-css:
  css:
    theme:
      #css/style.css: { }
      dist/css/style.css: { }

global-js:
  js:
    #js/script.js: { }
    bower_components/slick-carousel/slick/slick.min.js: { }
    bower_components/slicknav/dist/jquery.slicknav.min.js: { }
    bower_components/superfish/dist/js/superfish.min.js: { }
    dist/js/script.js: { }
  dependencies:
    - core/jquery
3
  • Do you have changed anything in the loading of the javascript? Modules like Advanced CSS/JS Aggregation can cause this if configured incorrectly. – Neograph734 Apr 24 '16 at 10:29
  • @Neograph734: could you check the Update on my question post? Thanks – Fred K Apr 24 '16 at 12:19
  • I am still on D7 so I might not be the right person for this, but it does seem to have something to with JavaScript loading in the wrong order, or a missing dependency. Or perhaps your plugins are conflicting with each other. – Neograph734 Apr 24 '16 at 13:55
0

The problem is in panels module, upgrade to latest version to fix the issue. For more details see https://www.drupal.org/node/2713123

0

add defer to js files. When present, it specifies that the script is executed when the page has finished parsing.

global-css:
 css:
 theme:
   #css/style.css: { }
   dist/css/style.css: { }

global-js:
 js:
   #js/script.js: { }
   bower_components/slick-carousel/slick/slick.min.js: { attributes: { defer: true } }
   bower_components/slicknav/dist/jquery.slicknav.min.js: { attributes: { defer: true } }
   bower_components/superfish/dist/js/superfish.min.js: { attributes: { defer: true } }
   dist/js/script.js: { attributes: { defer: true } }
dependencies:
 - core/jquery

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.