Closed (cannot reproduce)
Project:
Drupal core
Version:
6.2
Component:
locale.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Apr 2008 at 14:51 UTC
Updated:
27 Jun 2011 at 13:36 UTC
When javascript is coming from a virtual path, the locale module reports an error during (or slightly after) update.php is run.
This happens when locale Parses a JavaScript file, extracts strings wrapped in Drupal.t() and Drupal.formatPlural() and inserts them into the database.
warning: file_get_contents(countdowntimer/timerjs) [function.file-get-contents]: failed to open stream: No such file or
directory in /... /public_html/includes/locale.inc on line 1622.
The code in question calls the file_get_contents($filepath) which cannot load urls.
Comments
Comment #1
jvandervort commentedThe last line should read:
The code in question calls the file_get_contents($filepath) which cannot load urls in all php installations.
There is apparently an
allow_url_fopen booleanwhich can be set only in the php.ini file.Also there is an interaction with drupal_add_js which appends a ?987987987 to the end of the url.
Comment #2
dpearcefl commentedDoes this issue exist in current D6?
Comment #3
dpearcefl commentedComment #4
jvandervort commentedIt might, but I have no way of testing anymore. I redeveloped the module to create an actual javascript file instead of using a virtual path callback.
Comment #5
dpearcefl commentedI guess since no one else was contributing comments, we'll have to mark this one "can't reproduce" which isn't entirely correct but until someone else pops up, it will have to do.