I sometimes have very slow edit content pages.
The edit popup takes almost 1 minute to load (but then loads).

After saving, I see the following error message:

Warning: file_get_contents(http://domain.com/sites/default/files/js/wysiwyg/wysiwyg_tinymce_VxxRIlc...): failed to open stream: Connection timed out in _locale_parse_js_file() (Zeile 1488 von /var/www/domain.com/htdocs/includes/locale.inc).

Is this a known issue? What could cause a timeout for acessing a local file?

Comments

TwoD’s picture

Status: Active » Fixed

That file should not be fetched over HTTP when aggregated with the rest of the scripts (The Optimize JavaScripts setting and having the Locale module installed can trigger this).
The issue has been fixed in 7.x-2.x-dev, and the fix will be part of 7.x-2.3, by using the public:// "protocol" instead of an absolute URL.

Status: Fixed » Closed (fixed)

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

x23489djk23’s picture

Well, has this been fixed? I'm using 7.x-2.2 version and I have the same issue. I've compared the code with 7.x-2.x-dev and the only place it is using "public://" scheme is line 380 in 2.x-dev and line 339 in 2.2, so 2.2 is already using public://

Is there an other setting that forces public:// scheme to use http:// ? I've temporarily hacked locale.inc to increase timeout for file_get_contents if the URL scheme starts with http:// and so far it works it seems...

regilero’s picture

Issue summary: View changes

I think the patch is this one:
http://cgit.drupalcode.org/wysiwyg/patch/?id=cab91b85bbcc01b1cb3d15e3574...

---
diff --git a/wysiwyg.module b/wysiwyg.module
index 22130ea..aba3920 100644
--- a/wysiwyg.module
+++ b/wysiwyg.module
@@ -348,7 +348,7 @@ function wysiwyg_load_editor($profile) {
             drupal_add_js($init, array('type' => 'inline') + $default_library_options);
           }
           else {
-            drupal_add_js(file_create_url($uri), $default_library_options);
+            drupal_add_js($uri, $default_library_options);
           }
         }
       }