Support Offline: Mon - Fri / 08:00am - 05:00pm (GMT +7)
Your Time: Our Time:

times Joomla 4

More
2 years 6 months ago - 2 years 6 months ago #41088 by Mark Schultze
Joomla 4 was created by Mark Schultze
Greetings!

We are trying to upgrade our website to Joomla 4 running on PHP 8. We have Jux CSS3 Mega Menu on our old version, but it is not compatible with Joomla 4.

We bought and downloaded the newest version of Jux CSS3 Mega Menu (pkg_jux_css3_megamenu_1.1.3.Joomla4.zip) which should install the Joomla 4 version. Installation works fine, but when we publish a Jux CSS3 Mega Menu module, we instantly get the following Error:

error - Uncaught Throwable of type Error thrown with message "Cannot access protected property Joomla\CMS\Menu\MenuItem::$params". Stack trace: #0 [ROOT]\modules\mod_jux_megamenucss3\mod_jux_megamenucss3.php(73): require() #1 [ROOT]\libraries\src\Dispatcher\ModuleDispatcher.php(54): include('C:\\xampp\\htdocs...') #2 [ROOT]\libraries\src\Dispatcher\ModuleDispatcher.php(57): Joomla\CMS\Dispatcher\ModuleDispatcher::Joomla\CMS\Dispatcher\{closure}('C:\\xampp\\htdocs...', NULL) #3 [ROOT]\libraries\src\Helper\ModuleHelper.php(295): Joomla\CMS\Dispatcher\ModuleDispatcher->dispatch() #4 [ROOT]\libraries\src\Helper\ModuleHelper.php(167): Joomla\CMS\Helper\ModuleHelper::renderRawModule(Object(stdClass), Object(Joomla\Registry\Registry), Array) #5 [ROOT]\libraries\src\Document\Renderer\Html\ModuleRenderer.php(102): Joomla\CMS\Helper\ModuleHelper::renderModule(Object(stdClass), Array) #6 [ROOT]\libraries\src\Document\Renderer\Html\ModulesRenderer.php(48): Joomla\CMS\Document\Renderer\Html\ModuleRenderer->render(Object(stdClass), Array, NULL) #7 [ROOT]\libraries\src\Document\HtmlDocument.php(597): Joomla\CMS\Document\Renderer\Html\ModulesRenderer->render('header-menu', Array, NULL) #8 [ROOT]\libraries\src\Document\HtmlDocument.php(903): Joomla\CMS\Document\HtmlDocument->getBuffer('modules', 'header-menu', Array) #9 [ROOT]\libraries\src\Document\HtmlDocument.php(668): Joomla\CMS\Document\HtmlDocument->_renderTemplate() #10 [ROOT]\libraries\src\Application\CMSApplication.php(1039): Joomla\CMS\Document\HtmlDocument->render(false, Array) #11 [ROOT]\libraries\src\Application\SiteApplication.php(802): Joomla\CMS\Application\CMSApplication->render() #12 [ROOT]\libraries\src\Application\CMSApplication.php(284): Joomla\CMS\Application\SiteApplication->render() #13 [ROOT]\includes\app.php(63): Joomla\CMS\Application\CMSApplication->execute() #14 [ROOT]\index.php(32): require_once('C:\\xampp\\htdocs...') #15 {main}

Looking at the PHP sourcecode, it seems that the $params-Variable is never initialized. Handling of menu params changed from Joomla3 to Joomla4 (it's now protected), so we also cannot go back to an older version.

We also tried completely removing and reinstalling to no avail.

Can you make a fixed version available and/or help us?

Thanks in advance
convivo

Edit: After submitting this, we found that a new version (1.1.4) was available. We also tested that, still the same error!
Last edit: 2 years 6 months ago by Mark Schultze.

Please Log in or Create an account to join the conversation.

More
2 years 6 months ago #41090 by Jackie
Replied by Jackie on topic Joomla 4
Hello.
Thank you for contacting us.
Yes, we have released a new version of 1.1.4 to fix the Joomla 4 issue.
Please give us your site URL, and admin account. We will help you check it soon.
Thanks.

Best regards.
Jackie Nguyen.

Please Log in or Create an account to join the conversation.

More
2 years 6 months ago #41113 by Mark Schultze
Replied by Mark Schultze on topic Joomla 4
Hello

we uninstalled and reinstalled the 1.14 Joomla4-version of Jux CSS3 Mega menu to no avail.
Once we include a module to display a menu on the frontend, we get the following error:

error - Uncaught Throwable of type Error thrown with message "Cannot access protected property Joomla\CMS\Menu\MenuItem::$params". Stack trace: #0 [ROOT]\modules\mod_jux_megamenucss3\mod_jux_megamenucss3.php(71): require() #1 [ROOT]\libraries\src\Dispatcher\ModuleDispatcher.php(54): include('C:\\xampp\\htdocs...') #2 [ROOT]\libraries\src\Dispatcher\ModuleDispatcher.php(57): Joomla\CMS\Dispatcher\ModuleDispatcher::Joomla\CMS\Dispatcher\{closure}('C:\\xampp\\htdocs...', NULL) #3 [ROOT]\libraries\src\Helper\ModuleHelper.php(295): Joomla\CMS\Dispatcher\ModuleDispatcher->dispatch() #4 [ROOT]\libraries\src\Helper\ModuleHelper.php(167): Joomla\CMS\Helper\ModuleHelper::renderRawModule(Object(stdClass), Object(Joomla\Registry\Registry), Array) #5 [ROOT]\libraries\src\Document\Renderer\Html\ModuleRenderer.php(102): Joomla\CMS\Helper\ModuleHelper::renderModule(Object(stdClass), Array) #6 [ROOT]\libraries\src\Document\Renderer\Html\ModulesRenderer.php(48): Joomla\CMS\Document\Renderer\Html\ModuleRenderer->render(Object(stdClass), Array, NULL) #7 [ROOT]\libraries\src\Document\HtmlDocument.php(597): Joomla\CMS\Document\Renderer\Html\ModulesRenderer->render('header-menu', Array, NULL) #8 [ROOT]\libraries\src\Document\HtmlDocument.php(903): Joomla\CMS\Document\HtmlDocument->getBuffer('modules', 'header-menu', Array) #9 [ROOT]\libraries\src\Document\HtmlDocument.php(668): Joomla\CMS\Document\HtmlDocument->_renderTemplate() #10 [ROOT]\libraries\src\Application\CMSApplication.php(1039): Joomla\CMS\Document\HtmlDocument->render(false, Array) #11 [ROOT]\libraries\src\Application\SiteApplication.php(802): Joomla\CMS\Application\CMSApplication->render() #12 [ROOT]\libraries\src\Application\CMSApplication.php(284): Joomla\CMS\Application\SiteApplication->render() #13 [ROOT]\includes\app.php(63): Joomla\CMS\Application\CMSApplication->execute() #14 [ROOT]\index.php(32): require_once('C:\\xampp\\htdocs...') #15 {main}

We are developing the website on a local machine via XAMPP, the current system is running on Joomla 3, which we will only upgrade once all addons are running. Given above stacktrace, the place of the error is obviously in \modules\mod_jux_megamenucss3\mod_jux_megamenucss3.php, where the $params variable is called but never defined. I hope this helps fixing the issue soon.

Please Log in or Create an account to join the conversation.

More
2 years 6 months ago #41119 by Jackie
Replied by Jackie on topic Joomla 4
Hi again.

On the last version, we have fixed the params issue. As you see, our module works fine on the Joomla 4. prnt.sc/VUAdDGrpKHa_

Please check and activate plugin "System - JUX CSS3 Mega Menu Framework". Our module required that plugin to get the params for menu config.

Thanks.

Best regards.
Jackie Nguyen.

Please Log in or Create an account to join the conversation.

More
2 years 6 months ago #41124 by Mark Schultze
Replied by Mark Schultze on topic Joomla 4
Hi again,

turns out the error was pointing to the mod_jux_megamenucss3.php file, but was actually caused within the JModuleHelper::getLayoutPath function that tried to load a template override from our site which had an $item->params call that can no longer be used in Joomla4.
We fixed that and the error is gone now.

Thanks for the support!

Please Log in or Create an account to join the conversation.

More
2 years 6 months ago #41125 by Jackie
Replied by Jackie on topic Joomla 4
Thank you for your feedback. If you need help, please let us know again.
Thanks.

Best regards.
Jackie Nguyen.

Please Log in or Create an account to join the conversation.

Moderators: Jackie
Time to create page: 0.076 seconds
Powered by Kunena Forum