Version 4.0.2 - Youtube import fatal error jfile

Phoca Gallery - image gallery extension
essi.stefan
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 04 Sep 2013, 14:30

Version 4.0.2 - Youtube import fatal error jfile

Post by essi.stefan »

Hi guys,

I installed version 4.0.2 on a new joomla-installation - version 3.1.5 stable

Everytime I´m using the youtube import function I´m getting the following error-message:


Fatal error: Class 'JFile' not found in /www/htdocs/w010b81a/core/administrator/components/com_phocagallery/libraries/phocagallery/youtube/youtube.php on line 124


Already tried to uninstall and reinstall the component, but without any change. Can you please help me? Many thanky in advance!

Best regards

Stefan


here is my youtube.php file, starting with line 124:

Code: Select all

if (JFile::exists(JPATH_ROOT . DS . 'images' . DS . 'phocagallery' . DS . $ytb['filename'], $img)) {
				$errorMsg = JText::_('COM_PHOCAGALLERY_YTB_ERROR_VIDEO_EXISTS');
				return false;
			}
			
            if (!JFile::write(JPATH_ROOT . DS . 'images' . DS . 'phocagallery' . DS . $ytb['filename'], $img)) {
				$errorMsg = JText::_('COM_PHOCAGALLERY_YTB_ERROR_WRITE_IMAGE');
				return false;
			}
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49149
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Version 4.0.2 - Youtube import fatal error jfile

Post by Jan »

Hi, not sure what this should mean, as the JFile is imported in main file.

Try to open this file in your editor:
administrator/components/com_phocagallery/libraries/phocagallery/youtube/youtube.php

and add this code:

Code: Select all

jimport( 'joomla.filesystem.file' );
after:

Code: Select all

defined('_JEXEC') or die;
(it is cca line 11)

and let me know.

Jan
If you find Phoca extensions useful, please support the project
essi.stefan
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 04 Sep 2013, 14:30

Re: Version 4.0.2 - Youtube import fatal error jfile

Post by essi.stefan »

Dear Jan,

many thanks for your great and fast support! Works fine! :-)

:| :| :D

b/r

essi
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49149
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Version 4.0.2 - Youtube import fatal error jfile

Post by Jan »

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

Re: Version 4.0.2 - Youtube import fatal error jfile

Post by Jan »

Set in 4.0.3

Jan
If you find Phoca extensions useful, please support the project
Post Reply