My CiviCRM version is: 4.7.23, Drupal: 7.56, PHP: 7.0 I have trouble with CiviEVENT. When participant fill and sendregistration form for event (when he doesnt exist in database) in CiviCRM i see this error:
Notice: Undefined index: contact_sub_type w CRM_Contact_BAO_Contact::formatProfileContactParams() (linia 2010 z /home/sol/domains/staroflife.hekko24.pl/public_html/dev/sites/all/modules/civicrm/CRM/Contact/BAO/Contact.php).
Warning: in_array() expects parameter 2 to be array, null given w CRM_Contact_BAO_Contact::formatProfileContactParams() (linia 2011 z /home/sol/domains/staroflife.hekko24.pl/public_html/dev/sites/all/modules/civicrm/CRM/Contact/BAO/Contact.php).
Notice: Undefined index: contact_sub_type w CRM_Contact_BAO_Contact::formatProfileContactParams() (linia 2013 z /home/sol/domains/staroflife.hekko24.pl/public_html/dev/sites/all/modules/civicrm/CRM/Contact/BAO/Contact.php).
CiviCRM did not show this error before updating CiviCRM. I will add that the participant registered to the event is automatically entered as a "Uczestnik (eng. participant)" contact subtype, configured as a contact.
The contact created in the database has a properly assigned contact type, but this annoying error appears.
You can reproduce the error trying to subscribe to the event at: dev.staroflife.hekko24.pl (developer and testing environment) 1. Select one of the events at the bottom of the page and click "register now" 2. Enter your data in the form 3. As a payment option select "płacę z dotpay" 4. In the payment test environment, select any method, accept, and click the payment solution as Accept. 5. When you return to CiviCRM you should see this error.
This same error i see in production version :(.