Title: legend shortcode is causing an error
Last modified: July 25, 2020

---

# legend shortcode is causing an error

 *  Resolved [rhap01234](https://wordpress.org/support/users/rhap01234/)
 * (@rhap01234)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/legend-shortcode-is-causing-an-error/)
 * Hi,
 * I’m really excited to use Donation Thermometer. The plugin looks great on my 
   site. However, when I include “legend” in my shortcode, I get the following error:
   Warning: substr_count(): Empty substring in /home/imaikeli/public_html/wp-content/
   plugins/donation-thermometer/includes/therm_svg.php on line 125
 * Here is the code I am using: [thermometer raised=500;0;0;0 target=1500;6000;12000;37000
   legend=’Water Bill;Internet/Website;Electricity Bill;Rent (in future)’]
 * Could this be easily fixed, or I’m I doing something wrong? Thank you so much!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Flegend-shortcode-is-causing-an-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [rhewlif](https://wordpress.org/support/users/henryp/)
 * (@henryp)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/legend-shortcode-is-causing-an-error/#post-13170916)
 * Hi,
 * I’m glad to hear you’re enjoying the plugin 🙂
    It seems like this error will
   appear if the thousands separator is set to none; if you change this setting 
   it should disappear. I will update this bug soon though.
 * Cheers
 *  Plugin Author [rhewlif](https://wordpress.org/support/users/henryp/)
 * (@henryp)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/legend-shortcode-is-causing-an-error/#post-13171073)
 * Ok, try the latest plugin version 2.0.9
 *  Thread Starter [rhap01234](https://wordpress.org/support/users/rhap01234/)
 * (@rhap01234)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/legend-shortcode-is-causing-an-error/#post-13171486)
 * Wow, thank you so much! You are truly spectacular. Not only did you tell me how
   to fix it, but also provided an immediate update, and it works perfectly. You
   are really a man of your craft and your diligence and commitment really shines
   through. Thank you so much!

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

The topic ‘legend shortcode is causing an error’ is closed to new replies.

 * ![](https://ps.w.org/donation-thermometer/assets/icon-256x256.png?rev=3197594)
 * [Donation Thermometer](https://wordpress.org/plugins/donation-thermometer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/donation-thermometer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/donation-thermometer/)
 * [Active Topics](https://wordpress.org/support/plugin/donation-thermometer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/donation-thermometer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/donation-thermometer/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [rhap01234](https://wordpress.org/support/users/rhap01234/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/legend-shortcode-is-causing-an-error/#post-13171486)
 * Status: resolved