Class 'JFile' not found category.php on line 397

Phoca Gallery - image gallery extension
vidapura
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 15 Jul 2009, 17:59

Class 'JFile' not found category.php on line 397

Post by vidapura »

Hi,
Phoca gallery is looking great.
I am testing it before I put it live.

I have learned that I must create the categories for the users before they can upload pictures.
Thats OK.
So I made a few categories.. and they are empty.
But then when a user tries to do a Single File Import into an empty category they see the following error:

Code: Select all

Fatal error: Class 'JFile' not found in /home/mysite/public_html/components/com_phocagallery/controllers/category.php on line 397
When there is already something in the category then the Single File Import works just fine. This only happens when the category is empty.

If I can provide more information to help then please let me know.
Thanks
Vida
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Class 'JFile' not found category.php on line 397

Post by Jan »

Hi, do you use the last version?

I am testing it and got no problem. the JFile class is loaded there so it is found :-(

Please let me know exactly where you get problems (which situation and where)

Jan
If you find Phoca extensions useful, please support the project
vidapura
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 15 Jul 2009, 17:59

Re: Class 'JFile' not found category.php on line 397

Post by vidapura »

Hi jan,
Yes I'm using the latest version .. I think.. com_phocagallery_v2.5.0.zip yes?

Its important when you try to reproduce the problem that you are trying to upload images into a new/empty category. The category must use a new directory.
I can reproduce this problem on live server and on WAMP install on my desktop machine.
(I wish I knew how to set up a development/debugging environment so that I could give you better information.

Is there other information I can provide?

Thanks
Vida..

My Joomla site info is:

PHP Built on: Linux lh34.dnsireland.com 2.6.9-67.ELsmp #1 SMP Fri Nov 16 12:48:03 EST 2007 i686
Database Version: 5.0.67-community
Database Collation: utf8_general_ci
PHP Version: 5.2.9
Web Server: Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.7a mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.9
Web Server to PHP interface: apache2handler
Joomla! Version: Joomla! 1.5.9 Production/Stable [ Vatani ] 9-January-2009 23:00 GMT
User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; Creative ZENcast v1.02.08; .NET CLR 3.0.04506.648)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Class 'JFile' not found category.php on line 397

Post by Jan »

Hi, I have paste some code, which loads JFile class if this is not loaded (before the line where the problem occurs)

I will release 2.5.2 version soon, so please upgrade then and let me know.

Jan
If you find Phoca extensions useful, please support the project
vidapura
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 15 Jul 2009, 17:59

Re: Class 'JFile' not found category.php on line 397

Post by vidapura »

Could you put the new code here? I can make the change myself then?

Vida.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Class 'JFile' not found category.php on line 397

Post by Jan »

The 2.5.2 was released, so please upgrade
If you find Phoca extensions useful, please support the project
vidapura
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 15 Jul 2009, 17:59

Re: Class 'JFile' not found category.php on line 397

Post by vidapura »

Oh, I'm sorry.. didn't see it was released... will try upgrading and let you know how I get on..

Thanks very much Jan,

Vida.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Class 'JFile' not found category.php on line 397

Post by Jan »

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