Support

Home Forums Event Espresso Premium Function "event_espresso_add_attendees_to_db" Not Found

Function "event_espresso_add_attendees_to_db" Not Found

Posted: December 11, 2012 at 2:46 pm

Viewing 10 reply threads


rgeer

December 11, 2012 at 2:46 pm

Hi,

While trying to register for an event, I receive the error:
> Fatal error: Call to undefined function event_espresso_add_attendees_to_db() in… In the code I see this line: if (isset($_REQUEST['page_id']) || is_admin())
$this_is_a_reg_page = TRUE;

If I just set $this_is_a_reg_page to true, then everything works.
I am using permalinks, so I wonder if it isn’t seeing the ‘page_id’ being set.

Thanks for any help.
Edit: using version 3.1.29.1.P

  • This topic was modified 12 years ago by rgeer.
  • This topic was modified 12 years ago by rgeer.


Josh

  • Support Staff

December 11, 2012 at 4:45 pm

Hi there,

Page_id gets set whether permalinks are set to default or custom. This sounds like there may be a conflict with the page_ID variable. Do you have customized templates in /wp-content/uploads/espresso/templates from a prior version of Event Espresso? If so, these will need to be updated so they are in sync with the current version.


Byron Cox

December 12, 2012 at 2:19 pm

Same error here after updating to the latest EE version. I do have custom templates–how/what should i update to stay in sync?


rgeer

December 12, 2012 at 3:08 pm

There are no espresso templates in the uploads folder as this is basically a fresh install.


Josh

  • Support Staff

December 12, 2012 at 3:15 pm

@Byron
You’ll need to make the changes you made in the older templates into the new templates. Please start a new thread if you have any further questions about updating custom templates.


@rgeer
& @Byron
Thanks for checking. Can you post a link to the page where this is happening?


rgeer

December 12, 2012 at 3:18 pm

Here’s the Link

I can turn off permalinks and it works fine, but when they are on is when it screws up.


Byron Cox

December 12, 2012 at 3:31 pm

Here is what I had to add to my custom template to get things to work properly:


require_once($_SERVER['DOCUMENT_ROOT'] . '/wp-content/plugins/event-espresso/includes/process-registration/add_attendees_to_db.php');
require_once($_SERVER['DOCUMENT_ROOT'] . '/wp-content/plugins/event-espresso/includes/functions/attendee_functions.php');
require_once($_SERVER['DOCUMENT_ROOT'] . '/wp-content/plugins/event-espresso/includes/process-registration/payment_page.php');


Josh

  • Support Staff

December 12, 2012 at 4:07 pm

rgeer, is this site installed on a multi site or a single site installation?


rgeer

December 13, 2012 at 10:04 am

It is a single site.


Josh

  • Support Staff

December 13, 2012 at 2:30 pm

Hi rgeer,

Thanks for checking. Can you try resetting the main registration page? There may be a redirect causing this since it works if you have permalinks turned off.

One way to reset the main registration page is by creating a new page, place the [ESPRESSO_EVENTS] shortcode on it, then go to Event Espresso>General Settings>Page Settings, and select that new page. Then save the settings.


rgeer

December 13, 2012 at 2:56 pm

Got it.

I guess the system didn’t like the permalink “event-registration”.
Changed it to “events-registration”, and now it works.

Thank you for your help!

Viewing 10 reply threads

The support post ‘Function "event_espresso_add_attendees_to_db" Not Found’ 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