Support » Plugin: Slimstat Analytics » [Plugin: WP SlimStat] Dashboard Widget Error

  • Resolved karimun


    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jason Crouse


    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?


    Hi there,
    I’m not very php savvy and I have tried changing line 32
    $this->blog_domain = home_url();

    $this->blog_domain = home_url(;

    this hasn’t worked. would anyone know where I would add my actual home URL?

    Plugin Author Jason Crouse


    Hi Gammassoft,

    change it to

    $this->blog_domain = '';

    I will fix it in the code for my next release.


Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WP SlimStat] Dashboard Widget Error’ is closed to new replies.