Salon booking’s google api causing error with updraftplus google api
-
Salon booking’s google api causing error with updraftplus google api
when I try to use updraftplus google drive it causes this errorError Details
=============
An error of type E_ERROR was caused in line 92 of the file /mnt/data/vhosts/casite-1260342.cloudaccess.net/httpdocs/wp-content/plugins/salon-booking-system/src/SLN/Third/google-api-php-client/src/Google/Client.php. Error message: Uncaught TypeError: Argument 1 passed to Google_Client::__construct() must be of the type array, object given, called in /mnt/data/vhosts/casite-1260342.cloudaccess.net/httpdocs/wp-content/plugins/updraftplus/methods/googledrive.php on line 831 and defined in /mnt/data/vhosts/casite-1260342.cloudaccess.net/httpdocs/wp-content/plugins/salon-booking-system/src/SLN/Third/google-api-php-client/src/Google/Client.php:92
Stack trace:
#0 /mnt/data/vhosts/casite-1260342.cloudaccess.net/httpdocs/wp-content/plugins/updraftplus/methods/googledrive.php(831): Google_Client->__construct(Object(Google_Config))
#1 /mnt/data/vhosts/casite-1260342.cloudaccess.net/httpdocs/wp-content/plugins/updraftplus/methods/googledrive.php(522): UpdraftPlus_BackupModule_googledrive->bootstrap(Array)
#2 /mnt/data/vhosts/casite-1260342.cloudaccess.net/httpdocs/wp-includes/class-wp-hook.php(287): UpdraftPlus_BackupModule_googledrive->show_authed_admin_success(”)
#3 /mnt/data/vhosts/casite-1260342.cloudaccess.net/httpdocs/wp-includes/class-wp-hI checked on updraftplus plugins support also and this is their answer
Hi,
I’m afraid that there is anything that we can do on our end.
The conflict arises because both plugins attempt to load their own version of the API.
From your description, it appears that the Bookings plugin is loading their version of the API on each WP Admin page.
UpdraftPlus only attempts to load the API when needed (i.e. just before the backup upload/download). This is why the Bookings version is taking precedent.As a general rule (and to avoid this sort of situation), plugins should only include APIs when necessary, usually on their own page or just before they need to access that service.
Please could you ask the Bookings plugin developers if it is possible for them to restrict when the plugin is including its own version of the API? There should be no reason why the Bookings plugin would need to run on the UpdraftPlus plugin’s admin page.
Best Wishes,
DeeThe page I need help with: [log in to see the link]
The topic ‘Salon booking’s google api causing error with updraftplus google api’ is closed to new replies.