15.

Class 'Google_Service_Youtube' not found

編集

エラー内容

Error
Class 'Google_Service_Youtube' not found

 

発生条件/原因/対処法

前提:composer で Google の apiclient はインストール済み

 

ローカルのWindows環境で動作するのに本番環境のLinuxで同エラーが起きることがある。

原因は大文字と小文字の区別の厳格さがOSによってことなるため。

〇「Google_Service_Youtube」

×「Google_Service_YouTube」

上記のように大文字/小文字が正確か確認すること。

編集
Post Share
子ページ

子ページはありません

同階層のページ
  1. Fatal error: Maximum execution time of 30 seconds exceeded in...
  2. Fatal error: Uncaught Error: Cannot use object of type stdClass as array in ...
  3. Warning: Use of undefined constant ... - assumed '...' (this will throw an Error in a future version of PHP) in ....php on line ...
  4. ERROR: Call to undefined method Maatwebsite\Excel\Excel::load()
  5. Maximum execution time of 30 seconds exceeded
  6. Your requirements could not be resolved to an installable set of packages. ... To enable extensions, verify that they are enabled in your .ini files:
  7. could not find driver
  8. the requested PHP extension mbstring is missing from your system.
  9. the requested PHP extension dom is missing from your system.
  10. A non well formed numeric value encountered
  11. Warning: Cannot modify header information - headers already sent by ...
  12. php_network_getaddresses: getaddrinfo failed: Name or service not known
  13. XMLWriter::openUri(): Unable to resolve file path
  14. Object of class stdClass could not be converted to string
  15. Class 'Google_Service_Youtube' not found