Home › Forums › Calendar Products › Events Calendar PRO › Widget displaying past events all on the same day
- This topic has 18 replies, 2 voices, and was last updated 11 years, 9 months ago by
Casey D.
-
AuthorPosts
-
May 21, 2014 at 6:48 am #168902
Graham Stacey
ParticipantI have an install locally that works perfectly fine.
I have a staging install [with a broken menu, which is a DB issue I think] that the Events widget works perfectly fine on [cfss.wpengine.com]
I have a new production install [with fixed menu issue] in which the Events widget is displaying past event [campaignforsocialscience.org.uk]. This is a copy of the above mentioned local version, which worked fine locally, but not when deployed.So, is this a server environment issue?
Both are WordPress 3.8.3
Local is PHP 5.5.10
Production is PHP 5.4.25
Is this causing a problem? Although this makes no sense as the wpengine staging install is running 5.3.2-1ubuntu4.19.
Although I have ticked Yes to deactivating plugins and Yes to reverting to 2011, I can’t see how to do that when the local version is running fine. I do not want to run these test on the production server.Any clues?
ThanksMay 21, 2014 at 10:36 am #169260Casey D
MemberHello grahamstacey,
Thanks for contacting us!
It seems like there is a template override at play here. Can you check your active theme directory for a ‘tribe-events’ folder? Are there files inside of there? If there are, could you try uploading them for us to take a look at them? Especially if there is a ‘widgets’ directory or related files.
Does this make sense? Let me know if I can explain anything else!
Cheers!
– Casey Driscoll
May 21, 2014 at 10:59 am #169289Graham Stacey
ParticipantThere is indeed a template override, here’s the code:
<?php
/**
* Events Pro List Widget Template
* This is the template for the output of the events list widget.
* All the items are turned on and off through the widget admin.
* There is currently no default styling, which is highly needed.
*
* Override this template in your own theme by creating a file at [your-theme]/tribe-events/widgets/list-widget.php
*
* When the template is loaded, the following vars are set: $start, $end, $venue,
* $address, $city, $state, $province’], $zip, $country, $phone, $cost
*
* @package TribeEventsCalendarPro
* @since 1.0
* @author Modern Tribe Inc.
*
*/if ( !defined(‘ABSPATH’) ) { die(‘-1’); } ?>
<?php
$widget_args = tribe_events_get_adv_list_widget_args();
extract($widget_args);
?>
<li class=”<?php tribe_events_event_classes() ?>”>
<?php do_action( ‘tribe_events_list_widget_before_the_event_title’ ); ?>
<h4 class=”entry-title entry-title-widget summary”>
” rel=”bookmark”><?php the_title(); ?>
</h4>
<?php do_action( ‘tribe_events_list_widget_after_the_event_title’ ); ?>
<?php do_action( ‘tribe_events_list_widget_before_the_meta’ ) ?>
<div class=”duration”>
<?php echo tribe_events_event_schedule_details(); ?>
</div>
<?php if ( $cost && tribe_get_cost() != ” ) { ?>
<span class=”tribe-events-divider”>|</span>
<div class=”tribe-events-event-cost”>
<?php echo tribe_get_cost( null, true ); ?>
</div>
<?php } ?>
<div class=”vcard adr location”>
<?php if ( $venue && tribe_get_venue() != ”) { ?>
<span class=”fn org tribe-venue”><?php echo tribe_get_venue_link(); ?></span>
<?php } ?>
<?php if ( $address && tribe_get_address() != ” ) { ?>
<span class=”street-address”><?php echo tribe_get_address(); ?></span>
<?php } ?>
<?php if ( $city && tribe_get_city() != ” ) { ?>
<span class=”locality”><?php echo tribe_get_city(); ?></span>
<?php } ?>
<?php if ( $region && tribe_get_region() !=” ) { ?>
<span class=”region”><?php echo tribe_get_region(); ?></span>
<?php } ?>
<?php if ( $zip && tribe_get_zip() != ” ) { ?>
<span class=”postal-code”><?php echo tribe_get_zip(); ?></span>
<?php } ?>
<?php if ( $country && tribe_get_country() != ”) { ?>
<span class=”country-name”><?php echo tribe_get_country(); ?></span>
<?php } ?>
<?php if ( $organizer && tribe_get_organizer() != ” ) { ?>
<?php _e( ‘Organizer:’, ‘tribe-events-calendar-pro’ ); ?>
<span class=”tribe-organizer”><?php echo tribe_get_organizer_link(); ?></span>
<?php } ?>
<?php if ( $phone && tribe_get_phone() != ” ) { ?>
<span class=”tel”><?php echo tribe_get_phone(); ?></span>
<?php } ?>
</div>
<?php do_action( ‘tribe_events_list_widget_before_the_meta’ ) ?>Thanks for looking.
May 22, 2014 at 12:51 pm #170691Graham Stacey
ParticipantHi,
I have had to remove all events from showing on the widget as the info is just misleading.
I have cloned the site to ob-live.com and kept the events showing, you can see the issue here.
The widget is set to only show events from one category. I have only one of many events currently in that category but there are 3 events showing; one duplicate and one previous event.
I can provide login details for this cloned site
Do you have any clues?
Thanks
May 23, 2014 at 3:17 pm #172431Casey D
MemberI’m going though your template but it seems too much is stripped out for me to make much use of it. Would you mind posting it to a site like http://pastie.org/ to keep the code intact?
From what I was able to refactor, it seems everything is working well. Here is the code as I fixed it up and image example of it working.
Also, for documentation sake, here is a snapshot of your working staging site (expected results) and what would be your broken prod site it it was live.
Expected:
Broken:
I’m 99% confident the issue is with the template override, if you could upload your prod version of the list-widgets.php to a pastie like site that would be helpful.
Does this make sense? Let me know if I can explain anything else!
Cheers!
– Casey Driscoll
May 23, 2014 at 3:37 pm #172454Graham Stacey
ParticipantThanks Casey,
I have loaded the code to http://pastie.org/9203907 as requested. This is a copy of the production site code as it is. As I mentioned above this is currently cloned toob-live.com
What I am still bugged about is that there is no issue with the site running on my local server.
The events display as expected.
Thank you for continuing to look at this.May 26, 2014 at 2:47 pm #178593Casey D
MemberHello grahamstacey,
I tested the template override and it appears to be working on my install jut fine, no duplicates or other mess.
Also, as of this evening, your widget isn’t displaying any events, so it is even more difficult to troubleshoot.
It appears you have some events coming in a few days though, so I will keep an eye on this thread to make. Actually, I’m not sure why your widget isn’t populating, as the events are in a few days.
Could you post the configuration of you widget’s pane?
Does this make sense? Let me know if I can explain anything else!
Cheers!
– Casey Driscoll
May 30, 2014 at 3:09 am #189975Graham Stacey
ParticipantHi,
I think you are looking at the production site. We have turned off events on the homepage because the information is mis-leading.Please see ob-live.com, which is a copy and is showing a messed up widget. Happy to provide log-in details for this clone site.
Thanks
GMay 30, 2014 at 8:06 am #190811Casey D
MemberHello grahamstacey,
Your clone site at http://ob-live.com/events-list/ doesn’t seem to be fully functional, as most of the links report a 404.
If you wanted to fully clone the site, and then post the credentials in a private reply, I would be happy to take a look.
– Casey Driscoll
May 30, 2014 at 1:44 pm #191834Graham Stacey
ParticipantThis reply is private.
May 30, 2014 at 1:46 pm #191841Graham Stacey
ParticipantThis reply is private.
June 2, 2014 at 7:09 am #198490Casey D
MemberHello grahamstacey,
I’m not sure what the issue was, but I logged in to your test site and updated the core plugin to 3.6. The widget now works as expected, as it is the only ‘On the homepage’ plugin.
Can you update the plugin on your live site, to see if that will fix the issue.
As always, please make sure you have a recent backup of your site before you start! I’m assuming nothing bad will happen, but better to be safe than sorry.
Additionally, you may want to wait until later today, as we are releasing a 3.6.1 hotfix imminently.
Does this make sense? Let me know if this doesn’t work for you.
Cheers!
– Casey Driscoll
June 8, 2014 at 7:06 am #213125Graham Stacey
ParticipantHi Casey,
Sorry this keeps dragging on… I was away on holiday for a while and then catching up.
I have looked at the test site and this is not working.
There is a warning on the widget and it is picking up news items not events.
I would be very grateful if you can have another look.
Thank youJune 9, 2014 at 9:16 am #214892Casey D
MemberHello grahamstacey,
Your FTP credentials aren’t working, and I can’t find that file in the WP editor. Can you confirm those credentials are correct?
– Casey Driscoll
June 9, 2014 at 10:51 pm #216139Graham Stacey
ParticipantThis reply is private.
-
AuthorPosts
- The topic ‘Widget displaying past events all on the same day’ is closed to new replies.






