Posted by abhinavlal on June 9, 2008 at 11:29am
Jump to:
| Project: | Javascript Aggregator |
| Version: | 5.x-1.3 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
I'm using the module in multisite environment, whr i use the same code base but the files folder for each website is different. i got error
"warning: filemtime() [function.filemtime]: stat failed for 3000/misc/jquery.js in /path to core/sites/all/modules/javascript_aggregator/javascript_aggregator.module on line 49."
any solutions
Comments
#1
I am seeing the same thing, also with a multisite:
filemtime() [<a href='function.filemtime'>function.filemtime</a>]: stat failed for sites/all/modules/ubercart/uc_cart/uc_cart_block.js?79487 in /srv/www/drupal/5/sites/all/modules/javascript_aggregator/javascript_aggregator.module on line 49.but this file does exist. I don't know why it's appending '?79487' to it
$ ls -l sites/all/modules/ubercart/uc_cart/uc_cart_block.js-rw-r--r-- 1 1080 1080 760 2008-04-24 05:38 sites/all/modules/ubercart/uc_cart/uc_cart_block.js
The error gets logged to the system log on every page view when JS Aggregator is enabled.
Drupal 5.8Configuration file Protected
Database schema Up to date
File system Writable (public download method)
MySQL database 5.0.45
PHP 5.2.3-1ubuntu6.3
PHP register globals Disabled
Unicode library PHP Mbstring Extension
Web server lighttpd/1.4.18
#2
abhinavlal, are you using Lighttpd? filemtime() is known to fail with Lighttpd.
#3
no i'm using apache only.
#4
Ah, well in that case.
#5
I am also receiving the same error, using Drupal 5.7 on Apache 2.
warning: filemtime() [function.filemtime]: stat failed for http://xx.xx.xx.xx/web/files/js/c8bd83cd9b3d8d14a762518fda0cdc60-1222780... in /var/www/sites/all/modules/javascript_aggregator/javascript_aggregator.module on line 50,where line 50 reads
$scripts_js_files[$value] = filemtime($value);We are also using the CDN module and mysql is hosted in a win 2003 server. CDN is temporary also in a win server. Definitely not using lighttpd at the moment. Any help will be most welcome...
#6
Don't use a common files directory if you're on a multi-site install. Use sites/example.com/files.
#7
I can't see how "Don't use a common files directory" is a fix. It may be a known issue, but I don't see anything in the README.txt to warn people about it.
If it can't be fixed, can it at least be documented?
#8
Great idea! http://drupal.org/cvs?commit=152719
"Make sure you have site specific files directories setup in admin/settings/file-system."..... Think it needs more?
#9
Automatically closed -- issue fixed for two weeks with no activity.