Closed (cannot reproduce)
Project:
Simple live CSS
Version:
8.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Jun 2021 at 07:06 UTC
Updated:
29 Nov 2022 at 14:26 UTC
Jump to comment: Most recent
Comments
Comment #2
thomas1977 commentedComment #3
thomas1977 commentedComment #4
robindh commentedHi there; I've tested the module with the latest drupal 9 version (9.2.0) - brand new drupal install, no other contrib modules / themes used. Everything seems to be working ok for me (using google chrome).
If I had to make a guess; it seems like the javascript libraries are not loaded correctly; maybe they are in another location than the module expects it? They should be located in
<project-root>/web/libraries.Could you check the javascript console for errors? This should also show scripts that cannot be loaded.
Comment #5
thomas1977 commentedHi, and thanks a lot for your answer!
In google chrome, on a brand new Drupal 9.2.0 installation with only Simple Live CSS contrib module installed, the Javascript Console gives me this error whenever I mouse click the orange box (and the text editor is not showing):
See error here (screenshot)
https://www.dropbox.com/s/g33mi6b984nhw3g/error.png
I have, for now, the two libraries (blockui and ace-builds) installed in this location:
Drupal root/libraries/blockui
Drupal root/libraries/ace-builds
... but it doesn't seem to work. I'm probably doing something wrong?
Comment #6
robindh commentedHm, libraries seem to be fine. The error points out that the /live_css/get endpoint does not exist.
It is defined by the module though, so it should be available. You can test if it is working by navigating to http://localhost:8888/live_css/get in the browser - it should not give back a 404 page.
Have you tried clearing the caches? Route definitions are cached; so maybe that could fix it?
Comment #7
thomas1977 commentedHi again. It still doesn't seem to work. Navigating to http://localhost:8888/[sitename]/live_css/get gives me a completely blank screen.
Comment #8
robindh commentedGoing to close this issue, since this seems to be a local issue on the site itself.
The endpoint to get live css is located on
http://localhost:8888/live_css/getinstead ofhttp://localhost:8888/[sitename]/live_css/get- this could be the reason why it's not working.Maybe it's a specific multisite configuration or there are url rewrite rules active?
Feel free to open a new issue if there is new info available.