Answers.Body: <p>Its just the warning (Notice), either you can <a href="https://www.greengeeks.com/tutorials/article/disable-wordpress-php-error-messages/" rel="nofollow noreferrer">turn off php warnings</a> for wordpress or update the GDPR Communications Preferences settings(<a href="http://domain.org/wp-admin/admin.php?page=CiviCRM&amp;q=civicrm/gdpr/comms-prefs/settings&amp;reset=1" rel="nofollow noreferrer">http://domain.org/wp-admin/admin.php?page=CiviCRM&amp;q=civicrm/gdpr/comms-prefs/settings&amp;reset=1</a>) and choose something (eg Do Nothing) for 'Add to Event and Contribution Thank-you pages' option under 'Event &amp; Contribution thank you page' section.</p>
  
  <p>HTH</p>
  
  <p>Pradeep</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-13T16:49:44.717Z
Answers.LastActivityDate: 2020-02-13T20:04:08.220Z
Answers.LastEditDate: 2020-02-13T20:04:08.220Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>As per title, after a user registers for an event and goes through the confirmation screen, they are treated to the following error:</p>
  
  <p><a href="https://i.sstatic.net/x6lCE.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/x6lCE.png" alt="GDPR CiviEvent Error"></a></p>
  
  <blockquote>
    <p>Notice: Undefined index: comm_pref_in_thankyou in
    /opt/bitnami/apps/wordpress/htdocs/wp-content/uploads/civicrm/ext/uk.co.vedaconsulting.gdpr/CRM/Gdpr/CommunicationsPreferences/Utils.php
    on line 507</p>
    
    <p>Notice: Undefined index: comm_pref_in_thankyou in
    /opt/bitnami/apps/wordpress/htdocs/wp-content/uploads/civicrm/ext/uk.co.vedaconsulting.gdpr/CRM/Gdpr/CommunicationsPreferences/Utils.php on line 508</p>
  </blockquote>
  
  <p>As you can see in the screenshot, their details are registered and it goes through fine in Civi's backend, we are just getting this error as well which is seemingly linked to the GDPR extension. </p>
  
  <p>Due to running a hosted system, I am unable to check the PHP file but I am speaking to our host regarding this as well. I am asking here in the hopes someone has seen this before and knows what the error is expecting.</p>
  
  <p>Running on Wordpress 5.3.2 with CiviCRM 5.21.1
  The GDPR extension is version 2.8</p>
  
Tags: <wordpress><civievent><extension><gdpr>
Title: Error during event registration linked to GDPR extension
ThreadText: # Error during event registration linked to GDPR extension
  
  (Asked by: username_0 on 2020-02-13)
  
  As per title, after a user registers for an event and goes through the confirmation screen, they are treated to the following error:
  
  [![GDPR CiviEvent Error](https://i.sstatic.net/x6lCE.png)](https://i.sstatic.net/x6lCE.png)
  
  > Notice: Undefined index: comm\_pref\_in\_thankyou in
  > /opt/bitnami/apps/wordpress/htdocs/wp-content/uploads/civicrm/ext/uk.co.vedaconsulting.gdpr/CRM/Gdpr/CommunicationsPreferences/Utils.php
  > on line 507
  >
  > Notice: Undefined index: comm\_pref\_in\_thankyou in
  > /opt/bitnami/apps/wordpress/htdocs/wp-content/uploads/civicrm/ext/uk.co.vedaconsulting.gdpr/CRM/Gdpr/CommunicationsPreferences/Utils.php on line 508
  
  As you can see in the screenshot, their details are registered and it goes through fine in Civi's backend, we are just getting this error as well which is seemingly linked to the GDPR extension.
  
  Due to running a hosted system, I am unable to check the PHP file but I am speaking to our host regarding this as well. I am asking here in the hopes someone has seen this before and knows what the error is expecting.
  
  Running on Wordpress 5.3.2 with CiviCRM 5.21.1
  The GDPR extension is version 2.8
  
  **Tags:** wordpress, civievent, extension, gdpr
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-02-13. Score: 1 | Accepted answer
  
  Its just the warning (Notice), either you can [turn off php warnings](https://www.greengeeks.com/tutorials/article/disable-wordpress-php-error-messages/) for wordpress or update the GDPR Communications Preferences settings(<http://domain.org/wp-admin/admin.php?page=CiviCRM&q=civicrm/gdpr/comms-prefs/settings&reset=1>) and choose something (eg Do Nothing) for 'Add to Event and Contribution Thank-you pages' option under 'Event & Contribution thank you page' section.
  
  HTH
  
  Pradeep
  
  
  ---
  
  