Error on new file - Call to undefined method stdClass::set()

Phoca Download - download manager
User avatar
christine
Phoca Hero
Phoca Hero
Posts: 2992
Joined: 28 Nov 2010, 17:20

Re: Error on new file - Call to undefined method stdClass::set()

Post by christine »

Hi,

Do not select category:

https://imgur.com/a/NULSWtu

Kind regards
Christine
User avatar
sensomedia
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 24 Mar 2026, 11:15

Re: Error on new file - Call to undefined method stdClass::set()

Post by sensomedia »

Here is how to fix the error:
Edit the file
/administrator/components/com_phocadownload/models/phocadownloadfile.php
on line 94
Replace
$data->set(“catid”, (int)$filter[0]);
With
$data->catid = (int)$filter[0];

We hope this fix will be included in the next release
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49366
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error on new file - Call to undefined method stdClass::set()

Post by Jan »

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