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

waddles’s picture

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.8
Configuration 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
christefano’s picture

Title: Error in multisite environment » filemtime() fails with Lighttpd

abhinavlal, are you using Lighttpd? filemtime() is known to fail with Lighttpd.

abhinavlal’s picture

no i'm using apache only.

christefano’s picture

Title: filemtime() fails with Lighttpd » Error in multisite environment

Ah, well in that case.

aruna.kulatunga’s picture

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-1222780149.js 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...

robloach’s picture

Status: Active » Fixed

Don't use a common files directory if you're on a multi-site install. Use sites/example.com/files.

waddles’s picture

Category: support » bug
Status: Fixed » Active

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?

robloach’s picture

Status: Active » Fixed

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?

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.