Page 1 of 1

Version 4.0.2 - Youtube import fatal error jfile

Posted: 04 Sep 2013, 14:38
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;
			}

Re: Version 4.0.2 - Youtube import fatal error jfile

Posted: 06 Sep 2013, 14:27
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

Re: Version 4.0.2 - Youtube import fatal error jfile

Posted: 09 Sep 2013, 09:18
by essi.stefan
Dear Jan,

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

:| :| :D

b/r

essi

Re: Version 4.0.2 - Youtube import fatal error jfile

Posted: 19 Sep 2013, 22:48
by Jan
Ok

Re: Version 4.0.2 - Youtube import fatal error jfile

Posted: 07 Nov 2013, 01:18
by Jan
Set in 4.0.3

Jan