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 am repeatedly being show this error:
warning: array_search() [function.array-search]: Wrong datatype for second argument in /home/user/public_html/domain/sites/all/modules/javascript_aggregator/javascript_aggregator.module on line 50.
Lines 49 and 50 read:
// If javascript_aggregator's preprocess function is there already, remove it.
if ($key = array_search('javascript_aggregator_preprocess_page', $theme_registry['page']['preprocess functions'])) {
Anyone can point me the way to fix this? Thanks,
Comment | File | Size | Author |
---|---|---|---|
#2 | test_datatype_array.patch | 889 bytes | derjochenmeyer |
Comments
Comment #1
derjochenmeyer CreditAttribution: derjochenmeyer commentedDid anyone else run into this error?
Comment #2
derjochenmeyer CreditAttribution: derjochenmeyer commentedPlease review/test this patch and report if it works and if it solves the problem.
Comment #3
derjochenmeyer CreditAttribution: derjochenmeyer commentedCommitted: http://drupal.org/cvs?commit=354390
Will be released in new dev version first.
Please report any errors.