As soon as I activate the module I am getting the following:

Warning: array_filter() expects parameter 1 to be array, null given in copyprevention_page_attachments() (line 32 of /home/site/web/modules/contrib/copyprevention/copyprevention.module).

Warning: array_key_exists() expects parameter 2 to be array, null given in copyprevention_page_attachments() (line 33 of /home/site/web/modules/contrib/copyprevention/copyprevention.module).

Warning: array_key_exists() expects parameter 2 to be array, null given in copyprevention_page_attachments() (line 36 of /home/site/web/modules/contrib/copyprevention/copyprevention.module).

Suggestions?

Comments

Christopher Riley created an issue. See original summary.

Christopher Riley’s picture

Once I went to the configuration page and just hit save with the defaults the warnings went away. However consideration to get rid of the warnings may want to be considered.

nehajyoti’s picture

Fixed mentioned warnings and adding fixed code to dev release.

  • nehajyoti committed fcdfa14 on 8.x-1.x
    Issue #2893642: Warning upon activation
    
nehajyoti’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.