Title: [Plugin: Live Countdown Timer] PHP warning &#8211; and no timer displayed
Last modified: August 19, 2016

---

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

 *  [kwikone](https://wordpress.org/support/users/kwikone/)
 * (@kwikone)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/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)

 *  Thread Starter [kwikone](https://wordpress.org/support/users/kwikone/)
 * (@kwikone)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-live-countdown-timer-php-warning-and-no-timer-displayed/#post-1726318)
 * 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
       ```
   
 *  Thread Starter [kwikone](https://wordpress.org/support/users/kwikone/)
 * (@kwikone)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-live-countdown-timer-php-warning-and-no-timer-displayed/#post-1726325)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/live-countdown-timer.svg)
 * [Live Countdown Timer](https://wordpress.org/plugins/live-countdown-timer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/live-countdown-timer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/live-countdown-timer/)
 * [Active Topics](https://wordpress.org/support/plugin/live-countdown-timer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/live-countdown-timer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/live-countdown-timer/reviews/)

## Tags

 * [php-error](https://wordpress.org/support/topic-tag/php-error/)

 * 2 replies
 * 1 participant
 * Last reply from: [kwikone](https://wordpress.org/support/users/kwikone/)
 * Last activity: [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-live-countdown-timer-php-warning-and-no-timer-displayed/#post-1726325)
 * Status: not resolved