WordPress.org

Forums

Google Analyticator
[resolved] Fatal error, resolved at last (2 posts)

  1. meksone
    Member
    Posted 2 years ago #

    Hi, I've been using Google Analyticator version 6.4 and after some plugin updates the dashboard plugin shows me this error:
    Fatal error: Cannot redeclare class URI_Template_Parser in /var/www/vhosts/thesounddaily.com/httpdocs/wp-content/plugins/google-analyticator/google-api-php-client/src/external/URITemplateParser.php on line 30

    So, I've take a look around here in the forum; the first post marked SOLVED has the same (more or less) problem of mine but it didn't resolve so much for me.

    Then I decided to play a little bit with the file URITemplateParser.php. I've discovered that the class isn't in a if statement (but somewhere in this forum I've read the opposite thing...) so I've added this code just before the "class"

    if(class_exists('TestClass') != true)
    {

    then, at the very end of the file, i've put another } and ta dah! it works again!

    I hope is useful for someone

    http://wordpress.org/extend/plugins/google-analyticator/

  2. Video User Manuals
    Member
    Posted 2 years ago #

    Thanks meksone - we noticed this and have included it in the 6.4.1 update!

    Thanks, Ben

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic