• Resolved aaron44126

    (@aaron44126)


    Getting an error. It used to work but recently the graph stopped showing on my WordPress dashboard. I checked into it deeper just now and found a PHP error cropping up. I get the error when viewing the graph on my dashboard, or clicking either the “Clear authentication” or “Clear cache” buttons in the settings page.

    The error is:

    Cannot redeclare class Google_MetadataServiceResource in [wordpress path]\\wp-content\\plugins\\google-adsense-dashboard-for-wp\\src\\contrib\\Google_AdsenseService.php on line 0

    I think this may be because I also have the “Google Analyticator” plugin installed (which also shows a nifty graph on my dashboard), and it looks like both of your plugins include the Google API PHP client. If I deactivate the Google Analyticator plugin, then the AdSense plugin works again.

    I know because this is a conflict with another plugin, its not entirely on you to fix. However, I don’t suppose you could be bothered to include some “class_exists” calls before including the Google PHP library? Might solve the problem.

    http://ww.wp.xz.cn/plugins/google-adsense-dashboard-for-wp/

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

The topic ‘Error: Cannot redeclare class Google_MetadataServiceResource’ is closed to new replies.