Closed (duplicate)
Project:
Drupal core
Version:
8.9.x-dev
Component:
asset library system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
7 Nov 2015 at 01:48 UTC
Updated:
30 Sep 2021 at 23:08 UTC
Jump to comment: Most recent
Comments
Comment #2
cilefen commentedI cannot reproduce this on HEAD. Please post whatever errors are seen in your browser's console log and any PHP errors in the server log.
Comment #3
casismary commentedLike cilefen I cannot reproduce the issue as well on 8.0.x-dev, with the admin theme as seven.
Tested with Chrome on mac.
Comment #4
Jeff Burnz commentedThere are two console errors logged, I'll check for PHP errors shortly:
POST http://d8nov7:8888/editor/dialog/image/basic_html?_wrapper_format=drupal_modal 500 (Internal Server Error)k.cors.a.crossDomain.send @ jquery.js:8630n.extend.ajax @ jquery.js:8166Drupal.Ajax.execute @ ajax.js?v=8.0.0-dev:496Drupal.ckeditor.openDialog @ ckeditor.js?v=8.0.0-dev:238editor.addCommand.exec @ plugin.js?t=FA3A:238exec @ ckeditor.js?v=4.5.4:172window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.tools.extend.execCommand @ ckeditor.js?v=4.5.4:235(anonymous function) @ plugin.js?t=FA3A:215b @ ckeditor.js?v=4.5.4:10window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.event.CKEDITOR.event.fire @ ckeditor.js?v=4.5.4:11window.CKEDITOR.window.CKEDITOR.dom.e.edit @ ckeditor.js?v=4.5.4:998a.addCommand.exec @ ckeditor.js?v=4.5.4:958exec @ ckeditor.js?v=4.5.4:172window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.tools.extend.execCommand @ ckeditor.js?v=4.5.4:235CKEDITOR.tools.extend.click @ ckeditor.js?v=4.5.4:666p.execute @ ckeditor.js?v=4.5.4:667(anonymous function) @ ckeditor.js?v=4.5.4:668(anonymous function) @ ckeditor.js?v=4.5.4:29window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.tools.callFunction @ ckeditor.js?v=4.5.4:29onclick @ article:1I am using Chrome on OSX.
Comment #5
cilefen commentedThis is unusual. CORS errors indicate there is some kind of disconnect between where your site is served and where it tried to POST when the button was clicked. Is this site being browsed on http://d8nov7:8888?
Did this install change URLs recently? A
drush crmay help.Comment #6
cilefen commentedComment #7
Jeff Burnz commentedYes, its being browsed on http://d8nov7:8888.
No change to the URL, clean install on Mamp Pro.
Note I am using Seven admin theme for editing content.
I am getting this error:
Drupal\Core\Asset\Exception\InvalidLibrariesExtendSpecificationException: The specified library "classy/file" does not exist. in Drupal\Core\Asset\LibraryDiscoveryCollector->applyLibrariesExtend() (line 168 of /Users/jmburnz/Sites/contrib/drupal8head/nov7/drupal/core/lib/Drupal/Core/Asset/LibraryDiscoveryCollector.php).OK, heres the very strange bit... I have this in my front end theme:
I actually set false on all the Classy libraries and load my own in
hook_page_attachments_alter(), if I remove thisclassy/file: false, everything works (the modal pops up and I can add images etc).This seems very strange to me since I am actually using Seven as my admin theme for adding/editing content, not my front end custom theme.
Comment #8
cilefen commentedBased on this interesting discovery I am moving this issue to the theme system component because the problem is there.
Comment #9
Jeff Burnz commentedLets get some asset library team eyes on this, are you there Wim? :)
I have worked around this by removing the library-override from the info file and unset the libraries in hook_page_attachments_alter().
Comment #10
star-szrIt may have something to do with the fact that classy/file is a libraries-extend of file/drupal.file. So there may be a bug where removing classy/file (the library extending another library) removes the library/libraries it's extending as well.
Comment #11
technotim2010 commentedI have this same issue on a D8 site runing 8.0.1 but using a subtheme of the Adaptive Theme. Error logges
Drupal\Core\Asset\Exception\InvalidLibrariesExtendSpecificationException: The specified library "classy/file" does not exist. in Drupal\Core\Asset\LibraryDiscoveryCollector->applyLibrariesExtend() (line 168 of /var/www/html/d8/core/lib/Drupal/Core/Asset/LibraryDiscoveryCollector.php).
I reverted to Bartik (which is based on Classy) and can confirm this issue is resolved.
Should I cross post on the Adaptive Theme issue queue or is this a Core issue?
Regards
Tim
Comment #12
Jeff Burnz commented#11, see #7, the bug is in Drupal, your sub theme is doing something you are supposed to be able to do in a drupal theme.
To work around this bug you can manually remove this code from your theme .info.yml file:
This is OK as long as you are running the latest dev of Adaptivetheme because it no longer relies on Classy.
Comment #13
technotim2010 commentedHi
I have updated to the latest version of adaptive theme, created a new subtheme and can confirm the fix in #12 works.
Totally buggered my theming though!!! What are Sundays for though, (hello git my old friend)
Tim
Comment #22
larowlanThis is a duplicate of #2642122: Overriding already overridden libraries-override requires knowledge of previous libraries-overrides