Page 1 of 1
Joomla 6.01 Phoca 6.01 error by 'new' image
Posted: 28 Dec 2025, 13:53
by digitalheroes2020
Hi, hello!
I updated Joomla and Phoca to version 6.0.1. Everything seems to work fine, except for the ‘New’ button. When I click it, I get the following error:
“An error has occurred.
0 Call to undefined method stdClass::set()”
Does anyone know how to fix this? I am able to edit existing images and save them without any problems.
With regards,
Mark
Re: Joomla 6.01 Phoca 6.01 error by 'new' image
Posted: 28 Dec 2025, 15:19
by christine
Hi Mark,
Which template, PHP version are you using?
Or maybe a template override?
Enable debug mode to get the error message including the trace, so we know from which file the calling of this function (which produces error) comes from.
Code: Select all
public $error_reporting = 'maximum';
public $debug = true;
Sometimes it can be useful that you temporarily rename the error.php file in the template folder, if it exists, to e.g. errorxxxxxx.php. This will ensure that Joomla's error page is used.
Kind regards
Christine
Re: Joomla 6.01 Phoca 6.01 error by 'new' image
Posted: 29 Dec 2025, 00:13
by digitalheroes2020
Hi Christine,
I am using the Cassiopeia template, with php version 8.4.5. So far as i Know i do not use any overrides on the phoca files. Everything is working fine, only not the new button.
i just found out, i only occurs when i set a filter on a catergory. Without the filter it works fine.
Mark
Re: Joomla 6.01 Phoca 6.01 error by 'new' image
Posted: 29 Dec 2025, 17:17
by christine
Hi Mark,
I've now tried it myself and enabled the call stack (as suggested in the previous post).
@Jan:
Confirm the error.
Problem with Imgur, hence the image of the call stack in this way:
Code: Select all
An error has occurred.
0 Call to undefined method stdClass::set()
Call Stack
# Function Location 1 () JROOT/administrator/components/com_phocagallery/models/phocagalleryimg.php:88
2 PhocaGalleryCpModelPhocaGalleryImg->loadFormData() JROOT/libraries/src/MVC/Model/FormBehaviorTrait.php:108
3 Joomla\CMS\MVC\Model\FormModel->loadForm() JROOT/administrator/components/com_phocagallery/models/phocagalleryimg.php:62
4 PhocaGalleryCpModelPhocaGalleryImg->getForm() JROOT/libraries/src/MVC/View/AbstractView.php:171
5 Joomla\CMS\MVC\View\AbstractView->get() JROOT/administrator/components/com_phocagallery/views/phocagalleryimg/view.html.php:32
6 PhocaGalleryCpViewPhocaGalleryImg->display() JROOT/libraries/src/MVC/Controller/BaseController.php:697
7 Joomla\CMS\MVC\Controller\BaseController->display() JROOT/administrator/components/com_phocagallery/controller.php:65
8 PhocaGalleryCpController->display() JROOT/libraries/src/MVC/Controller/BaseController.php:730
9 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/administrator/components/com_phocagallery/phocagallery.php:51
10 require_once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
11 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73
12 Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:361
13 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:150
14 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:206
15 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:320
16 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:58
17 require_once() JROOT/administrator/index.php:32
Kind regards
Christine
Re: Joomla 6.01 Phoca 6.01 error by 'new' image
Posted: 30 Dec 2025, 17:05
by digitalheroes2020
Hi Christine, Thanks again for your support. So it is a little bug in Phoca Gallery?
With regards,
Mark
Re: Joomla 6.01 Phoca 6.01 error by 'new' image
Posted: 30 Dec 2025, 17:42
by Benno
@
Christine &
Jan,
also confirmed!
Call Stack:
System Information:
So it is a little bug in Phoca Gallery?
Yes, I think so.
Kind regards,
Benno