Home › Forums › Welcome! › Pre-Sales Questions › Call to undefined function tribe_events_single_event_meta
- This topic has 3 replies, 1 voice, and was last updated 10 years, 3 months ago by
Brian.
-
AuthorPosts
-
December 31, 2015 at 12:20 am #1048315
pavanesh
GuestFatal error: Call to undefined function tribe_events_single_event_meta() in /home//public_html/wp-content/themes/honeymoon/tribe-events/single-event.php on line 41
January 4, 2016 at 8:58 am #1049899Brian
MemberHi,
Thanks for using the Events Calendar.
Here on the pre-sales forum, I’m afraid we do not provide technical support. I would ask that you take any technical support questions across to our wordpress.org forum – our staff scan it periodically and other community members may also be able to help out.
Having said that to to fix this you need to update your custom template single-events.php in your theme.
You want to replace:
echo tribe_events_single_event_meta();with this function:
tribe_get_template_part( 'modules/meta' );Thanks again!
February 10, 2016 at 4:28 pm #1071113Janet
GuestFatal error: Call to undefined function tribe_events_single_event_meta() in /home/p237r856/public_html/wp-content/themes/church-event/tribe-events/single-event.php on line 41
Is the error I get on my event pages, see http://hbwt.org/event/all-in-ladies-lock-in
My Single-Evnt.php does not have the “echo” line in it to remove and replace with the new info. See Below:
<?php
/**
* List View Single Event
* This file contains one event in the list view
*
* Override this template in your own theme by creating a file at [your-theme]/tribe-events/list/single-event.php
*
* @package TribeEventsCalendar
* @since 3.0
* @author Modern Tribe Inc.
*
*/if ( !defined(‘ABSPATH’) ) { die(‘-1’); }
global $post;
$featured_image = tribe_event_featured_image( null, ‘post-small-2’ );
?><div class=”small-event-header clearfix <?php if(empty($featured_image)) echo ‘no-image’ ?>”>
<div class=”tribe-events-event-meta-wrapper”>
<?php do_action( ‘tribe_events_before_the_meta’ ); ?>
<div class=”tribe-events-event-meta”>
<?php
$start = strtotime($post->EventStartDate);
$end = strtotime($post->EventEndDate);
$day = date(‘d’, $start);
$month = date_i18n(‘F’, $start);$stime = date(get_option(‘time_format’), $start);
$etime = date(get_option(‘time_format’), $end);
?>
” title=”<?php esc_attr_e(‘Read More’) ?>”>
<div class=”date”>
<div class=”day”><?php echo $day ?></div>
<div class=”month”><?php echo $month ?></div>
</div>
<div class=”when-where”>
<?php if ( ! tribe_event_is_all_day( $post->ID ) ): ?>
<div><?php echo $stime ?> — <?php echo $etime ?></div>
<?php else: ?>
<div><?php _e( ‘All Day’, ‘church-event’ ) ?></div>
<?php endif ?>
<div>@ <?php
if( class_exists( ‘Tribe_Events_Pro_Single_Venue_Template’ ) ) {
tribe_get_venue_link( $post->ID, true );
} else {
echo tribe_get_venue( $post->ID );
}
?></div>
</div>
” title=”<?php esc_attr_e(‘Read More’) ?>” class=”button button-border accent1 hover-accent1″><span class=”btext”><?php wpvge( ‘tribe-events-join-text’ ) ?></span>
</div><!– .tribe-events-event-meta –>
<?php do_action( ‘tribe_events_after_the_meta’ ); ?>
</div>
<?php echo $featured_image; ?>
</div><div class=”tribe-events-event-details tribe-clearfix <?php if(empty($featured_image)) echo ‘no-image’ ?>”>
<!– Event Title –>
<?php do_action( ‘tribe_events_before_the_event_title’ ); ?>” title=”<?php the_title() ?>” rel=”bookmark”>
<?php the_title(); ?>
<?php do_action( ‘tribe_events_after_the_event_title’ ); ?>
<!– Event Content –>
<?php do_action( ‘tribe_events_before_the_content’ ); ?>
<div class=”tribe-events-list-photo-description tribe-events-content entry-summary description”>
<?php the_excerpt(); ?>
</div>
<?php do_action( ‘tribe_events_after_the_content’ ) ?></div><!– /.tribe-events-event-details –>
February 10, 2016 at 5:45 pm #1071120Brian
MemberHi Janet,
Thanks for using the Events Calendar.
Here on the pre-sales forum, I’m afraid we do not provide technical support. I would ask that you take any technical support questions across to our wordpress.org forum – our staff scan it periodically and other community members may also be able to help out.
Thanks again!
-
AuthorPosts
- The topic ‘Call to undefined function tribe_events_single_event_meta’ is closed to new replies.
