WordPress.org

Ready to get started?Download WordPress

Forums

Live Countdown Timer
PHP warning - and no timer displayed (3 posts)

  1. kwikone
    Member
    Posted 3 years ago #

    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

  2. kwikone
    Member
    Posted 3 years ago #

    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
  3. kwikone
    Member
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic