Error message when adding an event

Home Forums Calendar Products Community Events Error message when adding an event

Viewing 15 posts - 1 through 15 (of 21 total)
  • Author
    Posts
  • #1317282
    Marc
    Participant

    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?

    #1317640
    Patricia
    Member

    Hey 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

    #1319426
    Marc
    Participant

    Thanks 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?

    #1319945
    Patricia
    Member

    Hi 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

    #1321085
    Marc
    Participant

    Thanks 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.

    #1321176
    Marc
    Participant

    Sorry, 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?

    #1321888
    Patricia
    Member

    Hi 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

    #1322320
    Patricia
    Member

    Hi 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

    #1323166
    Marc
    Participant

    Thank 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.

    #1323609
    Patricia
    Member

    Hi 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

    #1325223
    Marc
    Participant

    Thanks Patricia!

    I’ll wait to hear from you guys…

    #1325987
    Patricia
    Member

    Hi 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

    #1326229
    Marc
    Participant

    Hi 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_events

    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

    .. 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!

    #1326336
    Patricia
    Member

    Hi 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

    #1328252
    Marc
    Participant

    Hi 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 Cape

    I’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.

Viewing 15 posts - 1 through 15 (of 21 total)
  • The topic ‘Error message when adding an event’ is closed to new replies.