Class "Factory" not found

Phoca Download - download manager
berna_pano
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 14 Feb 2021, 11:18

Class "Factory" not found

Post by berna_pano »

Hello,

After the Phoca Download Version 5.0.0 update, the options can no longer be opened.
Error message: An error has occurred. 0 Class "Factory" not found.

Joomla! Version: 4.4.2 Stable
PHP Version: 8.1.16

Many thanks in advance,

Greetings Berna

Tags:
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9123
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Class "Factory" not found

Post by Benno »

Hi,
quickfix: /administrator/components/com_phocadownload/models/fields/phocahead.php
after:

Code: Select all

defined('JPATH_BASE') or die;
insert:

Code: Select all

use Joomla\CMS\Factory;
ca. line 10

Kind regards,
Benno
@rnoudW
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 22 Jan 2024, 00:10

Re: Class "Factory" not found

Post by @rnoudW »

Worked flawlessly! Thanks Benno :)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Class "Factory" not found

Post by Jan »

Hi, thank you very much for the info, please update to 5.0.1. It should be OK.
https://www.phoca.cz/download/68-phoca- ... -component
Thank you, Jan
If you find Phoca extensions useful, please support the project
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9123
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Class "Factory" not found

Post by Benno »

Hi,
It should be OK.
Yes, it is. :)

Kind regards,
Benno
berna_pano
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 14 Feb 2021, 11:18

Re: Class "Factory" not found

Post by berna_pano »

Hello,

now everything is working perfectly again!

Thank you very much for the fast and friendly support.

Greetings,

Berna
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9123
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Class "Factory" not found

Post by Benno »

You're welcome!

Kind regards,
Benno
Post Reply