Pascha Apter

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • in reply to: HTTP 500 Error when submitting community event with image #1370054
    Pascha Apter
    Participant

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

    in reply to: HTTP 500 Error when submitting community event with image #1370005
    Pascha Apter
    Participant

    It looks like other people are having the same problem:

    Error when submitting Community Event.

    in reply to: HTTP 500 Error when submitting community event with image #1370004
    Pascha Apter
    Participant

    See the comment at the bottom perhaps:

    wp_read_image_metadata()

    in reply to: HTTP 500 Error when submitting community event with image #1369997
    Pascha Apter
    Participant

    I 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

    in reply to: HTTP 500 Error when submitting community event with image #1369973
    Pascha Apter
    Participant

    I just tested again myself and attached an image less than 1MB and received a 500 error. All plugins are up to date.

    in reply to: Multi-day event not showing up on calendar #1363171
    Pascha Apter
    Participant

    Any updates on this?

    in reply to: Multi-day event not showing up on calendar #1359829
    Pascha Apter
    Participant

    I 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…?

    in reply to: ACF and filtering #1336830
    Pascha Apter
    Participant

    I think I have solved this by moving the code out of the plugin file and into my functions.php file.

    in reply to: ACF and filtering #1336805
    Pascha Apter
    Participant

    I have attempted creating a custom filter for the filter bar using this tutorial:

    Creating Custom Filters for Filter Bar

    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' );
    in reply to: Events List View starting with wrong month/date #1329702
    Pascha Apter
    Participant

    I see I was entering recurring events wrong…

    in reply to: Events List View starting with wrong month/date #1329700
    Pascha Apter
    Participant

    Okay now I see on the month view it is showing there are 180-some of events for each day – what is going on here?

    in reply to: Event Archive loads very slow #1146979
    Pascha Apter
    Participant

    Thanks! I made both changes and it has definitely made a difference.

    in reply to: Unable to import your Eventbrite event. #1145225
    Pascha Apter
    Participant

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

    in reply to: Unable to import your Eventbrite event. #1145221
    Pascha Apter
    Participant

    Per the links I included in the original post – see attached.

    in reply to: Unable to import your Eventbrite event. #1145053
    Pascha Apter
    Participant

    Right – 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.”

Viewing 15 posts - 1 through 15 (of 15 total)