Error in multisite environment

abhinavlal - June 9, 2008 - 11:29
Project:Javascript Aggregator
Version:5.x-1.3
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

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

#1

wad - July 18, 2008 - 09:38

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

#2

christefano - August 3, 2008 - 00:15
Title:Error in multisite environment» filemtime() fails with Lighttpd

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

#3

abhinavlal - August 3, 2008 - 14:02

no i'm using apache only.

#4

christefano - August 3, 2008 - 15:10
Title:filemtime() fails with Lighttpd» Error in multisite environment

Ah, well in that case.

#5

aruna.kulatunga - September 30, 2008 - 17:51

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

Rob Loach - October 30, 2008 - 19:47
Status:active» fixed

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

#7

wad - November 13, 2008 - 04:03
Category:support request» bug report
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?

#8

Rob Loach - November 14, 2008 - 00:37
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?

#9

System Message - November 28, 2008 - 00:41
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.