I am in the process of testing a Magento 1.3 site using Magento 1.4. I am seeing very weird and inconsistent behavior. Instead of including the URL of my javascript files, Magento is creating tags with the full filesystem path of the js files, as so:
<script type="text/javascript" src="/home/my_username/public_html/js/prototype/prototype.js"></script>
I believe this is related to the new "Themes JavaScript and CSS files combined to one file" function. In fact, when I log into the admin and click "Flush JavaScript/CSS Cache", then the first page load is successful, and I see a single JS include similar to:
<script type="text/javascript" src="/media/js/5b8cfac152fcb2a5f93ef9571d338c54.js"></script>
But subsequent age loads load every single JS file, with the full path names. Which obviously isn't going to work. Anyone have any ideas on what could be wrong or how to fix this issue?
in magento 1.4 the config_id is 879 (for me) Setting this value to 0 gave me all my .js files back. Super weird
It was permissions issue in my case. These ssh commands run in the root directory of Magento fixed it:
If it still doesn't work then change these two values for path column in the core_config_data in MySQL from "1" to "0":
What are the values for the various Base URL fields under "Web" in the configuration? Should be something along the lines of
for the base skin URL.
I had the same Problem.
Its because magento can't find a javascript file. Look at your /var/log/exception.log (You have to enable the log in System -> Config -> Developer Options)
In my log was the following error:
exception 'Exception' with message 'Warning: filemtime() [function.filemtime]: stat failed for /var/www/js/calendar/lang/calendar-en.js in /var/www/app/code/core/Mage/Core/Helper/Data.php on line 631' in /var/www/app/code/core/Mage/Core/functions.php:245
So I created the file and voila it works !