1

Wordpress: 4.9.6 Civi: 5.3.0

When trying to add event registration on behalf of a contact, I encounter a javascript error that is causing a couple issues:

  1. I am unable to select an existing event.
  2. Any event custom field accordions are missing. They usually appear at the bottom of the other fields.

This is the error that I'm seeing in the Chrome Console:

Uncaught SyntaxError: Unexpected token ,

// Event and event-type custom data
CRM.buildCustomData('Participant', eventId, , null, null, null, true);

Looking in Participant.tpl, {/literal}{$eventNameCustomDataTypeID}{literal} seems to be the missing parameter or token.

I'm wondering if there is a DB issue. I can't find anything useful in the Civi logs. This Civi instance was migrated from Joomla to Wordpress and I'm wondering if something got lost in the move.

Here is a side by side screenshot if you need a visual reference.

enter image description here

Any help would greatly be appreciated!

2

This error usually occurs when the option values for Custom data type are disabled or deleted. Make sure you have all the options values required for event are enabled for Custom data type option group. Here are the options enter image description here

If a option value is missing then you will need to add the option value either through UI or api. However for some option values its not possible to add same options with same machine name so it is always better to add such options through API Explorer.

Navigate to CiviCRM >> Support >> Developer >> API Explore. And use the options shown in the image below once you are done with selection then click on execute button for api to process the params you selected. enter image description here

HTH

Pradeep

  • Good thinking Pradeep, but unless I'm missing something, I can't find any disabled options. – Joel Steidl Jul 18 '18 at 14:32
  • Can you share screenshot? – Pradeep Nayak Jul 18 '18 at 14:34
  • Screenshot updated in my original post to include a side by side of what was working and now is not. Does that help you? – Joel Steidl Jul 18 '18 at 17:19
  • What was working? Did you upgrade CiviCRM?? – Pradeep Nayak Jul 18 '18 at 17:21
  • This Civi instance was migrated from Joomla to Wordpress and I'm wondering if something got lost in the move. – Joel Steidl Jul 18 '18 at 17:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.