Title: [Plugin: WP SlimStat] Dashboard Widget Error
Last modified: August 20, 2016

---

# [Plugin: WP SlimStat] Dashboard Widget Error

 *  Resolved [karimun](https://wordpress.org/support/users/karimun/)
 * (@karimun)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-slimstat-dashboard-widget-error/)
 * As the function home_url() was introduced in WordPress v3, following error appears
   in WordPress 2.9.2:
    Call to undefined function home_url() in ../wp-content/plugins/
   wp-slimstat/view/wp-slimstat-view.php on line 32
 * If you are on WordPress 2.9.2, you may add in line 32 your actual home URL, like
   [http://www.example.com](http://www.example.com)

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

 *  Plugin Contributor [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * (@coolmann)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-slimstat-dashboard-widget-error/#post-2160624)
 * Good point Karimun,
 * I thought that function was already there in 2.9.x, maybe I should just replace
   it with something else to make my plugin fully compatible with 2.9.x. What do
   you think?
 * Camu
 *  [gammassoft](https://wordpress.org/support/users/gammassoft/)
 * (@gammassoft)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-wp-slimstat-dashboard-widget-error/#post-2160838)
 * Hi there,
    I’m not very php savvy and I have tried changing line 32 $this->blog_domain
   = home_url();
 * to…
    $this->blog_domain = home_url([http://www.example.com](http://www.example.com));
 * this hasn’t worked. would anyone know where I would add my actual home URL?
 *  Plugin Contributor [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * (@coolmann)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-wp-slimstat-dashboard-widget-error/#post-2160839)
 * Hi Gammassoft,
 * change it to
 * `$this->blog_domain = 'http://www.example.com';`
 * I will fix it in the code for my next release.
 * Camu

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

The topic ‘[Plugin: WP SlimStat] Dashboard Widget Error’ is closed to new replies.

 * ![](https://ps.w.org/wp-slimstat/assets/icon.svg?rev=2832242)
 * [SlimStat Analytics](https://wordpress.org/plugins/wp-slimstat/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-slimstat/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-slimstat/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-slimstat/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-slimstat/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-slimstat/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * Last activity: [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-wp-slimstat-dashboard-widget-error/#post-2160839)
 * Status: resolved