Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
TwoDThat 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.Comment #3
x23489djk23 CreditAttribution: x23489djk23 commentedWell, 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...
Comment #4
regilero CreditAttribution: regilero commentedI think the patch is this one:
http://cgit.drupalcode.org/wysiwyg/patch/?id=cab91b85bbcc01b1cb3d15e3574...