WordPress.org

Support

Support » Plugins and Hacks » Live Countdown Timer » [Plugin: Live Countdown Timer] PHP warning – and no timer displayed

[Plugin: Live Countdown Timer] PHP warning – and no timer displayed

  • I inserted a countdown timer in a post (at the bottom) and when I viewed the post I got the following (just above the post)..
    Warning: mktime() expects parameter 4 to be long, string given in blogs/wp-content/plugins/live-countdown-timer/calculateTime.php on line 7

    and no timer was displayed

    Using php5

Viewing 2 replies - 1 through 2 (of 2 total)
  • I got it to work with the following patch(es)…

    in live-countdown-timer.php (line 20):

    REPLACE:
        $xDBArr = UNSERIALIZE(get_option('live_countdown_timer_Values'));
    WITH:
        $xDBArr = get_option('live_countdown_timer_Values');

    AND in calculateTimer.php (line 13):

    REPLACE:
        $xTheDate = mktime($xFromDate[0],$xFromDate[1],$xFromDate[2],$xFromDate[3],$xFromDate[4],$xFromDate[5]);//$xFromDate
    WITH:
        $xTheDate = mktime((int) $xFromDate[0],(int) $xFromDate[1],(int) $xFromDate[2],(int) $xFromDate[3],
    			(int) $xFromDate[4],(int) $xFromDate[5]);//$xFromDate

    Now the biggest problem is that it doers not show you the current settings for as post when you go to edit it which means you have to always re-enter it when editing a post.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Live Countdown Timer] PHP warning – and no timer displayed’ is closed to new replies.
Skip to toolbar