Title: Google API Class Conflict
Last modified: October 13, 2022

---

# Google API Class Conflict

 *  [wpmuwhatever](https://wordpress.org/support/users/wpmuwhatever/)
 * (@wpmuwhatever)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/google-api-class-conflict/)
 * Hello,
 * I am trying to use this plugin and am running into an issue where the classes
   of the Google API services are conflicting with another plugin. In the `authorizer
   >vendor>google>apiclient>src>aliases.php` file, all the Google services in the`
   classMap` array get created and then all throw warnings when another plugin, 
   Beehive Pro, tries to register the same Google services in its `aliases.php` 
   file at the similar location. I’m not sure if this would work, but could this
   be addressed by introducing a namespace at the top of the aliases file? Or another
   way to make these classes unique? For comparison, the Beehive Pro `aliases.php`
   file starts like this:
 *     ```
       <?php
   
       namespace Beehive;
   
       if (\class_exists('Beehive\\Google_Client', \false)) {
           // Prevent error with preloading in PHP 7.4
           // @see https://github.com/googleapis/google-api-php-client/issues/1976
           return;
       }
       $classMap = ['Beehive\\Google\\Client' => 'Google_Client', 'Beehive\\Google\\Service' => 'Google_Service', 'Beehive\\Google\\AccessToken\\Revoke' => 'Google_AccessToken_Revoke', 'Beehive\\Google\\AccessToken\\Verify' => 'Google_AccessToken_Verify', 'Beehive\\Google\\Model' => 'Google_Model', 'Beehive\\Google\\Utils\\UriTemplate' => 'Google_Utils_UriTemplate', 'Beehive\\Google\\AuthHandler\\Guzzle6AuthHandler' => 'Google_AuthHandler_Guzzle6AuthHandler', 'Beehive\\Google\\AuthHandler\\Guzzle7AuthHandler' => 'Google_AuthHandler_Guzzle7AuthHandler', 'Beehive\\Google\\AuthHandler\\Guzzle5AuthHandler' => 'Google_AuthHandler_Guzzle5AuthHandler', 'Beehive\\Google\\AuthHandler\\AuthHandlerFactory' => 'Google_AuthHandler_AuthHandlerFactory', 'Beehive\\Google\\Http\\Batch' => 'Google_Http_Batch', 'Beehive\\Google\\Http\\MediaFileUpload' => 'Google_Http_MediaFileUpload', 'Beehive\\Google\\Http\\REST' => 'Google_Http_REST', 'Beehive\\Google\\Task\\Retryable' => 'Google_Task_Retryable', 'Beehive\\Google\\Task\\Exception' => 'Google_Task_Exception', 'Beehive\\Google\\Task\\Runner' => 'Google_Task_Runner', 'Beehive\\Google\\Collection' => 'Google_Collection', 'Beehive\\Google\\Service\\Exception' => 'Google_Service_Exception', 'Beehive\\Google\\Service\\Resource' => 'Google_Service_Resource', 'Beehive\\Google\\Exception' => 'Google_Exception'];
       ```
   
 * Thanks,

Viewing 1 replies (of 1 total)

 *  Plugin Author [Paul Ryan](https://wordpress.org/support/users/figureone/)
 * (@figureone)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/google-api-class-conflict/#post-16101374)
 * We’ll take a look, but wouldn’t there be no conflict if Beehive Pro properly 
   namespaced everything?
 * Can you reach out to the developers of Beehive Pro so we can get a developer 
   copy of their plugin to test against? This project is open source, that one isn’t.
   
   [https://github.com/uhm-coe/authorizer](https://github.com/uhm-coe/authorizer)

Viewing 1 replies (of 1 total)

The topic ‘Google API Class Conflict’ is closed to new replies.

 * ![](https://ps.w.org/authorizer/assets/icon-256x256.jpg?rev=1967453)
 * [Authorizer](https://wordpress.org/plugins/authorizer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/authorizer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/authorizer/)
 * [Active Topics](https://wordpress.org/support/plugin/authorizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/authorizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/authorizer/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Paul Ryan](https://wordpress.org/support/users/figureone/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/google-api-class-conflict/#post-16101374)
 * Status: not resolved