Title: Error found in error_log
Last modified: May 8, 2018

---

# Error found in error_log

 *  Resolved [wci](https://wordpress.org/support/users/wci/)
 * (@wci)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/error-found-in-error_log/)
 * Dear support team,
 * I am already using your GDPR plugin to enable the new privacy regulations according
   european government rules. Now after activating the same I found the following
   entries in my error_log to be solved.
 *     ```
       [08-May-2018 12:28:29 UTC] PHP Warning:  reset() expects parameter 1 to be array, string given in /.../wp-content/plugins/gdpr/public/partials/privacy-preferences-modal.php on line 32
       [08-May-2018 12:28:29 UTC] PHP Warning:  key() expects parameter 1 to be array, string given in /.../wp-content/plugins/gdpr/public/partials/privacy-preferences-modal.php on line 33
       [08-May-2018 12:28:29 UTC] PHP Warning:  Invalid argument supplied for foreach() in /.../wp-content/plugins/gdpr/public/partials/privacy-preferences-modal.php on line 36
       [08-May-2018 12:28:29 UTC] PHP Warning:  Invalid argument supplied for foreach() in /.../wp-content/plugins/gdpr/public/partials/privacy-preferences-modal.php on line 71
       ```
   
 * Please help to solve.
 * Best, Alex
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-found-in-error_log%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Anthony Moore](https://wordpress.org/support/users/amooreto/)
 * (@amooreto)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/error-found-in-error_log/#post-10259216)
 * Hi [@wci](https://wordpress.org/support/users/wci/), can you confirm which version
   of the plugin you are using?
 *  Plugin Author [Fernando Claussen](https://wordpress.org/support/users/fclaussen/)
 * (@fclaussen)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/error-found-in-error_log/#post-10259378)
 * Hi [@wci](https://wordpress.org/support/users/wci/),
    This is a problem introduced
   in a previous version. I already fixed this issue, but you need to re-save your
   plugin preferences. After that, this should go away.
 *  Thread Starter [wci](https://wordpress.org/support/users/wci/)
 * (@wci)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/error-found-in-error_log/#post-10260845)
 * Hi [@all](https://wordpress.org/support/users/all/),
 * I am currently using Version 1.4.0 and now update to Version 1.4.2. Let’s see
   if that helps.
 * Thanks so far, I’ll let you know.
 * Best, Alex
 *  Thread Starter [wci](https://wordpress.org/support/users/wci/)
 * (@wci)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/error-found-in-error_log/#post-10262670)
 * Hi again, it seems that the upgrade has worked to solve that issue.
 * Thanks

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Error found in error_log’ 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/)

## Tags

 * [Invalid argument supplied for foreach()](https://wordpress.org/support/topic-tag/invalid-argument-supplied-for-foreach/)

 * 4 replies
 * 3 participants
 * Last reply from: [wci](https://wordpress.org/support/users/wci/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/error-found-in-error_log/#post-10262670)
 * Status: resolved