Support

Home Forums Event Espresso Premium Attendees missing "Option"

Attendees missing "Option"

Posted: February 21, 2014 at 12:36 pm

Viewing 11 reply threads


Matt Block

February 21, 2014 at 12:36 pm

I noticed that I am getting some attendees that don’t have a value for “Option” in their registration. I only have one price right now but will be adding more so seeing which price they registered under would be useful. Have you seen this before? Any idea what’s going on and how to fix it?

I have a screenshot I can provide.


Tony

  • Support Staff

February 21, 2014 at 12:45 pm

Hi Matt,

If you could post the screenshot that would helpful for us to identify the field.

You’ll need to host the image somewhere and post the link for us to view.


Matt Block

February 21, 2014 at 12:47 pm

Here you go! *removed*

  • This reply was modified 10 years, 9 months ago by Tony. Reason: Removed image link


Matt Block

February 21, 2014 at 12:48 pm

I have made minor changes to the page that contains the registration form (updating text/etc) and these may correlate to when I was doing that. Would that have an affect?


Tony

  • Support Staff

February 21, 2014 at 12:55 pm

It all depends on what was changed.

Did you make these change within the template files?


Matt Block

February 21, 2014 at 9:30 pm

No, it was on a separate post page and all I changed was the post body.


Tony

  • Support Staff

February 24, 2014 at 1:50 am

Hmmmm, so just to confirm, you’ve made no changes at all to the files within event-espresso/templates/?

If so you could try re-installing Event Espresso 3, just download the latest version from you account page, delete the current plugin and upload the newly downloaded version.

I would recommend backing up your site first, just in case. We have a guide posted to help you through, here:

https://eventespresso.com/wiki/how-to-back-up-your-site/

We also have a guide for updating Event Espresso (although you are on the current version of EE3) the process is the same. Available here

https://eventespresso.com/wiki/updating-event-espresso/


Matt Block

February 24, 2014 at 9:19 am

No, I haven’t messed with those templates at all. I will have to wait until I have a little more time to try re-installing. It may be related to when I switched from having people register through the event registration page to including the event registration form on a post. To see the example, I used to be using the default registration page (http://agileindy.org/event-registration/?ee=2) but now directing everyone through a custom post (http://agileindy.org/2014/02/06/agileindy-conference-2014/).


Sidney Harrell

February 24, 2014 at 12:11 pm

Hi Matt, I’ve found the problem, and made a patch for you.
You can add this code to one of the following:
1 – Your theme’s functions.php file. It may get overwritten the next time you update your theme.
2 – The EE custom files add-on in the custom_functions.php file.
3 – Use this blank plugin to hold the custom function.


Matt Block

February 24, 2014 at 2:05 pm

I tried using the blank plugin but after copying in the function and trying to activate the plugin it fails saying it generated a fatal error.

Also, I assume this won’t fix the existing bad entries. How do I fix those? Do I just need to update a database table or something?


Dean

February 25, 2014 at 12:42 am

Hi,

What was the fatal error? Can you copy the full contents of the plugin file to pastebin or similar service?

No it does not look like that script is retro active.


Matt Block

February 25, 2014 at 7:17 am

Fatal error: Cannot redeclare espresso_reg_form_sc() (previously declared in /home/content/k/o/p/kopela/html/agileindyorg/wp-content/plugins/event-espresso/includes/shortcodes.php:280) in /home/content/k/o/p/kopela/html/agileindyorg/wp-content/plugins/CustomFunctionsPlugin/CustomFunctionsPlugin.php on line 20

Here is the full content.

http://pastebin.com/CztaDkaS


Dean

February 26, 2014 at 1:21 am

Hi,

Thanks for that.

OK so it looks like some sort of load order issue.

I think the easiest solution is to not use the plugin in this situation, and to create a file in the uploads/espresso/templates directory called custom_functions.php

In that empty file add the following

<?php

function espresso_reg_form_sc($atts) {
		wp_enqueue_script('validation'); //This tells the plugin to load the required scripts
		extract(shortcode_atts(array('event_id' => '0'), $atts));
		$event_id = "{$event_id}";
		ob_start();
		register_attendees(NULL, $event_id, true);
		$buffer = ob_get_contents();
		ob_end_clean();
		return $buffer;
	}

If the file already exists and has content, you can add the above to the bottom of the file BUT remove the

<?php

bit

Viewing 11 reply threads

The support post ‘Attendees missing "Option"’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso