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.
Hi, I have this php warning:
Warning: Missing argument 4 for advagg_css_compress_advagg_get_css_aggregate_contents_alter(), called in ...includes/module.inc on line 1056 and defined in advagg_css_compress_advagg_get_css_aggregate_contents_alter() (line 11 of ...sites/all/modules/advagg/advagg_css_compress/advagg_css_compress.advagg.inc).
Regards
Comment | File | Size | Author |
---|---|---|---|
#8 | advagg-1942778-8-fix-drupal-alter-bug.patch | 1.72 KB | mikeytown2 |
Comments
Comment #1
mikeytown2 CreditAttribution: mikeytown2 commentedIs this with the latest code?
This what the alter looks like
drupal_alter('advagg_get_css_aggregate_contents', $data, $files, $optimize, $aggregate_settings);
; there are a total of 1+4 arguments passed into drupal_alter() and the function takes the same argumentsfunction advagg_css_compress_advagg_get_css_aggregate_contents_alter(&$data, $files, $optimize, $aggregate_settings) {
Comment #2
facine CreditAttribution: facine commentedYes, in last code.
Comment #3
mikeytown2 CreditAttribution: mikeytown2 commentedTry uninstalling (one more step past disable) and reinstalling. I added in a database table #1942326: advagg_get_hooks_hash needs to be a table and not use the variables table this could be causing issues.
Comment #4
facine CreditAttribution: facine commented* Re-Update it to the last release
* Disable it
* Uninstall it
* Clear cache
* Install it
* Same error
Comment #5
mikeytown2 CreditAttribution: mikeytown2 commentedFinal question. What is your version number for Drupal 7, 7.21?
Comment #6
facine CreditAttribution: facine commented7.21
Comment #7
mikeytown2 CreditAttribution: mikeytown2 commentedComment #8
mikeytown2 CreditAttribution: mikeytown2 commentedThe following patch has been committed. Reopen if this doesn't fix the issue.