• Resolved chrisprouty

    (@chrisprouty)


    Hello,

    I cannot seem to get the YouTube Uploads to work.

    * confirmed that iconv is running on the server.
    * tried configuring the YouTube Data API v3 for my Google Dev account
    * tried Public API access Key for browser applications with “any referrer allowed”
    * tried Public API access Key for server applications with “any IP allowed”
    * verified my YouTube username and password are correct
    * uploaded to my channel through YouTube without problems
    * can find no error log at the root (or other subdir) of the plugin
    * CAN find uploaded videos in my MEDIA gallery
    * have tested by only allowing video media types
    * have tested only allowing one video media type (MP4)

    I’ll send you a coffee through PayPal if someone can spot what I’ve missed.

    Thanks!

    https://wordpress.org/plugins/gravity-forms-advanced-file-uploader/

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author ben.moody

    (@benmoody)

    Hi

    Well first start with the obvious have you clicked the ‘Enable Video Uploader’ options under video uploads in the plugin options?

    Also when you submit the form does the submit button change to a loading bar before reloading the page?

    Hi Ben,

    I seem to have a very similar issue – I have regenerated my API keys etc.

    I have also noticed my uploads make it successfully to wp-content/uploads/prso-pluploader-tmp/

    I cannot see any errors or indication of anything past that point – No videos have made it into the channel

    Video Uploader is enabled in settings
    Save Original Video Files is marked off

    No videos have been deleted from the temp folder either, so I am assuming the process is in some way interrupted without throwing an error?

    Do you have any advice on where to start debugging? Sorry if you prefer an original thread too, this item just seemed the closest to my issue and was not marked resolved yet.

    EDIT: I also can see the video upload loading bar after the form submit for about 3 – 5 seconds, the video upload is only field in my test form.

    Plugin Author ben.moody

    (@benmoody)

    Looks like an issue with the youtube API for sure.

    Do you have an error.log file in the plugin root? Also have you tried testing the form submission with wp debug set to TRUE?

    I’m considering adding an error emailing system to alert admin users of errors with the upload api.

    Ok I’ll double check my youtube setup, I may create a fresh account to a guide to ensure I have all correct settings in. If that fails I’ll also try it in a fresh install of wordpress incase it’s a theme/plugin conflict.

    I also enabled plugin debug – Got alot of warnings all over the page about functions not using all optional variables they can take – but nothing that glared out at me – Is there a specific I should look for? No error messages appeared inside the form area in any case – So I discounted this.

    There is an error.log file in the root (none in uploader file) – although there wasn’t an entry for every submission just a few haphazard ones, Which may have actually been a result of user error on my half trying to submit empty forms – I have posted it below:

    – – – – –

    [05-Feb-2015 23:45:44 UTC] Main Plugin:: wp attachment data or gforms entry data empty
    [05-Feb-2015 23:45:44 UTC] Main Plugin:: Processed attachment array empty
    [06-Feb-2015 00:10:58 UTC] Main Plugin:: wp attachment data or gforms entry data empty
    [06-Feb-2015 00:10:58 UTC] Main Plugin:: Processed attachment array empty
    [06-Feb-2015 00:12:00 UTC] Main Plugin:: wp attachment data or gforms entry data empty
    [06-Feb-2015 00:12:00 UTC] Main Plugin:: Processed attachment array empty
    [06-Feb-2015 00:12:05 UTC] Main Plugin:: wp attachment data or gforms entry data empty
    [06-Feb-2015 00:12:05 UTC] Main Plugin:: Processed attachment array empty
    [06-Feb-2015 00:19:20 UTC] Main Plugin:: wp attachment data or gforms entry data empty
    [06-Feb-2015 00:19:20 UTC] Main Plugin:: Processed attachment array empty
    [06-Feb-2015 00:22:05 UTC] Main Plugin:: wp attachment data or gforms entry data empty
    [06-Feb-2015 00:22:05 UTC] Main Plugin:: Processed attachment array empty
    [06-Feb-2015 01:24:31 UTC] Main Plugin:: wp attachment data or gforms entry data empty
    [06-Feb-2015 01:24:31 UTC] Main Plugin:: Processed attachment array empty
    [06-Feb-2015 01:28:20 UTC] Main Plugin:: wp attachment data or gforms entry data empty
    [06-Feb-2015 01:28:20 UTC] Main Plugin:: Processed attachment array empty
    [06-Feb-2015 03:28:15 UTC] Main Plugin:: wp attachment data or gforms entry data empty
    [06-Feb-2015 03:28:15 UTC] Main Plugin:: Processed attachment array empty

    Thanks for the quick response time!

    Plugin Author ben.moody

    (@benmoody)

    Thanks for the update.

    I don’t see any youtube related errors on that output.

    Let me know how you get on with the clean install.

    Hi!

    I have the same problem. the videos are not being uploaded on my YouTube Channel. I’ve even tried to create a new YouTube account, refresh the API key, change my password but nothing works.

    Maybe I’m not using the right YouTube Username?
    https://www.youtube.com/channel/UCf62Lx4G65YH7tdtarX7q8A
    I’m using “Sylvie Crepin” as my username and the password I use to log in my Google Account, is that ok?

    Thanks!

    I just got these errors when I activated WP_DEBUG:

    [10-Feb-2015 16:02:52 UTC] PHP Fatal error: Uncaught exception ‘Zend_Gdata_App_AuthException’ with message ‘Authentication with Google failed. Reason: BadAuthentication’ in /home/phase2appdescstg/public_html/wp-content/plugins/gravity-forms-advanced-file-uploader/inc/VideoUploader/includes/Zend/Gdata/ClientLogin.php:175
    Stack trace:
    #0 /home/phase2appdescstg/public_html/wp-content/plugins/gravity-forms-advanced-file-uploader/inc/VideoUploader/includes/inc_youtube_api.php(182): Zend_Gdata_ClientLogin::getHttpClient(‘Sylvie Crepin’, ‘**********’, ‘youtube’, NULL, ‘Gravity Forms Y…’, NULL, NULL, ‘https://www.goo…’)
    #1 /home/phase2appdescstg/public_html/wp-content/plugins/gravity-forms-advanced-file-uploader/inc/VideoUploader/includes/inc_youtube_api.php(101): PrsoAdvYoutubeApi->init_youtube_api_obj()
    #2 /home/phase2appdescstg/public_html/wp-content/plugins/gravity-forms-advanced-file-uploader/inc/VideoUploader/includes/inc_youtube_api.php(29): PrsoAdvYoutubeApi->init_youtube_api()
    #3 /home/phase2appdescstg/public_html/wp-content/plugins/gravity-forms in /home/phase2appdescstg/public_html/wp-content/plugins/gravity-forms-advanced-file-uploader/inc/VideoUploader/includes/Zend/Gdata/ClientLogin.php on line 175

    Let me know if there’s an easy way to fix this!
    Thanks!

    Plugin Author ben.moody

    (@benmoody)

    Hi

    As with all google products your username is your google email address:

    my.username@gmail.com

    The API Key and password are provided when creating your youtube api key:

    https://developers.google.com/youtube/registering_an_application

    I know that google hasn’t made this step exactly easy and it can be confusing to sort out usernames, passwords, api keys, ect. But 9/10 if the video does not upload it’s an api problem.

    I will be adding in some more useful error reporting which will email the site admin with a description of the errors in the next update which should help a little.

    Please try your gmail email as the username and if you use 2-step verification be sure to create an app password to use for the uploader.

    Let me know how if goes

    Hi Ben,

    Just want to thank you again for your ongoing support with these issues, I am still facing this issue but am pretty sure by this point I am just missing something in my API settings, I will try to post the issue here to help others if I find the section I have missed, as it is probably the same setting that is just slightly hidden away in their options.

    Thanks!

    I have now managed to get it running on a separate install, default WP2015 theme.

    A few things I noticed while tinkering:
    :: Public API access key – Choose key for browser application

    :: Private videos uploaded to youtube faster for some reason

    :: You CANNOT upload the same video to the channel twice with this (Assume it is a Youtube standard) – I believe this was one of the major faults, I ran into errors early on and uploaded my test video to the channel to check the video wasnt corrupted.

    :: Google Apps Setting -> There is a setting to allow ‘less-secure’ apps, it prompted me to enable this during the testing at some point, so I don’t know how dire it is to be set.

    I’ve tried everything listed in this thread, and everywhere else. Still not having any luck with it. I didn’t see anybody mention it – what are you using for your “Allowed Referers” pattern in the Google Developers credentials panel for the API key?

    What else could I be missing? I’m at my wits end.

    Plugin Author ben.moody

    (@benmoody)

    Hi

    Do you have an error log in the plugin folder? If so can you enable wordpress debug mode and run another test and look for an error log or any php errors.

    Either there is an error from another plugin/ theme OR youtube uploads take place in the background. I try to increase the server time limit but you can’t always override the timeout value depending on server setup. So could you make a really small video file, like 2mb and try that first. I have a feeling that if you are trying large videos your server maybe shutting down the upload task before it completes.

    Plugin Author ben.moody

    (@benmoody)

    Another user found a solution to his problem by validating his youtube account as youtube will not allow priovate uploads unless the account is validated:

    https://wordpress.org/support/topic/youtube-api-nightmare?replies=3#post-6701816

    Ben

    Plugin Author ben.moody

    (@benmoody)

    closed

    Hey, this might help.

    Turns out even though I did everything else correctly, I couldn’t use my Youtube username and youtube password. For some reason if I was using them I was considered a “No Linked YouTube Account”.

    I watched this video and it explained the problem:
    https://www.youtube.com/watch?v=TQX9_2DAim0

    but my screen looked different so I went to this video:
    https://www.youtube.com/watch?v=iXdzKvZHkW8&feature=youtu.be

    After all is said and done you’ll have to click on change your password. So click change password on the settings page and it should change it for the new youtube account name.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘YouTube Uploads Configuration Question…’ is closed to new replies.