Home › Forums › Calendar Products › Community Events › Error message when adding an event
- This topic has 21 replies, 2 voices, and was last updated 6 years, 8 months ago by Marc.
-
AuthorPosts
-
July 7, 2017 at 1:32 am #1317282MarcParticipant
HI there!
We’re getting this error when adding an event at:
http://www.memssa.com/events/community/add
Event Title: (required)
Event Description: (required)
Event Provinces:Fatal error: Class ‘Tribe__Events__Community__Modules__Taxonomy_Block’ not found in /usr/www/users/memsskbrsb/wp-content/themes/flawless-child/tribe-events/community/modules/taxonomy.php on line 34
.. any idea of what may be causing this?
July 7, 2017 at 1:24 pm #1317640PatriciaMemberHey Marc,
Thanks for contacting us!
I’ve tried to replicate the issue you are experiencing from my end using the same plugin versions and WordPress version as you are and everything is working properly as I can see from here.
Can you please run a test and verify if there’s a conflict by following thisΒ TutorialΒ and let us know your test results? This is an important step to identify the cause and solve the issue you are experiencing.
Let us know if you need anything else in the mean time!
Regards,
Patricia
July 11, 2017 at 5:29 am #1319426MarcParticipantThanks Patricia!
I’ve narrowed it down to this:
We’re running a child theme with a “tribe-events” folder that is running customised php files, the code on the taxonomy.php file that seems to be breaking the page is:
<tr>
<td><?php Tribe__Events__Community__Modules__Taxonomy_Block::instance()->the_category_checklist( get_post() ); ?>
</td>
</tr>Here is the full code for this customized taxonomy.php file:
<?php
/**
* Event Submission Form Taxonomy Block
* Renders the taxonomy field in the submission form.
*
* Override this template in your own theme by creating a file at
* [your-theme]/tribe-events/community/modules/taxonomy.php
*
* @package Tribe__Events__Community__Main
* @since 3.1
* @author Modern Tribe Inc.
*
*/if ( ! defined( ‘ABSPATH’ ) ) {
die( ‘-1’ );
}$event_cats = get_terms( Tribe__Events__Main::TAXONOMY, array( ‘hide_empty’ => false ) );
// only display categories if there are any
if ( ! empty( $event_cats ) ) {
?>
<!– Event Categories –>
<?php do_action( ‘tribe_events_community_before_the_categories’ ); ?>
<div class=”tribe-events-community-details eventForm bubble” id=”event_taxonomy”>
<table class=”tribe-community-event-info” cellspacing=”0″ cellpadding=”0″>
<tr>
<td class=”tribe_sectionheader”><?php printf( __( ‘%s Provinces:’, ‘tribe-events-community’ ), tribe_get_event_label_singular() ); ?>
</td>
</tr>
<tr>
<td><?php Tribe__Events__Community__Modules__Taxonomy_Block::instance()->the_category_checklist( get_post() ); ?>
</td>
</tr>
</table><!– .tribe-community-event-info –>
</div><!– .tribe-events-community-details –>
<?php
do_action( ‘tribe_events_community_after_the_categories’ );
}… We’re trying to bring in the event categories as checkboxes in a section of the page for community events, so that users can select multiple locations for their event, this would replace the normal “Event” selection area, which doesn’t seem to be able to find the taxonomies at the moment, so basically we need the http://www.memssa.com/events/community/add page to load, in a section all the taxonomies as tickable checkboxes, what would be the best way to do this?
July 12, 2017 at 5:29 am #1319945PatriciaMemberHi Marc,
Unfortunately, we won’t be able to help you with this level of customization as it is out of the scope of our support.
We do have a list of recommended developers who could help you out with the code if you need it:
https://theeventscalendar.com/knowledgebase/find-a-customizer/
Thank you for your understanding and let us know if you need anything else!
Regards,
Patricia
July 14, 2017 at 12:24 am #1321085MarcParticipantThanks Patricia..
I see they updated the system and removed the class:
Newly-Deprecated Code
Community Events
Removed Class: Tribe__Events__Community__Modules__Taxonomy_Block
– we just want to pull through the taxonomy on the community events front-end.
at the moment, the taxonomy is not working at all, in other words, a front-end user can’t select any of the existing categories. π
Please could you folks help with this? I’m assuming that pulling through the taxonomies is a resonable request.
July 14, 2017 at 6:35 am #1321176MarcParticipantSorry, one more note, community members need to be able to select more than one taxonomy category, as an added item may fall into a couple of these, is there any way to pull these taxonomies through as tickable checklist items, or is the only way to do this by query field?
July 16, 2017 at 7:11 am #1321888PatriciaMemberHi Marc,
This is just a quick follow up to let you know that I’ll check with our team if someone has new ideas to point you to the right direction regarding this customization.
Let us know if you need anything else in the mean time!
Regards,
Patricia
July 17, 2017 at 2:01 pm #1322320PatriciaMemberHi Marc,
Our team came up with a solution that might be helpful in your case! The following code transforms both category and tag selectors into checkboxes (not just the categories).
Please include the following template override on wp-content/themes/flawless-child/tribe-events/community/modules/taxonomy.php
https://gist.github.com/barryhughes/a1e3a7df163f6386ea8fc74c233ca60f
After that, you have to include the following code in your theme’s functions.php file:
https://gist.github.com/barryhughes/b7106422425a66b5a3f2fc2556423361
With these custom codes in place, everything should work as expected.
Let me know if you need anything else and I’ll be happy to assist!
Regards,
Patricia
July 19, 2017 at 3:22 am #1323166MarcParticipantThank you Patricia!
This helps a lot!
It’s pulling through the Taxonomy now as a checkbox list, but it’s not showing the taxonomy structure, please see attached screenshot, it’s pullin up all the taxonomy items as one long list, but not showing the structure of these.
July 19, 2017 at 5:42 pm #1323609PatriciaMemberHi Marc,
This is just a quick follow up to let you know that our team is checking if there’s an easy way to display the taxonomy structure and help you with this additional customization.
We will return to you as soon as we have further information on this!
Regards,
Patricia
July 24, 2017 at 3:46 am #1325223MarcParticipantThanks Patricia!
I’ll wait to hear from you guys…
July 25, 2017 at 1:00 pm #1325987PatriciaMemberHi Marc!
We’ve updated the code and now the Categories and Sub-Categories are displayed with the correct structure as requested. Please replace the code on wp-content/themes/flawless-child/tribe-events/community/modules/taxonomy.php with:
https://gist.github.com/nefeline/b8225c9ad16ee0e682976b17b5f42901
Let us know if everything works as expected after this update and have a great week!
Regards,
Patricia
July 26, 2017 at 1:00 am #1326229MarcParticipantHi Patricia!
Thank you so much for your help with this, it still seems to be pulling through incorrectly here..
This is what we’re seeing at http://www.memssa.com/events/community/add – under the Taxonomy:
Anaesthesiology
Anesthesiology
Cardiologists
Cardiologists
Cardiology
Cardiology
Dermatologists
Eastern Cape
Events
Free State
Gastroenterologists
Gastroenterology
Gauteng
General Medical Practice
GPs
Haemotology
Home
Internal Medicine
KwaZulu-Natal
Limpopo
MDs
Menu 1
Mpumalanga
Neurologists
Neurology
Neurology
North West
Northern Cape
Obstetrics and Gynaecology
Oncologist
Ophthalmology
Pathology
Pediatricians
Pharmaceutical Events
Physician
Specialists
Specialists
Surgical/Devices Events
Test
Therapeutic Area
Uncategorized
Urologists
Western Cape… and this is what is on the back end under taxonomies for Event Categories:
– so here:
http://www.memssa.com/wp-admin/edit-tags.php?taxonomy=tribe_events_cat&post_type=tribe_eventsPharmaceutical Events
– Pharmaceutical Events β Gauteng
– Pharmaceutical Events β KwaZulu-Natal
– Pharmaceutical Events β Limpopo
– Pharmaceutical Events β Mpumalanga
– Pharmaceutical Events β Non-Academic
– Pharmaceutical Events β North West
– Pharmaceutical Events β The Eastern Cape
– Pharmaceutical Events β The Free State
– Pharmaceutical Events β The Northern Cape
– Pharmaceutical Events β The Western CapeSurgical/Devices Events
– Surgical/Devices Events β Gauteng
– Surgical/Devices Events β KwaZulu-Natal
– Surgical/Devices Events β Limpopo
– Surgical/Devices Events β Mpumalanga
– Surgical/Devices Events β Non-Academic
– Surgical/Devices Events β North West
– Surgical/Devices Events β The Eastern Cape
– Surgical/Devices Events β The Free State
– Surgical/Devices Events β The Northern Cape
– Surgical/Devices Events β The Western Cape.. is it maybe pulling through the wrong taxonomy? We’ve repeated the parent label in the children titles for now, for ease of use for our clients until we get the taxonomies pulling through in the correct layout, from the correct place..
Please see attached screengrab.. π
Thank you!
July 26, 2017 at 8:34 am #1326336PatriciaMemberHi Marc,
I’m sorry to know that our solution didn’t work for you! I’m not sure why your event categories and sub categories aren’t displaying properly: I’ve tested in my own site and everything is working as expected (please check these screenshots: Event categories and CE submission form).
Can you please make sure that this snippet is present in your functions.php file and that this code is active on wp-content/themes/flawless-child/tribe-events/community/modules/taxonomy.php?
Regards,
Patricia
July 31, 2017 at 12:56 am #1328252MarcParticipantHi Patricia!
Thank you, but it’s still not working.
I’m copying the categories here that should be loading (these are under Events –> Event Categories)
Pharmaceutical Events
Pharmaceutical Events – Gauteng
Pharmaceutical Events – KwaZulu-Natal
Pharmaceutical Events – Limpopo
Pharmaceutical Events – Mpumalanga
Pharmaceutical Events – Non-Academic
Pharmaceutical Events – North West
Pharmaceutical Events – The Eastern Cape
Pharmaceutical Events – The Free State
Pharmaceutical Events – The Northern Cape
Pharmaceutical Events – The Western Cape
Surgical/Devices Events
Surgical/Devices Events – Gauteng
Surgical/Devices Events – KwaZulu-Natal
Surgical/Devices Events – Limpopo
Surgical/Devices Events – Mpumalanga
Surgical/Devices Events – Non-Academic
Surgical/Devices Events – North West
Surgical/Devices Events – The Eastern Cape
Surgical/Devices Events – The Free State
Surgical/Devices Events – The Northern Cape
Surgical/Devices Events – The Western Cape.. and this is what is coming up under the events on the http://www.memssa.com/events/community/add page:
Anaesthesiology
Anesthesiology
Cardiologists
Cardiologists
Cardiology
Cardiology
Dermatologists
Eastern Cape
Events
Free State
Gastroenterologists
Gastroenterology
Gauteng
General Medical Practice
GPs
Haemotology
Home
Internal Medicine
KwaZulu-Natal
Limpopo
MDs
Menu 1
Mpumalanga
Neurologists
Neurology
Neurology
North West
Northern Cape
Obstetrics and Gynaecology
Oncologist
Ophthalmology
Pathology
Pediatricians
Pharmaceutical Events
Physician
Specialists
Specialists
Surgical/Devices Events
Test
Therapeutic Area
Uncategorized
Urologists
Western CapeI’m not sure where these are even coming from?
Please could you help us with this urgently, as our client is running out of time with this and we neeed to sort this out for them as a matter of urgency.
Your urgent response to this would be very much appreciated.
-
AuthorPosts
- The topic ‘Error message when adding an event’ is closed to new replies.