Javascript and CSS files not loading?
Hi there! I just updated to version 1.1.6 and ran into a little problem. The javascript and CSS files in the control panel don't seem to be loading properly, so everything looks a little bit yucky ...
As far as I can tell, the HTML source doesn't seem to be coming out as I would expect it to, but rather as this (should it have a slash between "admin.php" and "modules"?):
link rel="stylesheet" href="http://www.site.com/admin.phpmodules/..." type="text/css" media="screen"
script type="text/javascript" src="http://www.site.com/admin.phpmodules/..."
script type="text/javascript" src="http://www.site.com/admin.phpmodules/..."
Any idea what might be causing this issue with my setup?
Thanks in advance for any advice you may be able to give.
Replies
Low 31 Mar 2010 06:30
Hey Andrew,
Looks like you've discovered a little bug. I'll investigate and get back to you asap.
Low 31 Mar 2010 08:20
Hey Andrew,
I've sent you an email to you mac.com address with a patched version of mcp.low_variables.php. Let me know how that works out for you.
Andrew Mac 31 Mar 2010 09:19
Hi Low. Yes, that patched file seems to be working well, and everything appears to be back to normal. Thanks for the quick fix! :-)
Low 31 Mar 2010 09:24
Excellent. I'll add the fix to the next official release.
Nick 3 Jun 2010 15:59
Hi, I just downloaded this extension as well, and it seems the styling is not loading properly as well. Perhaps its the same issue? My download was 1.2.3 and am running EE 1.6.8. See screenshot attached.
Low 3 Jun 2010 16:44
Hey Nick,
First of all, the coming 2 weeks I can only offer limited support, 'cause I'm on vacation in the States.
Here's a couple of things to check:
- Confirm you copied the low_variables folder containing the CSS and JS to your Themes folder on your server
- Confirm you've got the url to your themes folder set up correctly
- What are the URLs generated in the source code?
That last one you can check by viewing the source code of the module page, and then search for "Low Variables Assets". Then you should see one link element and two script elements pointing to the CSS and JS files. If they're pointing to the wrong path, you should probably tweak the Themes path in your control panel settings. If the paths are correct but the problem remains, make sure your cache is cleared (I know Safari is particularly stubborn in this case)