Joomla 6.01 Phoca 6.01 error by 'new' image

Phoca Gallery - image gallery extension
digitalheroes2020
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 06 Apr 2025, 17:01

Joomla 6.01 Phoca 6.01 error by 'new' image

Post 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
christine
Phoca Hero
Phoca Hero
Posts: 2945
Joined: 28 Nov 2010, 17:20

Re: Joomla 6.01 Phoca 6.01 error by 'new' image

Post 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
digitalheroes2020
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 06 Apr 2025, 17:01

Re: Joomla 6.01 Phoca 6.01 error by 'new' image

Post 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
christine
Phoca Hero
Phoca Hero
Posts: 2945
Joined: 28 Nov 2010, 17:20

Re: Joomla 6.01 Phoca 6.01 error by 'new' image

Post 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
digitalheroes2020
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 06 Apr 2025, 17:01

Re: Joomla 6.01 Phoca 6.01 error by 'new' image

Post by digitalheroes2020 »

Hi Christine, Thanks again for your support. So it is a little bug in Phoca Gallery?

With regards,

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

Re: Joomla 6.01 Phoca 6.01 error by 'new' image

Post by Benno »

@Christine & Jan,
also confirmed!

Call Stack:
Image

System Information:
Image
So it is a little bug in Phoca Gallery?
Yes, I think so.

Kind regards,
Benno
Post Reply