Viewing 15 replies - 1 through 15 (of 19 total)
  • Heya!

    I’m also having this issue. Hopefully my details will aid in finding the solution as well.

    I’m attempting to add this youtube video:
    https://www.youtube.com/watch?v=henUCywMO5A&feature=youtu.be

    Once I click “Generate Details” the plugin goes out and gets the shorter youtube URL, like so:
    https://devimg.next-www.com/20150605125937762.png

    But as you can see in the screenshot, none of the details are pulled in from the video. Additionally, if I manually fill out the required fields and save I get a blank screen:
    https://devimg.next-www.com/20150605130053582.png

    I’ve refreshed the video list and the video has not been added. I’ve re-downloaded the plugin and replaced it on my server manually, but it still doesn’t work.

    Based on my experience, please try to update the plugin to the latest version and after that go to settings and in the right column in the bottom of the page add the youtube api provided by your personal account. Everything from that moment should function smoothly. The only problem i have experienced with the prior and the updated version also is the fact that i cant LOAD youtube videos by clicking links in the main page. I dont know if it is an issue related to the theme or the plugin though.

    Thread Starter itsJulian

    (@itsjulian)

    I can’t find an option to add a YouTube API; I also don’t think it’s relevant since I never had to do that previously.

    For the record: both WordPress and Video Gallery are the latest version.

    My friend there surely is a section called User Video setting and a field under it “Enter YOUTUBE API key”.
    Youtube has changed its api and probably it is a compatibility issue. I solved it that way.

    Thread Starter itsJulian

    (@itsjulian)

    Fatshady, thanks for your help, I really appreciate it but there is no such field. I made a screenshot to show you:

    View post on imgur.com

    I also checked my plugin version and it’s the latest: 2.8.

    Hello Everyone,

    YouTube updated their API version and we need to updated the plugin too support the latest API. To resolve the problem with Youtube video auto generate, follow the steps provided in the forum link https://www.apptha.com/forum/viewtopic.php?f=27&t=2720&p=7136#p7136. Also backup the original file before you make the changes.

    Note : We have updated the changes in our plugin in the same version. If you are using 2.8, then go to WP admin – >Video Gallery -> Settings. Here find ‘Enter YOUTUBE API key’. If you cannot find this option, then download the latest package in the following link https://www.ads-software.com/plugins/contus-video-gallery/ and unzip it. Now go to wp-content/plugins/ path in your server using FTP/cPanel. Now rename the contus-video-gallery folder and upload the recently downloaded package and check.

    If you are still facing any difficulties in this, feel free to contact the support team at [email protected]

    Hi,

    We have facing some problem for add youtube video. when we add new youtube video and click on submit button occurred below error and video not added to my list.

    Fatal error: Uncaught exception ‘Exception’ with message ‘DateInterval::__construct() [dateinterval.–construct]: Unknown or bad format ()’ in /home/fiefilms/public_html/wp-content/plugins/contus-video-gallery/admin/controllers/videosController.php:147 Stack trace: #0 /home/fiefilms/public_html/wp-content/plugins/contus-video-gallery/admin/controllers/videosController.php(147): DateInterval->__construct(”) #1 /home/fiefilms/public_html/wp-content/plugins/contus-video-gallery/admin/controllers/videosController.php(586): VideoController->add_newvideo() #2 /home/fiefilms/public_html/wp-content/plugins/contus-video-gallery/hdflvvideoshare.php(700): include_once(‘/home/fiefilms/…’) #3 [internal function]: videogallery_menu(”) #4 /home/fiefilms/public_html/wp-includes/plugin.php(505): call_user_func_array(‘videogallery_me…’, Array) #5 /home/fiefilms/public_html/wp-admin/admin.php(212): do_action(‘admin_page_newv…’) #6 {main} thrown in /home/fiefilms/public_html/wp-content/plugins/contus-video-gallery/admin/controllers/videosController.php on line 147

    Please help me to resolve above issue.

    Thanks

    Thread Starter itsJulian

    (@itsjulian)

    karthikeyani, thanks for your help. Will this be fixed in a future update anyways? I would like to not go for such a complicated option :/

    Hi Julian, as I explained earlier, the issue has been fixed in the package in the same version. You can download the updated package here https://www.ads-software.com/plugins/contus-video-gallery/.

    Hi karthikeyani,

    Can you please help me to resolve below error. I’m also added new updated version but not luck.

    Fatal error: Uncaught exception ‘Exception’ with message ‘DateInterval::__construct() [dateinterval.–construct]: Unknown or bad format ()’ in /home/fiefilms/public_html/wp-content/plugins/contus-video-gallery/admin/controllers/videosController.php:147 Stack trace: #0 /home/fiefilms/public_html/wp-content/plugins/contus-video-gallery/admin/controllers/videosController.php(147): DateInterval->__construct(”) #1 /home/fiefilms/public_html/wp-content/plugins/contus-video-gallery/admin/controllers/videosController.php(586): VideoController->add_newvideo() #2 /home/fiefilms/public_html/wp-content/plugins/contus-video-gallery/hdflvvideoshare.php(700): include_once(‘/home/fiefilms/…’) #3 [internal function]: videogallery_menu(”) #4 /home/fiefilms/public_html/wp-includes/plugin.php(505): call_user_func_array(‘videogallery_me…’, Array) #5 /home/fiefilms/public_html/wp-admin/admin.php(212): do_action(‘admin_page_newv…’) #6 {main} thrown in /home/fiefilms/public_html/wp-content/plugins/contus-video-gallery/admin/controllers/videosController.php on line 147

    Hi Lionamol,

    Open wp-conent/plugins/contus-video-gallery/admin/controllers/videosController.php and find DateInterval. Now you can find the below code.

    $di = new DateInterval($youtube_time);
    $string = '';
    
    if ($di->h > 0) {
    	$string .= $di->h.':';
    }
    
    $duration = $string.$di->i.':'.$di->s;

    Replace with the following code and check.

    $duration = '';
    if(!empty($youtube_time)) {
       $di = new DateInterval($youtube_time);
       $string = '';
    
       if ($di->h > 0) {
    	$string .= $di->h.':';
       }
    
       $duration = $string.$di->i.':'.$di->s;
    }

    Hi karthikeyani,

    Thanks for quick reply. I have open wp-conent/plugins/contus-video-gallery/admin/controllers/videosController.php but in this file DateInterval function not exist.

    Hi karthikeyani,

    Sorry sorry my mistake. Now got proper file and my issue also resolve. Thanku very very much for your quick support.

    Hi karthikeyani,

    I have one issue, now video adding functionality working properly but in front end on when I click on any video then video not showing on pages. Only white blank space show, I think video player not working. I will test on all browser but not luck.

    Hi,

    Please go to admin -> Settings -> Permalinks here select permalink type as default and save the settings. Now again change the permalink type to post name and save it. Check your website front end now, so you will be able to play the videos in video page when you click on any video thumbnail below player.

    Regards
    Arun

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Can't add YouTube videos’ is closed to new replies.