Ready to get started?Download WordPress


WP Slimstat
[resolved] [Plugin: WP SlimStat] Dashboard Widget Error (4 posts)

  1. karimun
    Posted 3 years ago #

    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

  2. camu
    Plugin Author

    Posted 3 years ago #

    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?


  3. gammassoft
    Posted 3 years ago #

    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(http://www.example.com);

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

  4. camu
    Plugin Author

    Posted 3 years ago #

    Hi Gammassoft,

    change it to

    $this->blog_domain = 'http://www.example.com';

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


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic