I had a similar problem. I am on shared hosting.
I was working on a youtube api that asked me to create a Google_Client folder under the main \ tmp on the server. Due to restrictions that were not there, so I went to
google-api-php-client / src / conifg.php and changed the following line.
/***********************************Shared server therefore cannot write to server /tmp drive therefore using an alternate location*************************************************/ //'ioFileCache_directory' => (function_exists('sys_get_temp_dir') ? sys_get_temp_dir().'/Google_Client' : '/tmp/Google_Client'), 'ioFileCache_directory' => 'tmp/Google_Client',
Then I created the tmp directory under google-api-php-client / src
Then I created the Google_Client directory in google-api-php-client / src / tmp
It worked for me. Hope this helps. If so, mark this as an answer, as many people have the same problem.
source share