1970 Bug

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #17954
    Anthony D’Arco
    Participant

    I know there have been a couple of threads about this before (but when I searched for 1970 Bug, I couldn’t seem to find what I was looking for). First off, I know the problem before was that the Pro version was not the same as Free version. I can assure you that I am running 2.0.5 for both. Everything works great except for the widget links. They kick back the 1970-… url. Wasn’t sure if you knew why this was happening.

    #17966
    Rob
    Member

    Hey Anthony. You’re the first to report it, but that certainly doesn’t mean there isn’t a legit issue here. Which widget is the issue here, and is this for recurring/standalone events? A link to a place where I can see the widget in action would be awesome and I can try to diagnose from there.

    #17983
    Anthony D’Arco
    Participant

    Woohoo, First! I am using the Advanced Events Widget and here is a link: http://www.stjohnofthecross.org/
    Thank you,
    Anthony

    #17994
    Rob
    Member

    Thanks Anthony. I am indeed seeing the issue and am, unfortunately but as I’d thought, totally unable to recreate on my end.

    What is your permalinks structure? I’m just using /%postname%/. And, have you already checked whether this is a conflict with another plugin or the theme? If not, definitely go the deactivation route to try and test. From there if we’re still having issues I may need access to your system to check it out there…but let’s cross that bridge when we get to it.

    #18005
    Henry
    Member

    1 January 1970 is the Unix epoch date. It is simply a way for certain systems to keep time by measuring how long has elapsed since this time. I am not familiar with the way the widget is set up but I would imagine the time is defaulting back to this date.

    Not sure how this can help but perhaps when trying to diagnose the issue.

    #18009
    Anthony D’Arco
    Participant

    Ok, so I actually just noticed this is happening to another site of mine as well. It is a bit more standard of an install, so maybe this is the better place to diagnose: http://www.stthomaspeoria.org/ You will see the events scrolling in the yellow section. Same thing is happening.

    As far as my permalink structure, it is using /%postname%/. Concerning plugins, I turned off Total Cache first, everything seemed to work just fine. I turned it back on and it was broken again. So, that seems to be the culprit. However, I need total cache on for obvious performance reasons. Any ideas?

    Thank you,
    Anthony

    #18011
    Henry
    Member

    I don’t use the advanced widget so have no way to test but my stab at this would be to make a very slight amendment to one of the Pro files.

    Try finding file plugins/events-calendar-pro/views/events-advanced-list-load-widget-display.php

    Then change the following code around line 58

    http://pastie.org/3807327

    To this

    http://pastie.org/3807336

    As mentioned, I haven’t been able to test so make a back up of the file before making the change.

    #18012
    Henry
    Member

    If this doesn’t work for you then you could always manually display a list of events without using the widget using this:

    http://pastie.org/3807381

    I have set showposts to 1000 but feel free to change this to whatever number of events you’d like to display.

    #18051
    Anthony D’Arco
    Participant

    Thank you for the code, it will hugely helpful, and I will be using that code in other places. However, I do still have a bit of an issue. The widget allows me to filter categories as well as exclude certain items through a check-box. Those items are essential for me in certain places. So, I really need either that functionality included in your code, or I need to get the widgets working.

    Thank you,
    Anthony

    #18052
    Henry
    Member

    you can have events from a certain category display only by making a minor modification to the code.

    In my example below I have included the first 1000 events that are in the “football” category:

    http://pastie.org/3813291

    #18077
    Rob
    Member

    Thanks, Henry 🙂

    Anthony: give that a go, and we can keep trying to troubleshoot as needed.

    #18091
    Cliff
    Participant

    For anyone else that comes here looking to fix a ‘1970’ bug, I was using get_permalink() in a custom loop of events and limit recurring ones to one output—I corrected it by using tribe_get_event_link($post) to get the first date’s link.

    #18140
    Rob
    Member

    Thanks for the heads up here, Cliff.

    Anthony: that help you at all?

    #18981
    Anthony D’Arco
    Participant

    Sorry, in my delayed response, for some reason it stopped sending me updates via email when a new post occured. I’m not exactly sure where Cliff is referring to. The problem is I’m not using a custom loop, I’m using the widget (I apologize for my lack of knowledge because I suppose they could be the same thing). Overall, Henry’s is closer to the solution, but for the widget, there is an option (checkbox) excluded this event from widget. So, I don’t think that will quite work unless that option is included.

    Thank you,
    Anthony

    #19224
    Rob
    Member

    Hi there Anthony. I’ve been away on vacation and apologize for the delayed response as a result on my end. Where do you see the setting to exclude this event from the widget? I’m not seeing that on my end anywhere…

Viewing 15 posts - 1 through 15 (of 17 total)
  • The topic ‘1970 Bug’ is closed to new replies.