WordPress.org

Ready to get started?Download WordPress

Forums

WP-Piwik
[resolved] undefined method wp_piwik::check_url() (4 posts)

  1. N00body
    Member
    Posted 2 years ago #

    Hello together,

    I´m running some websites with WordPress and today I decided to install PIWIK and the WP-Piwik-Plugin.

    Eleven of twelve intallations were complete simple and the plugin is runnig as it should.

    Only one installation will cause problems:

    when I try to activate the PlugIn the following error occurs:

    undefined method wp_piwik::check_url() in /xxx/xxx/html/mywebsite/wp-content/plugins/wp-piwik/update/80800.php on line 2

    Does anybody know where the error come from?

    Manny thanks

    n00body

    http://wordpress.org/extend/plugins/wp-piwik/

  2. braekling
    Member
    Plugin Author

    Posted 2 years ago #

    Sounds like an old WP-Piwik version was installed before, but the upgrade script seems to be erroneous.

    WORKAROUND:
    Just remove the following code in update/80800.php:

    self::$aryGlobalSettings['piwik_url'] = self::check_url(self::$aryGlobalSettings['piwik_url']);

    After activating the plugin, you should check the stored Piwik URL and save your Piwik settings at least once.

    I'll also provide a fix as soon as possible, of course.

  3. N00body
    Member
    Posted 2 years ago #

    Hi braekling,
    thank you very much.

    After deleting the code I could activate the plugin and I could see there another configuration-setting ( there was - like you said - an old installation before (wondering who did that )). After changing the settings of the Plugin I inserted the deleted code again in 80800.php and tried to deactivate and activate again the plugin, which seems to work perfect.

    Again, thank you very much for your help.

    I marked this thread as solved, because I think there was an Error on my side ( the formerly installed PlugIn , maybe from an Co-Admin or something else) and wp-piwik works as it should.

    kindly regards,

    N00body

  4. braekling
    Member
    Plugin Author

    Posted 2 years ago #

    Nope, it was my fault. I changed check_url() without changing the function call in the upgrade file. (And - by the way - it's caused by the missing uninstall function.)

    But future versions will also work if you are upgrading from 0.8.7 or below :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic