A client error occurred: Could not create storage directory: /tmp/Google_Client/00

前端 未结 6 1869
野的像风
野的像风 2021-01-06 05:00

What does this error mean with the Youtube API v3.0:

A client error occurred: Could not create storage directory: /tmp/Google_Client/00

I a

6条回答
  •  既然无缘
    2021-01-06 05:45

    Probably easier/better ways to do this, but i'm on my own macbook air:

    i'm running xampp. I'm using the default 'htdocs' dir, '/Applications/XAMPP/htdocs'.

    so i:

    1. went to that htdocs dir and ran "mkdir tmp; chmod 777 tmp"

    2. commented out original ioFileCache_directory line and added my own:

      // IO Class dependent configuration, you only have to configure the values // for the class that was configured as the ioClass above

      'ioFileCache_directory' => '/Applications/XAMPP/htdocs/tmp/GoogleClient',

      /* 'ioFileCache_directory' => (function_exists('sys_get_temp_dir') ? sys_get_temp_dir() . '/Google_Client' : '/tmp/Google_Client'), */

    That's it. Don't think I had to restart Apache.

提交回复
热议问题