• Resolved liquidblack

    (@liquidblack)


    Hi,

    Been trying to get to the bottom of this for a few hours now but after updates, tweaks, resets, debugging and logs galore I am no closer to an answer.

    Server: CentOS 7 running apache 2.4.6 and PHP version: 5.4.16
    Updraft: Version 1.12.32
    Target: Google Drive

    Just to be clear that I have 3 copies of Updraft running on this server for other sites and only this version is broken – error follows
    —–
    PHP Fatal error: Call to undefined method Google_Client::getIo() in /var/www/example.com/wp-content/plugins/updraftplus/methods/googledrive.php on line 521, referer: https://example.com/wp-admin/options-general.php?page=updraftplus
    —–
    I have reset the authentication and while it does appear to work when I complete the process Updraft finishes at an almost blank page (menu is present but not a lot else).
    The log always “stalls” at “Google Drive: successfully obtained access token” but never uploads any files, however all local backups complete.

    The very last thing I have found is that the Google Client for PHP appears to have depreciated the getIo() method (https://github.com/google/google-api-php-client/blob/master/UPGRADING.md#guzzle-and-psr-7-are-used-for-http-requests) but I am running the same version of Updraft on the same server – no dice.

    Any more ideas?

    • This topic was modified 8 years, 1 month ago by liquidblack. Reason: realised I could add some markup to make it easier to read
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author David Anderson / Team Updraft

    (@davidanderson)

    Hi,

    Likely you have another plugin activated which both:
    a) carries an incompatible copy of the Google SDK, and
    b) always loads it (instead of only loading it when it’s about to be used), thus preventing another plugin from loading its copy when it needs to use it (e.g. UD).

    David

    Thread Starter liquidblack

    (@liquidblack)

    Thanks for the mega awesome response time.

    All valid suggestions – any idea how I can nail down what’s going on though as I have pretty similar plugins installed on all three sites and only this site has a failure. I have debug on for the site and the closest I get is

    PHP event: code E_WARNING: array_merge(): Argument #2 is not an array (line 134, wp-content/plugins/wp-stateless/vendor/usabilitydynamics/google-api-php-client/src/Google/Client.php)

    Update: I’ve disabled the wp-stateless plugin and it’s immediately started uploading files. Partial yay!

    Any idea how I can force the sdk used for a given plugin – both plugins are really helpful but I need them to play nice together. Don’t mind getting my hands dirty with php code or doing some testing: I just need a pointer in the right direction.

    Many thanks

    ~Samuel

    • This reply was modified 8 years, 1 month ago by liquidblack.
    Plugin Contributor DNutbourne

    (@dnutbourne)

    Hi Samuel,

    I’d recommend contacting the developers of wp-stateless, and ask them if they can update the plugin to prevent it loading their copy of the SDK on other plugins’ WP Admin pages.

    mprados

    (@mprados)

    Same issue here, just de-activate wp-stateless plugin, make the backup with the same data of UpdraftPlus WordPress Backup Plugin (it worked now) and re-activate the wp-stateless plugin.

    It is a shame that stateless people don’t fix the issue as it is likely that if you want to use google cloud storage for wordpress it is logical that you will use it for both, images and backup, so they are likely to collide.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP Fatal error: Call to undefined method Google_Client::getIo()’ is closed to new replies.