Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
MacBook running Yosemite
I am getting this error notice regarding live reload
LiveReload is currently enabled but could not be loaded. Please ensure that livereload.js is being served at the configured path (http://localhost:35729/livereload.js?snipver=1).
How to correct this please?
I cannot remember getting this message with previous versions. In fact I'm pretty sure I've not seen this before.
Comments
Comment #1
fubhy CreditAttribution: fubhy commentedThis is a new error message which was added in 4.3. The error itself is not new though. Previously it was not visualized though. Previously you would just see a red message in the Console e.g. in Chrome Inspector telling you that livereload.js could not be loaded. To prevent an actualy error in the browser we now check before including that file if it can even be loaded. So: The message just means that livereload.js can't be loaded (LiveReload is enabled in the theme settings but not working because Guard is not running). Fix: Run Guard or disable LiveReload.
Comment #2
karolus CreditAttribution: karolus commentedI would also add that this fixed it for me. To add onto what Fubhy said, navigate into your theme's folder via your CLI (Terminal, et.al.) and run this command:
$ drush omega-guard
Once this is run, you should be OK.
Comment #4
basvredelingGuard-livereload 2.* will fail silently if the default port (35729) is taken.
Comment #5
Skandabhatt CreditAttribution: Skandabhatt commentedok
Comment #6
MrPaulDriver CreditAttribution: MrPaulDriver commentedActually I am seeing this message a lot recently. Guard running correctly. Anybody else?
I am working omn a macbook pro and find that a reboot fixes the problem but only temporarily
Comment #7
MrPaulDriver CreditAttribution: MrPaulDriver commentedComment #8
basvredeling@MrPaulDriver try to find out what's running on port 35729 (or whatever port you've set livereload to use).
You can use netstat or losf in terminal:
netstat -anp tcp | grep 35729
lsof -i tcp:35729
If it's not the livereload process, kill it.
Comment #9
MrPaulDriver CreditAttribution: MrPaulDriver commentedTerminal doesn't return anything. I guess this means nothing has been traced?
Comment #10
basvredelingIf both commands don't return anything there is no process listening on this port.
Comment #11
MrPaulDriver CreditAttribution: MrPaulDriver commentedThanks. Still don't understand why it is dropping out though.
Comment #12
MrPaulDriver CreditAttribution: MrPaulDriver commentedRevisiting this as I still have the problem more often than not of Livereload not working. Now I am seeing other processes in play. No sure where to go from here. Any pointers?
lsof
Comment #13
basvredelingPerhaps you've started the livereload plugin via omega development settings and command line (drush ogrd) simultaneously?
Comment #14
MrPaulDriver CreditAttribution: MrPaulDriver commentedMy understanding is that the development settings for Livereload need to be enabled for drush ogrd to work.
Comment #15
basvredelingNot quite: drush omega-guard starts a live reload server. So does omega development extension. You should be able to run either one.
What you need is: a) drush ogrd livereload or omega developer extension livereload as a server and b) browser livereload plugin as a client. The browser plugin connects to the server and makes sure the browser is reloaded if the livereload server instructs it to. Guard monitors your theme directory for file changes and runs sass to regenerate the css.
Comment #16
MrPaulDriver CreditAttribution: MrPaulDriver commentedThank you for taking so much time with me Bas.
I have always had Livereload browser plugin disabled as I read somewhere that it conflicts with drush ogrd. I normally have Omega dev settings enabled and then run drush ogrd and usually find that everything works. It is only recently that I have started to have problems.
I tried today, disabling livereload developer settings in Omega, running drush ogrd and enabling Livereload Chrome plugin. This also appears to work for me. I'll try this for a while and see how I get on.
Comment #17
basvredelingexcellent... happy theming!
Comment #18
basvredelingThis is a user specific issue, so let's close it.