Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3721

Class Google\Service Not Found

$
0
0

I'm working on a PHP script for a YouTube Uploader.

I am getting this error.

Fatal error: Uncaught Error: Class 'Google\Service' not found in /home/uploader/domains/uploader.astn.cc/public_html/google-api-php-client/Service/YouTube.php:36 Stack trace: #0 /home/uploader/domains/uploader.astn.cc/public_html/config.php(21): require_once() #1 /home/uploader/domains/uploader.astn.cc/public_html/dbConfig.php(3): require_once('/home/uploader/...') #2 /home/uploader/domains/uploader.astn.cc/public_html/youtube_video_sync.php(8): require_once('/home/uploader/...') #3 {main} thrown in /home/uploader/domains/uploader.astn.cc/public_html/google-api-php-client/Service/YouTube.php on line 36

autoload.php: https://github.com/googleapis/google-api-php-client-services/blob/main/autoload.php

YouTube.php: https://github.com/googleapis/google-api-php-client-services/blob/main/src/YouTube.php

Yes, I am using require_once and autoload require_once is above the YouTube.php require_once, so those aren't the issue.


Viewing all articles
Browse latest Browse all 3721

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>