Joomla 6.0alpha2 : 0 Call to a member function getGroup() on null

Phoca Gallery - image gallery extension
User avatar
jobrusche
Phoca Member
Phoca Member
Posts: 30
Joined: 18 Apr 2012, 16:26

Joomla 6.0alpha2 : 0 Call to a member function getGroup() on null

Post by jobrusche »

Context: Joomla V6.0 Alpha2 / Phoca Gallery 5.1.1 / PHP 8.3.20

Installation went OK - Phoca Gallery Control Panel displays OK
Click on any item in the sidepanel menu causes a stackdump
The call stack is always 0 Call to a member function getGroup() on null
It makes no difference switching on/off the Joomla compatibility plugin

Below image is a dump from clicking on "Images"

https://imgur.com/a/1wgjMre

Regards,
Johan
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48829
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Joomla 6.0alpha2 : 0 Call to a member function getGroup() on null

Post by Jan »

Hi, when I looking at the screenshot, the error comes from layouts/joomla/searchtools/default/bar.php. Hard to say what can be wrong there, I will try to install the Alpha2 for more tests.

Thank you, Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48829
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Joomla 6.0alpha2 : 0 Call to a member function getGroup() on null

Post by Jan »

Hi, confirmed, I have asked core developers what changed there, so now, I am waiting for their answers.
If you find Phoca extensions useful, please support the project
User avatar
jobrusche
Phoca Member
Phoca Member
Posts: 30
Joined: 18 Apr 2012, 16:26

Re: Joomla 6.0alpha2 : 0 Call to a member function getGroup() on null

Post by jobrusche »

By the way, the same stackdumps happen in Phoca Download 5.1.0
Shall I post an entry there too ?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48829
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Joomla 6.0alpha2 : 0 Call to a member function getGroup() on null

Post by Jan »

Hi, no, you don't need to post it for Phoca Download, the same happened for Phoca Cart.

There were changes between Joomla 6 Alpha 1 and Joomla 6 Alpha 2 where some methods were removed. I have rewritten Phoca Gallery and will do the same for download and cart extensions.

Please test 5.1.2 version and let me know:

https://www.phoca.cz/news/1376-phoca-ga ... 5-joomla-6

https://www.phoca.cz/download/66-phoca- ... -component

Thank you, Jan
If you find Phoca extensions useful, please support the project
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9751
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Joomla 6.0alpha2 : 0 Call to a member function getGroup() on null

Post by Benno »

Hi Jan,
Phoca Gallery v5.1.2 works. No errors.

Joomla! 6.0.0-alpha3-dev
PHP v8.2

Kind regards,
Benno
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48829
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Joomla 6.0alpha2 : 0 Call to a member function getGroup() on null

Post by Jan »

Great, thank you for the info.
If you find Phoca extensions useful, please support the project
User avatar
jobrusche
Phoca Member
Phoca Member
Posts: 30
Joined: 18 Apr 2012, 16:26

Re: Joomla 6.0alpha2 : 0 Call to a member function getGroup() on null

Post by jobrusche »

Hello Jan,

Installed (update not found) Phoca Gallery 5.1.2 from downloaded file, added a new category and an image in that category.
Worked like a charm !

However the 2nd link in your post does not point to Phoca Download 5.1.1
and the regular Phoca Download page does not mention 5.1.1 :(

Thanks for the assist sofar,
Johan.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48829
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Joomla 6.0alpha2 : 0 Call to a member function getGroup() on null

Post by Jan »

The first link is a news link, the second link is download link - both for Phoca Gallery.

Phoca Download version 5.1.2 (ready for Joomla 6 Alpha 2) will be released tommorow officialy (it is now in download section, so you can test even the Phoca Download: https://www.phoca.cz/download/68-phoca- ... -component )

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