Page 1 of 1

Class "Factory" not found

Posted: 21 Jan 2024, 08:40
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

Re: Class "Factory" not found

Posted: 21 Jan 2024, 18:07
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

Re: Class "Factory" not found

Posted: 22 Jan 2024, 00:17
by @rnoudW
Worked flawlessly! Thanks Benno :)

Re: Class "Factory" not found

Posted: 22 Jan 2024, 00:32
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

Re: Class "Factory" not found

Posted: 22 Jan 2024, 01:08
by Benno
Hi,
It should be OK.
Yes, it is. :)

Kind regards,
Benno

Re: Class "Factory" not found

Posted: 22 Jan 2024, 07:24
by berna_pano
Hello,

now everything is working perfectly again!

Thank you very much for the fast and friendly support.

Greetings,

Berna

Re: Class "Factory" not found

Posted: 22 Jan 2024, 08:56
by Benno
You're welcome!

Kind regards,
Benno