Title: [Plugin: WP-Piwik] undefined method wp_piwik::check_url()
Last modified: August 20, 2016

---

# [Plugin: WP-Piwik] undefined method wp_piwik::check_url()

 *  Resolved [N00body](https://wordpress.org/support/users/n00body/)
 * (@n00body)
 * [14 years ago](https://wordpress.org/support/topic/plugin-wp-piwik-undefined-method-wp_piwikcheck_url/)
 * 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/](http://wordpress.org/extend/plugins/wp-piwik/)

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

 *  Plugin Author [braekling](https://wordpress.org/support/users/braekling/)
 * (@braekling)
 * [14 years ago](https://wordpress.org/support/topic/plugin-wp-piwik-undefined-method-wp_piwikcheck_url/#post-2795579)
 * 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.
 *  Thread Starter [N00body](https://wordpress.org/support/users/n00body/)
 * (@n00body)
 * [14 years ago](https://wordpress.org/support/topic/plugin-wp-piwik-undefined-method-wp_piwikcheck_url/#post-2795593)
 * 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
 *  Plugin Author [braekling](https://wordpress.org/support/users/braekling/)
 * (@braekling)
 * [14 years ago](https://wordpress.org/support/topic/plugin-wp-piwik-undefined-method-wp_piwikcheck_url/#post-2795691)
 * 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 🙂

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

The topic ‘[Plugin: WP-Piwik] undefined method wp_piwik::check_url()’ is closed 
to new replies.

 * ![](https://ps.w.org/wp-piwik/assets/icon-256x256.png?rev=3529668)
 * [Connect Matomo - Analytics Dashboard for WordPress](https://wordpress.org/plugins/wp-piwik/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-piwik/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-piwik/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-piwik/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-piwik/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-piwik/reviews/)

## Tags

 * [check](https://wordpress.org/support/topic-tag/check/)
 * [method](https://wordpress.org/support/topic-tag/method/)
 * [undefined](https://wordpress.org/support/topic-tag/undefined/)
 * [url](https://wordpress.org/support/topic-tag/url/)

 * 3 replies
 * 2 participants
 * Last reply from: [braekling](https://wordpress.org/support/users/braekling/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/plugin-wp-piwik-undefined-method-wp_piwikcheck_url/#post-2795691)
 * Status: resolved