Problem/Motivation

After upgrading PHP version from 7.4 to 8.1, my site got crashed out with error:

array_merge() does not accept unknown named parameters in array_merge() (line 611 of /var/www/html/sites/all/modules/global_filter/global_filter.widgets.inc).

Steps to reproduce

Hoop up a Drupal 7.92 site with this module enabled on version 7.x-1.13 and PHP 8.1. The site will be crashed.

Proposed resolution

Got hint from this post: https://stackoverflow.com/questions/69424097/uncaught-argumentcounterror...

I attached a patch. It works for my site now. Please review it.

CommentFileSizeAuthor
#2 array_merge.patch443 byteszzhao
array_merge.patch896 byteszzhao

Comments

zzhao created an issue. See original summary.

zzhao’s picture

StatusFileSize
new443 bytes