The following errors display:
Warning: file_get_contents(http://heerenveentest.sp.nl/sites/heerenveentest.sp.nl/files/js/wysiwyg/...): failed to open stream: Connection refused in _locale_parse_js_file() (regel 1488 van /var/aegir/platforms/temp-platform/includes/locale.inc).
Warning: file_get_contents(http://heerenveentest.sp.nl/sites/heerenveentest.sp.nl/files/js/wysiwyg/...): failed to open stream: Connection refused in drupal_build_js_cache() (regel 4940 van /var/aegir/platforms/temp-platform/includes/common.inc).
Sites running under Aegir, multisite.
The following patch solves the warning:
diff --git locale.inc locale.inc
index c168da0..82553c7 100644
--- locale.inc
+++ locale.inc
@@ -1483,7 +1483,7 @@ function _locale_parse_js_file($filepath) {
// The file path might contain a query string, so make sure we only use the
// actual file.
$parsed_url = drupal_parse_url($filepath);
- $filepath = $parsed_url['path'];
+ $filepath = drupal_realpath($parsed_url['path']);
// Load the JavaScript file.
$file = file_get_contents($filepath);
Comment | File | Size | Author |
---|---|---|---|
locale.inc_.patch | 604 bytes | thomasdegraaff | |
Comments
Comment #2
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedalready included in 7.24 I think