Forum Replies Created
-
AuthorPosts
-
October 27, 2017 at 7:42 am in reply to: HTTP 500 Error when submitting community event with image #1370054
Pascha Apter
ParticipantI think we found our problem. There did appear to be a conflict with another plugin, it was the “Import external attachments” plugin. Once disabled, that seemed to solve it.
October 27, 2017 at 7:11 am in reply to: HTTP 500 Error when submitting community event with image #1370005Pascha Apter
ParticipantIt looks like other people are having the same problem:
October 27, 2017 at 7:10 am in reply to: HTTP 500 Error when submitting community event with image #1370004Pascha Apter
ParticipantSee the comment at the bottom perhaps:
October 27, 2017 at 7:03 am in reply to: HTTP 500 Error when submitting community event with image #1369997Pascha Apter
ParticipantI have had WP Engine test this and they are getting the same error:
PHP Fatal error: Uncaught Error: Call to undefined function wp_read_image_metadata() in /nas/content/live/visitcookco/wp-admin/includes/media.php:357\nStack trace:\n#0 /nas/content/live/visitcookco/wp-content/plugins/the-events-calendar-community-events/src/Tribe/Submission_Handler.php(175): media_handle_upload(‘event_image’, 26949)\n#1 /nas/content/live/visitcookco/wp-content/plugins/the-events-calendar-community-events/src/Tribe/Submission_Handler.php(111): Tribe__Events__Community__Submission_Handler->insert_attachment(‘event_image’, 26949, true, Object(Tribe__Events__Community__Submission_Handler))\n#2 /nas/content/live/visitcookco/wp-content/plugins/the-events-calendar-community-events/src/Tribe/Main.php(1635): Tribe__Events__Community__Submission_Handler->save()\n#3 /nas/content/live/visitcookco/wp-content/plugins/the-events-calendar-community-events/src/Tribe/Main.php(851): Tribe__Events__Community__Main->doEventForm()\n#4 [internal function]: Tribe__Events__Community__Main::addCallback()\n#5 /nas/content/live/visitcookco/wp- in /nas/content/live/visitcookco/wp-admin/includes/media.php on line 357, referer: https://www.visitcoo…ounty.com/events/community/add
October 27, 2017 at 6:15 am in reply to: HTTP 500 Error when submitting community event with image #1369973Pascha Apter
ParticipantI just tested again myself and attached an image less than 1MB and received a 500 error. All plugins are up to date.
Pascha Apter
ParticipantAny updates on this?
Pascha Apter
ParticipantI found a workaround for now, I just set the start date to October 1 since it is now October and the event does not necessarily need to be displayed still for the September dates. It seems that the bug has to do with a multi-day event overlapping two different months. So if you have a multi-day event that starts in September and ends in October, the October calendar will not display probably because the start date is in September…?
Pascha Apter
ParticipantI think I have solved this by moving the code out of the plugin file and into my functions.php file.
Pascha Apter
ParticipantI have attempted creating a custom filter for the filter bar using this tutorial:
But I keep getting this error:
Fatal error: Class ‘Tribe__Events__Filterbar__Filter’ not found
I have added the new class and the call to instantiate the new class into a custom plugin file.
Here is the code:
class Tribe__Events__Filterbar__Filters__Performer extends Tribe__Events__Filterbar__Filter { public $type = 'checkbox'; public function get_admin_form() { $title = $this->get_title_field(); $type = $this->get_multichoice_type_field(); return $title.$type; } protected function get_values() { /** @var wpdb $wpdb */ global $wpdb; // get performer IDs associated with published posts $performer_ids = $wpdb->get_col( $wpdb->prepare( "SELECT DISTINCT m.meta_value FROM {$wpdb->postmeta} m INNER JOIN {$wpdb->posts} p ON p.ID=m.post_id WHERE p.post_type=%s AND p.post_status='publish' AND m.meta_key='performer' AND m.meta_value > 0", Tribe__Events__Main::POSTTYPE ) ); array_filter( $performer_ids ); if ( empty( $performer_ids ) ) { return array(); } /** * Filter Total Performers in Filter Bar * Use this with caution, this will load performers on the front-end, may be slow * The base limit is 200 for safety reasons * * * @parm int 200 posts per page limit * @parm array $performer_ids ids of performers attached to events */ $limit = apply_filters( 'tribe_events_filter_bar_performers_limit', 200, $performer_ids ); $performers = get_posts( array( 'post_type' => 'performer', 'posts_per_page' => $limit, 'suppress_filters' => false, 'post__in' => $performer_ids, 'post_status' => 'publish', 'orderby' => 'title', 'order' => 'ASC', ) ); $performers_array = array(); foreach ( $performers as $performer ) { $performers_array[] = array( 'name' => $performer->post_title, 'value' => $performer->ID, ); } return $performers_array; } protected function setup_join_clause() { global $wpdb; $this->joinClause = "LEFT JOIN {$wpdb->postmeta} AS performer_filter ON ({$wpdb->posts}.ID = performer_filter.post_id AND performer_filter.meta_key = 'performer')"; } protected function setup_where_clause() { if ( is_array( $this->currentValue ) ) { $performer_ids = implode( ',', array_map( 'intval', $this->currentValue ) ); } else { $performer_ids = esc_attr( $this->currentValue ); } $this->whereClause = " AND performer_filter.meta_value IN ($performer_ids) "; } } new Tribe__Events__Filterbar__Filters__Performer( __( 'Performer', 'tribe-events-filter-view' ), 'performer' );Pascha Apter
ParticipantI see I was entering recurring events wrong…
Pascha Apter
ParticipantOkay now I see on the month view it is showing there are 180-some of events for each day – what is going on here?
Pascha Apter
ParticipantThanks! I made both changes and it has definitely made a difference.
Pascha Apter
ParticipantPer the second link:
Your API User Key
(22-digit number is displayed here)
What is an API User Key?The user key is a unique string assigned by Eventbrite which identifies the user making an API call.
This replaces basic username/password authentication
A valid user key is the recommended method for user authentication with the Eventbrite API.
How is this different than an Application Key?The application key is a string assigned by Eventbrite which identifies the application making the method call.
You might have many application keys, but you will only have one user key.Pascha Apter
ParticipantPer the links I included in the original post – see attached.
Pascha Apter
ParticipantRight – I have already done all of that, but this user key is something completely different. Either way I am having intermittent issues here. I can enter in a few events at a time and then I keep getting that error “We were unable to import your Eventbrite event. Please verify the event id and try again.”
-
AuthorPosts
