Hi,
after uploading of my site from localhost to a hosted server, I got the following warnings:

* warning: file_get_contents(languages/de_416f5514f724f5469666dec88a275323.js) [function.file-get-contents]: failed to open stream: No such file or directory in /home/www/doc/16750/...../includes/common.inc on line 2359.
* warning: file_get_contents(languages/de_416f5514f724f5469666dec88a275323.js) [function.file-get-contents]: failed to open stream: No such file or directory in /home/www/doc/16750/...../includes/common.inc on line 2359.

Any idea, what to do?

Comments

marcvangend’s picture

Drupal is looking for a javascript file (languages/de_416f5514f724f5469666dec88a275323.js) but it isn't there. This file should contain translated strings for javascript functions and it's automatically generated by Drupal. My guess is that Drupal cannot write the file to your languages folder. Try to CHMOD 'languages' to 777 and see if that solves the problem.

quixxel’s picture

777 works.
No warning again.

quixxel’s picture

Apparently I've been pleased too early.
The same warning is coming again on users site
(not only on admin-site).

Any new ideas to solve that problem???

marcvangend’s picture

No new ideas, sorry. Can you check if the js file is being written? You may want to check error logs in drupal and on your web server, and make sure that errors are written to the screen.

quixxel’s picture

is:

Drupal.locale = { 'pluralFormula': function($n) { return Number(($n!=1)); }, 'strings': { "Unspecified error": "Unbekannter Fehler", "An error occurred. \n@uri\n@text": "Ein Fehler ist aufgetreten. \n@uri\n@text", "An error occurred. \n@uri\n(no information available).": "Ein Fehler ist aufgetreten. \n@uri\n(keine Information verfügbar).", "An HTTP error @status occurred. \n@uri": "Ein HTTP-Fehler @status ist aufgetreten. \n@uri", "Drag to re-order": "Ziehen um die Reihenfolge zu ändern", "Changes made in this table will not be saved until the form is submitted.": "Änderungen in dieser Tabelle werden nicht gespeichert bis dieses Formular gespeichert wurde.", "Select all rows in this table": "Alle Zeilen dieser Tabelle auswählen", "Deselect all rows in this table": "Alle Zeilen dieser Tabelle abwählen", "Split summary at cursor": "Anrisstext an Cursorposition trennen", "Join summary": "Anrisstext zusammenfügen", "Your server has been successfully tested to support this feature.": "Der Server wurde erfolgreich getestet und unterstützt diese Funktionalität.", "Testing clean URLs...": "Lesbare URLs werden getestet…", "Your system configuration does not currently support this feature. The \x3ca href=\"http://drupal.org/node/15365\"\x3ehandbook page on Clean URLs\x3c/a\x3e has additional troubleshooting information.": "Die Systemkonfiguration unterstützt diese Funktionalität momentan nicht. Die \x3ca href=\"http://drupal.org/node/15365\"Handbuchseite zu lesbaren URLs\x3c/a\x3e enthält Informationen zur Fehlerbehebung.", "The changes to these blocks will not be saved until the \x3cem\x3eSave blocks\x3c/em\x3e button is clicked.": "Die Änderungen an diesen Blöcken werden nicht gespeichert bis der \x3cem\x3eBlöcke speichern\x3c/em\x3e Schaltknopf gedrückt wird.", "An error occurred at ": "Ein Fehler ist aufgetreten auf " } };
marcvangend’s picture

Interesting; so the file is there, but it looks as if php thinks it's not. I really have no clue why that is happening. You can try setting the drupal base path in settings.php, but I doubt if that will solve the problem.

quixxel’s picture

I setted the base path in settings.php.
But your assumption was correct: that did'nt solve the problem.
The same warning comes again.

XerraX’s picture

same problem here

ReAliTy iS JuST a DrEAm. HaCk ThE PLaNet!

ddorian’s picture

clear cache maybe?

quixxel’s picture

Thanx for your response.
But unfortunately cache clearing isn't solving this problem.

mm167’s picture

try turn all the performance off. (admin->performance)

if that remove the warming, u may turn the performance on later as u like.

quixxel’s picture

I did that and got the following effect:
if I turn off the js-compression, the warning in the log-reports changes from a PHP-error to a »page-not-found«-warning.
And if I turn on the js-compression again, the warning comes like before.

The problem isn't solved.

rosk0’s picture

I think i have the same problem, the difference is that in my case the file is didn't exist.
and it is not the permisions! i'm sure, but still don't know the cure

rosk0’s picture

Hope it will be usefull:
1 manualy create file will force drupal no to put warning
2 in my case manualy translated strings in the interface doesn't apply and in the update notification e-mail there present a text:
updates here
http:///admin/reports/updates

rosk0’s picture

My problem was solved by a clean install and moving content from the old base

jdanthinne’s picture

I had the same problem, but instead of reinstalling everything, I've just removed my language and re-enabled it and the problem was solved.

quixxel’s picture

Please have look at that discussion:
http://drupal.org/node/297990

But my english-knowledges are not good enough to understand all comments in that issue-queue.

Now my questions:
1. did I understood correctly that there is only a solution for Drupal 7?
2. are the solutions in #9 or/and #10 working for Drupal 6 or not?

Please help...

marcvangend’s picture

If you have questions about that issue, ask them there.

quixxel’s picture

The module in
http://drupal.org/node/338630#comment-1185575
did help me.

Thanx !!!