Title: php warnings invalid argument
Last modified: July 2, 2020

---

# php warnings invalid argument

 *  [ptholt](https://wordpress.org/support/users/ptholt/)
 * (@ptholt)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/php-warnings-invalid-argument/)
 * I am running latest version of GDPR plugin.
    wordpress 5.4.2
 * My error logs are full of the following php warnings –
    Invalid argument supplied
   for foreach() in /xxx/xxx/public_html/wp-content/plugins/gdpr/templates/privacy-
   preferences-modal.php on line 95
 * which is followed by –
    reset() expects parameter 1 to be array, string given
   in /xxx/xxx/public_html/wp-content/plugins/gdpr/templates/privacy-preferences-
   modal.php on line 33

The topic ‘php warnings invalid argument’ is closed to new replies.

 * ![](https://ps.w.org/gdpr/assets/icon.svg?rev=1837142)
 * [GDPR](https://wordpress.org/plugins/gdpr/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gdpr/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gdpr/)
 * [Active Topics](https://wordpress.org/support/plugin/gdpr/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gdpr/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gdpr/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [ptholt](https://wordpress.org/support/users/ptholt/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/php-warnings-invalid-argument/)
 * Status: not resolved