Title: Cannot declare class
Last modified: December 17, 2020

---

# Cannot declare class

 *  Resolved [maxplateau](https://wordpress.org/support/users/maxplateau/)
 * (@maxplateau)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/cannot-declare-class-2/)
 * Hello,
    My logs have many PHP warnings :
 * Cannot declare class Google_Service, because the name is already in use in /home/
   mywebsite/public_html/wp-content/plugins/beehive-analytics/dependencies/vendor/
   google/apiclient/src/Google/Service.php
    Cannot declare class Google_Collection,
   because the name is already in use in /home/mywebsite/public_html/wp-content/
   plugins/beehive-analytics/dependencies/vendor/google/apiclient/src/Google/Collection.
   php Cannot declare interface Google_Task_Retryable, because the name is already
   in use in /home/mywebsite/public_html/wp-content/plugins/beehive-analytics/dependencies/
   vendor/google/apiclient/src/Google/Task/Retryable.php Cannot declare class Google_Service_Resource,
   because the name is already in use in /home/mywebsite/public_html/wp-content/
   plugins/beehive-analytics/dependencies/vendor/google/apiclient/src/Google/Service/
   Resource.php Cannot declare class Google_Client, because the name is already 
   in use in /home/mywebsite/public_html/wp-content/plugins/beehive-analytics/dependencies/
   vendor/google/apiclient/src/Google/Client.php Cannot declare class Google_Model,
   because the name is already in use in /home/mywebsite/public_html/wp-content/
   plugins/beehive-analytics/dependencies/vendor/google/apiclient/src/Google/Model.
   php
 * Could you do something about it ?
    Thanks!

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

 *  Plugin Support [Patrick – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport12/)
 * (@wpmudevsupport12)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/cannot-declare-class-2/#post-13802704)
 * Hi [@maxplateau](https://wordpress.org/support/users/maxplateau/)
 * Sorry to hear you are having this issue.
 * This happens because another plugin is trying to declare the Google class.
 * We will need to find which plugin is causing this conflict.
 * Could you please try to install the Query Monitor plugin: [https://wordpress.org/plugins/query-monitor/](https://wordpress.org/plugins/query-monitor/)
 * And check if it will give the same warnings and point the plugin name?
 * Usually, it is a plugin that has a Google integration too, for example, another
   analytics plugin.
 * Let us know the result you got.
    Best Regards Patrick Freitas
 *  Thread Starter [maxplateau](https://wordpress.org/support/users/maxplateau/)
 * (@maxplateau)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/cannot-declare-class-2/#post-13802876)
 * Hello,
    Thanks for you answer, I have installed the plugin Query Monitor and 
   I have the same warnings. The plugin that has a Google integration too is LatePoint.
 *  Plugin Support [Patrick – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport12/)
 * (@wpmudevsupport12)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/cannot-declare-class-2/#post-13814049)
 * Hi [@maxplateau](https://wordpress.org/support/users/maxplateau/)
 * Thank you for the update.
 * Could you please send me an email to [contact@wpmudev.org](https://wordpress.org/support/topic/cannot-declare-class-2/contact@wpmudev.org?output_format=md)
   using this template:
 * > Subject: “Attn: Patrick Freitas”
   > Message: link back to this thread for reference
 * Best Regards
    Patrick Freitas
 *  Plugin Support [Patrick – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport12/)
 * (@wpmudevsupport12)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/cannot-declare-class-2/#post-13837293)
 * Hi [@maxplateau](https://wordpress.org/support/users/maxplateau/)
 * I hope you are doing well and safe!
 * We haven’t heard from you in a while, I’ll mark this thread as resolved.
 * Feel free to let us know if you have any additional question or problem.
 * Best Regards
    Patrick Freitas

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

The topic ‘Cannot declare class’ is closed to new replies.

 * ![](https://ps.w.org/beehive-analytics/assets/icon-256x256.gif?rev=3406957)
 * [Beehive Analytics - Google Analytics Dashboard](https://wordpress.org/plugins/beehive-analytics/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/beehive-analytics/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/beehive-analytics/)
 * [Active Topics](https://wordpress.org/support/plugin/beehive-analytics/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/beehive-analytics/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/beehive-analytics/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Patrick – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport12/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/cannot-declare-class-2/#post-13837293)
 * Status: resolved