Posted: May 6, 2014 at 6:18 am
|
Using Version 3.1.36.5.P – this has been working fine for a while but I just heard from the client that when adding attendees they are getting a fatal error. I logged in with my admin account and it’s the same issue: Fatal error: Cannot redeclare add_new_attendee() (previously declared in /var/sites/c/citywomen.org/public_html/wp-content/uploads/espresso/custom_functions.php:37) in /var/sites/c/citywomen.org/public_html/wp-content/plugins/event-espresso/includes/admin-reports/add_new_attendee.php on line 173 I personally haven’t updated the plugin but the client might have. There was a custom function written by one of your devs to add the ticket type. Is this the issue? Thanks |
|
Hi Nicholas, You have a custom functions file in your uploads directory that has a function in it that is the same as one in the core plugin so it is clashing. It sounds like there may have been an edit to a core file event-espresso/includes/admin-reports/add_new_attendee.php to make the function add_new_attendee() pluggable. If the function is pluggable then having it in the custom_functions.php file is fine as it will then over ride the original. The easiest solution is to remove that function or rename the custom_functions.php file so it doesn’t get loaded. However that will stop the modified function from working. It seems you may need to make the core function pluggable again. Was there a forum support thread regarding this ticket type issue? Or was it done via a Priority Support Token? |
|
Hi Dean Thanks for the quick answer. I looked back and it was this code which was kindly provided under the thread: https://eventespresso.com/topic/manually-added-attendees-are-shown-as-admin-under-option-rather-than-by-ticket/ if I modify the core again will it work ok? |
Hi Nicholas, Yes that should work fine. You’ll need to re-do the steps outlined HERE Wrapping the add_new_attendee function within if (!function_exists('add_new_attendee')) { ... } |
|
|
Thanks for your help, the add attendee function is back up and running. |
No Problem 🙂 I’ll mark this thread solved. |
|
The support post ‘Fatal error when manually adding an attendee.’ 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.