Problem with YouTube Uploader

Phoca Gallery - image gallery extension
meg
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 14 Jan 2012, 01:22

Problem with YouTube Uploader

Post by meg »

Jan,
Thank you for making such a great component! Phoca Gallery is so easy to use and customize.

The front end photo uploader works great. Unfortunately, I am having a problem with the front end youtube uploader. I'm using Phoca Gallery 3.1.5 and Joomla 1.7.

When I try to upload a youtube link, I receive the following error message:
Fatal error: Class 'JClientHelper' not found in /home/content/61/8772361/html/components/com_phocagallery/controllers/category.php on line 442

which looks like this:
function ytbupload() {

//jimport('joomla.client.helper');
$app = JFactory::getApplication();
$ftp = JClientHelper::setCredentialsFromRequest('ftp');
$user = JFactory::getUser();
$path = PhocaGalleryPath::getPath();
//$folder = JRequest::getVar( 'folder', '', '', 'path' );
$tab = JRequest::getVar( 'tab', 0, '', 'int' );
$format = JRequest::getVar( 'format', 'html', '', 'cmd');
$return = JRequest::getVar( 'return-url', null, 'post', 'base64' );
$viewBack = JRequest::getVar( 'viewback', '', '', '' );
$catid = JRequest::getVar( 'id', '', 'get', 'string', JREQUEST_NOTRIM );
$Itemid = JRequest::getVar( 'Itemid', 0, '', 'int');
$paramsC = JComponentHelper::getParams('com_phocagallery') ;
$limitStart = JRequest::getVar( 'limitstart', 0, '', 'int');

I have looked through the forums and I am not really sure how to fix it. Any help you can give would be most appreciated.

Thank you for your time,
Meg
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Problem with YouTube Uploader

Post by Jan »

Hi, was your Joomla! properly installed? JClientHelper is standard Joomla! class :idea:

Jan
If you find Phoca extensions useful, please support the project
meg
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 14 Jan 2012, 01:22

Re: Problem with YouTube Uploader

Post by meg »

Yes, I believe so. Everything else seems to be working properly. :?
adrianrosian
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 09 Mar 2012, 11:32
Contact:

Re: Problem with YouTube Uploader

Post by adrianrosian »

Hello, Ian,

I can confirm this problem. Maybe you developed this having other extensions on the page that loaded the helper (maybe a module). Anyways, there is no harm in including the jimport clause, because it checks for duplicates.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Problem with YouTube Uploader

Post by Jan »

Hi, I will take a look at it - to do more tests.

Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Problem with YouTube Uploader

Post by Jan »

Ok, will be fixed in next version.

Jan
If you find Phoca extensions useful, please support the project
meg
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 14 Jan 2012, 01:22

Re: Problem with YouTube Uploader

Post by meg »

I fixed it.
//jimport('joomla.client.helper'); (line 440) was commented out in the code. It works perfectly, when fixed.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Problem with YouTube Uploader

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Problem with YouTube Uploader

Post by Jan »

Fixed in 3.2.0
If you find Phoca extensions useful, please support the project
Post Reply