Page 1 of 1

After Update Joomla4 - Attempt to modify property "query" on null

Posted: 22 Dec 2022, 14:16
by joe72ka
Hello,
after a update to Joomla4 i became the follow error in the front.

The Change to PHP8 was before and on Joomla3 phoca gallery works correct.

What can i change or what is my error?

Best regards
Ralf
---
Attempt to modify property "query" on null
Call stack
# Function Location
1 () JROOT/administrator/components/com_phocagallery/libraries/phocagallery/path/routerrules.php:38
2 PhocaGalleryRouterrules->build() JROOT/libraries/src/Component/Router/RouterView.php:229
3 Joomla\CMS\Component\Router\RouterView->build() JROOT/components/com_phocagallery/router.php:316
4 PhocagalleryRouter->build() JROOT/libraries/src/Router/SiteRouter.php:441
5 Joomla\CMS\Router\SiteRouter->buildSefRoute() JROOT/libraries/src/Router/Router.php:405
6 Joomla\CMS\Router\Router->processBuildRules() JROOT/libraries/src/Router/Router.php:192
7 Joomla\CMS\Router\Router->build() JROOT/libraries/src/Router/Route.php:141
8 Joomla\CMS\Router\Route::link() JROOT/libraries/src/Router/Route.php:93
9 Joomla\CMS\Router\Route::_() JROOT/plugins/system/sef/sef.php:108
10 PlgSystemSef->onAfterRender() JROOT/libraries/src/Plugin/CMSPlugin.php:279
11 Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}() JROOT/libraries/vendor/joomla/event/src/Dispatcher.php:486
12 Joomla\Event\Dispatcher->dispatch() JROOT/libraries/src/Application/EventAware.php:107
13 Joomla\CMS\Application\WebApplication->triggerEvent() JROOT/libraries/src/Application/CMSApplication.php:1023
14 Joomla\CMS\Application\CMSApplication->render() JROOT/libraries/src/Application/SiteApplication.php:714
15 Joomla\CMS\Application\SiteApplication->render() JROOT/libraries/src/Application/CMSApplication.php:299
16 Joomla\CMS\Application\CMSApplication->execute() JROOT/includes/app.php:61
17 require_once() JROOT/index.php:32

Re: After Update Joomla4 - Attempt to modify property "query" on null

Posted: 22 Dec 2022, 16:13
by Benno
Hi,
did you follow all steps of this migration guide Phoca Gallery regarding?

Kind regards,
Benno

Re: After Update Joomla4 - Attempt to modify property "query" on null

Posted: 22 Dec 2022, 22:32
by joe72ka
Hi,
yes.
When i use "list from pictures (category view)"
i select a category with under categories - i became the error
When i use direct a under categorie i became not the error.

Best regards

Re: After Update Joomla4 - Attempt to modify property "query" on null

Posted: 23 Dec 2022, 18:48
by Jan
Hi, do you get the same problem when you use the latest Beta?

https://github.com/PhocaCz/PhocaGallery ... .3Beta.zip

Please let me know if you get the same problem even with Beta.

Thank you, Jan

Re: After Update Joomla4 - Attempt to modify property "query" on null

Posted: 23 Dec 2022, 23:56
by joe72ka
Thanks with the Beta ist running.
Where i found the beta versions?

Best regards
Ralf

Re: After Update Joomla4 - Attempt to modify property "query" on null

Posted: 25 Dec 2022, 15:14
by christine
Hi Ralf,
joe72ka wrote: 23 Dec 2022, 23:56 Thanks with the Beta ist running.
Where i found the beta versions?
There is no official beta versions. It was implemented from Jan, for testing purposes.
See similar thread: viewtopic.php?t=64058

Thank you.

Kind regards
Christine