Support » Plugin: WP-Matomo Integration (WP-Piwik) » Fatal error Call to undefined method WP_Piwik\Admin\Network::getPluginURL()

  • Resolved Mike Little


    There is a fatal error in version 1.0.25
    It looks like you moved the getPluginURL function from the Statistics class (or another in the inheritance tree) to the embedded $wpPiwik object property.
    But you left a reference to the old one.

    File wp-piwik/classes/WP_Piwik/Admin/Network.php line 13.

    wp_enqueue_script ( 'wp-piwik-chartjs', $this->getPluginURL () . 'js/chartjs/chart.min.js', "3.4.1" );

    should be

    wp_enqueue_script ( 'wp-piwik-chartjs', self::$wpPiwik->getPluginURL() . 'js/chartjs/chart.min.js', "3.4.1" );

    I expect the space before the open parenthesis meant your search and replace missed this one.

    • This topic was modified 10 months, 3 weeks ago by Mike Little.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Fatal error Call to undefined method WP_Piwik\Admin\Network::getPluginURL()’ is closed to new replies.