How To Fix YouTube Remote Upload in Clip-Bucket v2

Hello,

Some of you may have already noticed that at times the YouTube Remote Upload feature doesn’t work and the loading animation keeps spinning forever without uploading anything. Well, in this tutorial I will show you how to fix that problem. Tested on v2.6, but should work for the whole v2.

1. Open ./includes/functions.php and ./includes/functions1.php (if present)
2. Find

	function genTags($tags,$sep=',')
	{
		//Remove fazool spaces
		$tags = preg_replace(array('/ ,/','/, /'),',',$tags);
		$tags = preg_replace( "`[,]+`" , ",", $tags);
		$tag_array = explode($sep,$tags);
		foreach($tag_array as $tag)
		{
			if(isValidtag($tag))
			{
				$newTags[] = $tag;
			}
			
		}
		//Creating new tag string
		if(is_array($newTags))
			$tagString = implode(',',$newTags);
		else
			$tagString = 'no-tag';
		return $tagString;
	}

and replace it with

	function genTags($tags,$sep=',') {
		//Remove fazool spaces
		$tags = preg_replace(array('/ ,/','/, /'),',',$tags);
		$tags = preg_replace( "`[,]+`" , ",", $tags);
		if($tags) {
			$tag_array = explode($sep,$tags);
			foreach($tag_array as $tag)	{
				if(isValidtag($tag)) {
					$newTags[] = $tag;
				}
			}
			//Creating new tag string
			if(is_array($newTags)) {
				$tagString = implode(',',$newTags);
				} else {
					$tagString = 'no-tag';
			}
			return $tagString;
		}
	}

3. Save & Upload

There you go! Try remote uploading a video from YouTube and enjoy your fully working uploader. If you have any questions, comments or article suggestions, feel free to let me know and I’ll get back to you as soon as possible!

Best Regards,
Richi González

Looking for quality web hosting? Look no further than Arvixe Web Hosting!

Tags: , , , , , , , , , , , , , , , , | Posted under ClipBucket | RSS 2.0

Author Spotlight

Richi González

I started programming when I was 12. I'm a Developer and have been working with the Clip-Bucket script since it came out. I'm the Liaison between Arvixe and Clip-Bucket, so anything you need regarding Clip-Bucket or any particular computer-related subject you need, let me know so I can assist you.

7 Comments on How To Fix YouTube Remote Upload in Clip-Bucket v2

  1. paul says:

    none of the functions files located in the includes folder contain any of this code.

    Can you please check correct files and get back to me as i would like to get this working.

    Thanks

    Paul

    • Hello,

      Because of different identation, your text editor may not find the code, but try looking for the genTags function in either functions.php or functions1.php. If you can’t still find it, please start a new thread in our forums, forum.arvixe.com, so I can further assist you.

      Regards,
      Richi

  2. Blisk says:

    I have applied this fix, now I can save video, but when I try to play it, it doesn’t start.

  3. gerrit says:

    Hi Richi,

    Is it possible to loop the video’s? I mean that all video’s can play one to an other. Now after watching a movie the vieuwers must click another. But i want to show all the movie’s after each other.

Leave a Reply

Your email address will not be published. Required fields are marked *