Joomla 4 Error 0 Cannot Access Protected Property Joomla\CMS\Menu\MenuItem::$params - Question | JoomShaper

Joomla 4 Error 0 Cannot Access Protected Property Joomla\CMS\Menu\MenuItem::$params

S

SomDigitals

Template 2 years ago

I am testing Joomla 4 and I get "error 0 Cannot access protected property Joomla\CMS\Menu\MenuItem::$params" when I acess to site.

I am using:

  • Joomla 4.0.2
  • SP Page Builder 3.7.14
  • Helix ultimate 2.0.4
  • Template Shefund 1.0
  • PHP 7.4.22
  • MySQL 5.7.35

If I use "Cassiopeia" template, it works.

The error directs to line 30 "$params = $menuitem->params;" of file templates/shefund/features/tittle.php.

Can you help me.

Greeting.

0
19 Answers
Muntasir Sakib
Muntasir Sakib
Accepted Answer
Support Agent 2 years ago #32987

Hello there,

Template Shefund is not compatible with Joomla 4 yet. Moreover, you are using Helix Ultimate 2.x.x as well which is not even compatible with the template. This is exactly what created the problem.

Please rollback to the older Helix Ultimate version and Joomla version as well.

It will solve the issue.

Thanks!

0
S
SomDigitals
Accepted Answer
2 years ago #32993

Thanks for your quick response, We will wait to next version.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 2 years ago #32995

Hello SomDigitals

Templates are not yet compatible with Helix 2. Please allow us some time. Hopefully, we will make the templates compatible within this month. Meanwhile use Helix 1.1.4 on your site.

Best regards

0
MG
Maciej Gnatowski
Accepted Answer
2 years ago #35099

The same problem with Wimble Template. Cannot access protected property Joomla\CMS\Menu\MenuItem::$params

Joomla 4.03, Helix 2.0.5

Could You Fix it?

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 2 years ago #35103

Thanks for the feedback. Please wait for the template update.

0
EG
Eric Geysen
Accepted Answer
2 years ago #37094

Same problem with the qubic template.

hopefully a quick update/fix

thanks

0
Muntasir Sakib
Muntasir Sakib
Accepted Answer
Support Agent 2 years ago #37127

Hello Eric,

I hope you are already aware of that Qubic is not Joomla4 compatible yet, so it's kind of obvious getting error messages if you upgraded to Joomla4 already. We highly recommend not to upgrade to the latest Joomla version till all the components get compatible with it.

Thanks!

0
K
kriss
Accepted Answer
2 years ago #38277

I have the same problem with the startuplanding template. Although it should actually already be compatible with version 4. Before updating to version 4. I renewed the startuplanding template within Joomla 3.10.2, but in the Template Section it is still Version 1.

Regards Christoph

0
Muntasir Sakib
Muntasir Sakib
Accepted Answer
Support Agent 2 years ago #38282

Hello Kriss,

Please create another post and share your administrator access there in the Hidden Content area so that we can check the issue from our end.

Thanks!

0
K
kriss
Accepted Answer
2 years ago #38318

Hi Muntasir

Thanks for helping. I will creat a new Post in the next minutes.

Regards

0
PV
Popov Vadim
Accepted Answer
2 years ago #64150

I have the same problem with the Pitech template.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 2 years ago #64153

Hello Popov Vadim

Please create a new post about this. We will assist you.

Best regards

0
S
ssnobben
Accepted Answer
1 year ago #71144

Hi

I have the same problem with SP Pagebuilder 4.0.0-RC.2 Helix Ultimate 2.0.9 Joomla 4.1.4

Please explain the fix.

Please explain the fix.

Here is code there /html/templates/shaper_helixultimate/features/title.php:


/**
 * @package Helix_Ultimate_Framework
 * @author JoomShaper <[email protected]>
 * Copyright (c) 2010 - 2021 JoomShaper
 * @license www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or Later
 */


defined ('_JEXEC') or die();

use Joomla\CMS\Factory;
use Joomla\CMS\Uri\Uri;

/**
 * Helix Ultimate Site Title.
 *
 * @since   1.0.0
 */
class HelixUltimateFeatureTitle
{
    /**
     * Template parameters
     *
     * @var     object  $params     The parameters object
     * @since   1.0.0
     */
    private $params;

    /**
     * Constructor function
     *
     * @param   object  $params     The template parameters
     *
     * @since   1.0.0
     */
    public function __construct($params)
    {
        $this->position = 'title';
    }

    /**
     * Render the logo features.
     *
     * @return  string
     * @since   1.0.0
     */
    public function renderFeature()
    {

        $app = Factory::getApplication();
        $menuitem   = $app->getMenu()->getActive();

        if($menuitem)
        {

            $params = $menuitem->getParams();

            if($params->get('helixultimate_enable_page_title', 0))
            {

                $page_title          = $menuitem->title;
                $page_heading        = $params->get('helixultimate_page_title_heading', 'h2');
                $page_title_alt      = $params->get('helixultimate_page_title_alt');
                $page_subtitle       = $params->get('helixultimate_page_subtitle');
                $page_title_bg_color = $params->get('helixultimate_page_title_bg_color');
                $page_title_bg_image = $params->get('helixultimate_page_title_bg_image');

                if($page_heading == 'h1')
                {
                    $page_sub_heading = 'h2';
                }
                else
                {
                    $page_sub_heading = 'h3';
                }

                $style = '';

                if($page_title_bg_color)
                {
                    $style .= 'background-color: ' . $page_title_bg_color . ';';
                }

                if($page_title_bg_image)
                {
                    $style .= 'background-image: url(' . Uri::root(true) . '/' . $page_title_bg_image . ');';
                }

                if($style)
                {
                    $style = 'style="' . $style . '"';
                }

                if($page_title_alt)
                {
                    $page_title      = $page_title_alt;
                }

                $output = '';

                $output .= '<div class="sp-page-title"'. $style .'>';
                $output .= '<div class="container">';

                $output .= '<'. $page_heading .' class="sp-page-title-heading">'. $page_title .'</'. $page_heading .'>';

                if($page_subtitle)
                {
                    $output .= '<'. $page_sub_heading .' class="sp-page-title-sub-heading">'. $page_subtitle .'</'. $page_sub_heading .'>';
                }

                $output .= '<jdoc:include type="modules" name="breadcrumb" style="none" />';

                $output .= '</div>';
                $output .= '</div>';

                return $output;

            }

        }

    }
}
0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 1 year ago #71176

Hello ssnobben

I have seen another post of you on the same issue. We are still not compatible with PHP 8. Let's discuss on your post.

Best regards

0
Alex
Alex
Accepted Answer
1 year ago #80054

I have the same issue with the latest version of helix that should be compatible with PHP 8.

0
S
ssnobben
Accepted Answer
1 year ago #80166

I have the same issue with the latest version of helix that should be compatible with PHP 8.

pls create a support ticket and hopefully this will finally be solved.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 1 year ago #80308

If you face PHP 8 compatibility issues with the latest Helix 2.0.10, then post a new question. We will check the issues.

0
V
Vanessa
Accepted Answer
1 year ago #86394

Has this been resolved yet? PHP 8 and Joomla 4 have been out for a long time, and we ran into this on our template Luxyort and need a patch ASAP. PHP 7 is end of life in August and Joomla is end of life soon as well, been plenty of time for upgrades.

When will helix and luxoyrt template be fixed to address this same issue?

0
EG
Eric Geysen
Accepted Answer
1 year ago #86445

Hey Vanessa,

When you look at the templates section it seems the Luxyort template is already available in Joomla4.

I'm using qubic which is still in joomla 3

0