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.
After latest update i've much got errors like:
Warning: file_get_contents(sites/all/modules/navbar/js/navbar-tableheader.js): failed to open stream: No such file or directory in _locale_parse_js_file() (line 1488 of /var/www/uksusoff/data/www/rock63.ru/includes/locale.inc).
This module removed but still try get their js.
Comment | File | Size | Author |
---|---|---|---|
#13 | advagg-2698919-12-truncate-advagg-files.patch | 1.79 KB | mikeytown2 |
Comments
Comment #2
Frank.dev CreditAttribution: Frank.dev commentedsame.
many, many messages "Warning: file_get_contents(xxx): failed to open stream: No such file or directory in _locale_parse_js_file() (line 1488 of xxx)."
Comment #3
mikeytown2 CreditAttribution: mikeytown2 commented@UksusoFF
There are still references to that js file in your code base most likely. AdvAgg is now more verbose with issues like this.
@Frank.dev
Your issue is with similar but the error
Warning: file_get_contents
is getting thrown in core and thus out of my control. You're doing a drupal_add_js to a file that no longer exists.Comment #4
UksusoFF CreditAttribution: UksusoFF commentedWhere it can be checked?
I've not include most of this files. It's from other modules but now their disabled and removed.
Comment #5
mikeytown2 CreditAttribution: mikeytown2 commented@UksusoFF
Unfortunately there is no way to tell where the js came from. You can use hook_js_alter to search for
sites/all/modules/navbar/js/navbar-tableheader.js
and remove it before advagg processes it.Comment #6
bredy73 CreditAttribution: bredy73 commentedI see the database and this file are in the advagg_files. I think to remove it.
Comment #7
mikeytown2 CreditAttribution: mikeytown2 commentedCron will remove it in 2 weeks. You can adjust this time with the advagg_remove_missing_files_from_db_time variable; default is 1209600. Reason for keeping it around is aggregates referencing it will fail; it meas something is requesting an old aggregate for some reason (usually an external page cache).
Comment #8
UksusoFF CreditAttribution: UksusoFF commentedI found old non exists file names in "advagg_files" table. Can clean this table for regenerate it?
UPD: Also found in "variable" table with "javascript_parsed" name.
Comment #9
mikeytown2 CreditAttribution: mikeytown2 commentedAdvAgg will regenerate the advagg_files table if you truncate it. Just be aware that you might get some 404's for css/js files for a little while.
javascript_parsed is part of core; core will also regenerate it.
Comment #10
UksusoFF CreditAttribution: UksusoFF commentedLooks like after clean table all works as expected.
Comment #11
mikeytown2 CreditAttribution: mikeytown2 commentedSo looks like I should add a truncate advagg_files table and clear javascript_parsed as a button on the operations page.
Comment #13
mikeytown2 CreditAttribution: mikeytown2 commentedThis patch has been committed.
Comment #14
mikeytown2 CreditAttribution: mikeytown2 commented