Title: [Plugin: Runners Log] [bug] function hms2sec redefined
Last modified: August 19, 2016

---

# [Plugin: Runners Log] [bug] function hms2sec redefined

 *  Resolved [michaellasmanis](https://wordpress.org/support/users/michaellasmanis/)
 * (@michaellasmanis)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-runners-log-bug-function-hms2sec-redefined/)
 * hi,
 * love your plugin, it’s been working great.
 * i did run into one small bug. the function hm2sec() is defined within function
   runners_log_basic(). while legal in php, the function does get declared in the
   global namespace. this is not a problem if you just call the [runners_log_basic]
   shortcode once on a page. however, if you call it multiple times, you get an 
   error that the function hm2sec() is redefined.
 * the solution is simple, just move the function declaration hm2sec() out of runners_log_basic().
 * test case:
    1) create post with runners log data and [runners_log_basic] in the
   body of the post 2) create second post with data and [runners_log_basic] in the
   body of the post 3) visit your home page (or any page displaying the two posts
   at the same time)
 * thanks for all your hard work on this
 * michael
 * [http://wordpress.org/extend/plugins/runners-log/](http://wordpress.org/extend/plugins/runners-log/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Frederik Liljefred. M.D.](https://wordpress.org/support/users/frold/)
 * (@frold)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-runners-log-bug-function-hms2sec-redefined/#post-1395790)
 * Thanks for reporting.
 * Already fixed thanks to klojo. In another post. Well be fixed in 1.6.7.
 * Keep me informed if you find other bugs…. 😉
 * Thanks again.
 *  Thread Starter [michaellasmanis](https://wordpress.org/support/users/michaellasmanis/)
 * (@michaellasmanis)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-runners-log-bug-function-hms2sec-redefined/#post-1395827)
 * Sorry for the duplicate.
 * Michael
 *  [Frederik Liljefred. M.D.](https://wordpress.org/support/users/frold/)
 * (@frold)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-runners-log-bug-function-hms2sec-redefined/#post-1395828)
 * Np – Im just glad that someone want to use and test my plugin..
 *  [Frederik Liljefred. M.D.](https://wordpress.org/support/users/frold/)
 * (@frold)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/plugin-runners-log-bug-function-hms2sec-redefined/#post-1395875)
 * v1.6.7 including the fix is just released!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘[Plugin: Runners Log] [bug] function hms2sec redefined’ is closed to 
new replies.

 * 4 replies
 * 2 participants
 * Last reply from: [Frederik Liljefred. M.D.](https://wordpress.org/support/users/frold/)
 * Last activity: [16 years, 4 months ago](https://wordpress.org/support/topic/plugin-runners-log-bug-function-hms2sec-redefined/#post-1395875)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
