• Hello,

    Great job on the beautiful and functional plugin. I look forward to supporting the development of what I consider to be the best calendar plugin out there.

    Unfortunately, I am having a difficult time getting events to show on my local test site. I have two calendars, one containing local events and the other containing a Google Calendar. As far as I can tell, the Google Calendar events are displaying well, but I cannot display any local events. When I successfully add an event and try to view it, I get the dreaded ‘Page Not Found – 404’ error.

    I tried disabling every plugin, but to not avail. I can’t get local events to appear on their own page or even appear on the calendar to which they are assigned.

    Any thoughts?

    Thank you

    http://wordpress.org/extend/plugins/every-calendar-1/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Eusebius

    (@eusebius)

    Hello,

    I think I found the problem, but I don’t know how to fix it. When I comment out this whole section, the pages load just fine:

    // Define a custom where condition on ecp1_events for start year/month/day
    add_filter( 'posts_where', 'ecp1_events_ymd_where' );
    function ecp1_events_ymd_where( $where ) {
    	global $wpdb, $wp_query;
    	if ( isset( $wp_query->query_vars['post_type'] ) && 'ecp1_event' == $wp_query->query_vars['post_type'] && is_singular() ) {
    		$y = $wp_query->query_vars['ees_year'];
    		$m = $wp_query->query_vars['ees_month'];
    		$d = $wp_query->query_vars['ees_day'];
    		$where .= sprintf( ' AND ( ' .
    			' %s = YEAR(CONVERT_TZ(FROM_UNIXTIME(ecp1_es.meta_value), @@session.time_zone, "+00:00")) AND ' .
    			' %s = MONTH(CONVERT_TZ(FROM_UNIXTIME(ecp1_es.meta_value), @@session.time_zone, "+00:00")) AND ' .
    			' %s = DAYOFMONTH(CONVERT_TZ(FROM_UNIXTIME(ecp1_es.meta_value), @@session.time_zone, "+00:00")) ) ',
    			$wpdb->escape( $y ),
    			$wpdb->escape( $m ),
    			$wpdb->escape( $d ) );
    	}
    	return $where;
    }

    Question 1: What does this function do exactly?

    Question 2: Do we need it? 😉

    Hello – I’m a newbie to all of this and am having the same problem. I cannot get any events to display. I have tried just a simple event like my birthday as an all day event and again with start and finish times right up to featured event with map etc. Nothing displays even though it looks as though the event has been saved and published
    Please can someone help using really simple language as I’m on a really steep learning curve at the moment

    Many thanks

    Having the same problem.

    The permalink generated by the plugin. Note the extra / in the URL.

    http://www.fbcamory.org/index.php//event/2013/6/10/vacation-bible-school/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Every Calendar 1 for WordPress] Local Events Resulting in 404 Page Not Found’ is closed to new replies.