Page 1 of 1

Problem with YouTube Uploader

Posted: 04 Mar 2012, 00:21
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

Re: Problem with YouTube Uploader

Posted: 07 Mar 2012, 02:38
by Jan
Hi, was your Joomla! properly installed? JClientHelper is standard Joomla! class :idea:

Jan

Re: Problem with YouTube Uploader

Posted: 08 Mar 2012, 05:59
by meg
Yes, I believe so. Everything else seems to be working properly. :?

Re: Problem with YouTube Uploader

Posted: 09 Mar 2012, 11:34
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.

Re: Problem with YouTube Uploader

Posted: 12 Mar 2012, 23:09
by Jan
Hi, I will take a look at it - to do more tests.

Jan

Re: Problem with YouTube Uploader

Posted: 13 Mar 2012, 23:06
by Jan
Ok, will be fixed in next version.

Jan

Re: Problem with YouTube Uploader

Posted: 23 Mar 2012, 02:39
by meg
I fixed it.
//jimport('joomla.client.helper'); (line 440) was commented out in the code. It works perfectly, when fixed.

Re: Problem with YouTube Uploader

Posted: 31 Mar 2012, 00:18
by Jan
Ok

Re: Problem with YouTube Uploader

Posted: 04 Apr 2012, 18:11
by Jan
Fixed in 3.2.0