WordPress.org

Ready to get started?Download WordPress

Forums

Countdown Timer
[resolved] Fatal error withe upgrade (23 posts)

  1. pixwell
    Member
    Posted 2 years ago #

    Hi,

    Thanks for your great plugin but since i upgrade it i have :

    Fatal error: Call to a member function date() on a non-object in ....../countdown-timer/fergcorp_countdownTimer.php on line 366

    And i can't do anything. Any Idea?

    http://wordpress.org/extend/plugins/countdown-timer/

  2. bonzo01
    Member
    Posted 2 years ago #

    Happened to me as well. Reinstalled the plugin and it works. However there are nonworking functions.

    Like clicking the "Automatically delete 'One Time Events' after they have occured?" to "yes" makes most of the options disappear, along with all the dates. Also, the "Countdown Time Display" options doesn't do anything. Tried turning off seconds, and seconds are still shown..

  3. pixwell
    Member
    Posted 2 years ago #

    Thanks for your answer !

    It works ! but you're right lot of bug in this version. But still a very good plugin!

    Thanks again bonzo01

  4. fergbrain
    Member
    Plugin Author

    Posted 2 years ago #

    @pixwell and @bonzo01:

    My apologies on the update issue. A few WP versions ago (3.1 to be precise, http://core.trac.wordpress.org/ticket/14915 ), there was a change to how register_activation_hook works and it no longer fires on updates. I didn't catch that change.

    I have implemented a fix in 3.0.1 that I believe will solve the update issue by doing a version check against the database and will fire the install action if it detects a lower version. This will properly run the update so the plugin works. As you have also found, the same can functionality can be accomplished by deactivating and reactivating the plugin, but why make people do more work?

  5. fergbrain
    Member
    Plugin Author

    Posted 2 years ago #

    @bonzo01: I'm not able to reproduce the issues about "Automatically delete 'One Time Events' after they have occured?" to "yes" makes most of the options disappear, along with all the dates."

    Did this occur before or after you deactivated and reactivated the plugin?

  6. bonzo01
    Member
    Posted 2 years ago #

    fergbrain: I got this issue after reinstalling the plugin(reinstalled because of the update error).

    I have used this plugin for a long time, however i've never tried the automatic delete function before, so I have no idea if it used to work on my site. After setting it to "yes" and saving everything in the settings page in the admin panel disappears, except for the tabs: resources and installation and usage notes. The "one time events" tab is also there, but it's blank and so is the rest of the settings page. The widget however is still working and still has all the events in there, so it seems to just fuck up the settings page. Deactivating and reactivating doesn't make any difference after this issue appears.

    Also, changing the looks(removing weeks, minutes, seconds etc.) doesn't seem to work. Changing the settings doesn't do anything.

  7. fergbrain
    Member
    Plugin Author

    Posted 2 years ago #

    @Bonzo01: Take a look at the latest version, 3.0.1. I think I've fixed the issues you're having. If not, please let me know what version of WP and PHP you're using, along with a screenshot of what you see. Sorry for the problems guys :(

  8. bonzo01
    Member
    Posted 2 years ago #

    Hmm, it went from bad to worse ;) Was able to update the plugin through WP admin, and even though the plugin still worked it didn't fix the issues im having.

    So I deactivated it and now i'm getting a fatal error when reactivating. Got the same error when I remove the plugin and reinstall it (3.0.1).

    "Fatal error: Using $this when not in object context in /home/gamerdlv/public_html/wp-content/plugins/countdown-timer/fergcorp_countdownTimer.php on line 1158"

    Using WP 3.4 and PHP 5.2.17.

  9. Beee
    Member
    Posted 2 years ago #

    I posted the same issue @ http://wordpress.org/support/topic/plugin-countdown-timer-fatal-error-when-activating-v301
    right about the same time :)

    I downgraded to 3.0 again and that works for the time being...
    http://downloads.wordpress.org/plugin/countdown-timer.3.0.zip

    I marked the plugin broken which redirected me to write a new post, hence why I didn't saw this topic.

  10. fergbrain
    Member
    Plugin Author

    Posted 2 years ago #

    This is not my week.

    I can confirm the issue. I took a look at it this morning. As Beee pointed out, 3.0 does work and I am comfortable with saying that you can use 3.0.

    I'm not 100% sure why is throwing that error, but I'm working on understanding what the WordPress core is doing (it has to do with how WordPress activates settings for plugins that are using Classes, this is my first class...there were bound to be issues).

    In any event, I've pulled back the 3.0.1 release, so hopefully not too many people will be affected. Again, so sorry for this. I'm pretty embarrassed that I released code that is doing this.

  11. Beee
    Member
    Posted 2 years ago #

    Uhm, I just found out something in 3.0

    I have seconds disabled on my countdown but they do show on http://www.rubber-travel.com (bottom right).

  12. bonzo01
    Member
    Posted 2 years ago #

    Yeah I have the same issue with the "countdown time display". You should look into that as well fergbrain :) In 3.0 the settings for whether to show seconds, minutes, hours etc. doesn't do anything.

  13. fergbrain
    Member
    Plugin Author

    Posted 2 years ago #

    Gentlemen: Hot off the press is a pre-release version of 3.0.2: https://github.com/fergbrain/countdown-timer/zipball/3.0.2

    If you wouldn't mind taking a look at it and seeing if you have any issues, I would greatly appreciate it. I believe I have once and for all quashed the initialization bug no matter if you upgrade or activate.

    I've also found and quashed the bug relating to the issue of seconds being disabled or not.

    I'm going to bed now, but if you get a chance to test it in the seven hours (before 7am [-0700 GMT]), I'll throw it up on the WordPres SVN.

    Cheers!

  14. bonzo01
    Member
    Posted 2 years ago #

    Seems to be working now, at least as a new install and activate. Wasn't able to try updating. Also, disabling seconds (and whatever else you want) is now working properly :)

    I'll try the "Automatically delete 'One Time Events'" function later when I have some more time, since I had some issues with it in 3.0.

  15. fergbrain
    Member
    Plugin Author

    Posted 2 years ago #

    @bonzo01: I tested the delete one time events functionality and it's been working for me. I released 3.0.2 yesterday, but if you end up having issues, please let me know!

    Thanks again for all your help!

  16. bonzo01
    Member
    Posted 2 years ago #

    Yeah the "delete one time events" is still not working for me, even with 3.0.2. It's not a big deal since I usually don't use it anyway and it doesn't seem like many others have this issue.

    But if you want to look into it anyway I posted a screenshot at tinypic. This is how my settings page in my admin panel looks after turning "delete one time events" on. What you see on the screenshot is all the way scrolled down, and all the tabs except for the infotabs are gone from the settings page. The widget still works though and all my events are still listed there, but as you can see i'm unable to add more or do any other changes unless I reinstall the plugin.

    As mentioned earlier, i'm using WP 3.4, PHP 5.2.17 and 3.0.2 version of the plugin.

  17. Beee
    Member
    Posted 2 years ago #

    I just noticed one event not showing. I set 3 events in the sidebar widget but 2 are only showing.

  18. fergbrain
    Member
    Plugin Author

    Posted 2 years ago #

    @bonzo01: Have you tried deactivating and re-activing the plugin?

    @Bee: What are the dates of your events?

  19. Beee
    Member
    Posted 2 years ago #

    http://i.imgur.com/wpZ6D.jpg
    that is my widget setting

    the result can be seen on http://www.rubber-travel.com
    right bottom corner. It shows only 2 dates.

    The event from Thu, 09 Aug 2012 09:00:00 is not shown
    http://i.imgur.com/WnfHU.jpg

  20. fergbrain
    Member
    Plugin Author

    Posted 2 years ago #

    @Beee: I'm not able to reproduce that issue. What version of PHP are you using?

  21. fergbrain
    Member
    Plugin Author

    Posted 2 years ago #

    FYI: Just released version 3.0.3...see if that fixes the issues.

  22. Beee
    Member
    Posted 2 years ago #

    using 5.2.17

  23. Beee
    Member
    Posted 2 years ago #

    the update did it for me, now showing 3 again, see rubber-travel.com

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic