Fatal Error on domain with no eu_cookie_compilance info saved.
Steps to reproduce
With multi-domain Drupal 7 (7.73) installation not configure settings for one of them.
The front page crash with attached error.
It seems a operand error, concat array with +=
Proposed resolution:
File: sites/all/modules/eu_cookie_compliance/eu_cookie_compliance.module
line 638: -- $popup_settings += array(
Replace by:
$popup_settings2 = array(
'consent_storage_method' => 'do_not_store',
'enable_save_preferences_button' => NULL,
'show_disagree_button' => TRUE,
'withdraw_button_on_info_popup' => NULL,
);
$popup_settings = array_merge($popup_settings, $popup_settings2);
Related links:
https://www.php.net/manual/es/function.array-merge.php
Remaining tasks
Review code.
Comments
Comment #2
hectorelgomez commentedComment #3
hectorelgomez commentedadded link
Comment #4
svenryen commentedHi @hectorelgomez - may I check - what version of PHP are you using on your site?
Comment #5
svenryen commentedHere's the proposed change as a patch.
Comment #7
svenryen commentedComment #10
hectorelgomez commented