Black Friday 2026 50% off every plan Our biggest deal of the year on #1 Joomla products.
Ends in 12d 19h 54m 33s
Claim 50% off
Solved Templates

Startuplanding Template and Update to Joomla Version 4.x

Asked by kriss 5 years ago Last activity 4 years ago

Hi

After Updating to Joomla 4.03 i have an Error:

Joomla 4 Error 0 Cannot Access Protected Property Joomla\cms\menu\menuitem::$params

As described in this Post: https://www.joomshaper.com/forum/question/6645

Please see the Credentials

Thanks and Regards
Christoph

Accepted answer

Marked as the solution
Toufiq Senior Staff

Hi there,

Thanks for contacting us. Sorry for the inconvenience. Here is the solution.

I have solved your issue following this process. It will help others.

Go to the file file location

templates/startuplanding/features/title.php

Find out this code

$params = $menuitem->params;

Change with this code

$params = $menuitem->getParams();

-Thanks

13 more replies

kriss Asked this

Thank you

Now it works!

Regards
Christoph

kriss Asked this

Hi Toufiq

Yes. I would like to, but i have mixed feelings.
Most of my Joomshaper template and page builder issues are bug related. One function works and after an update i have some strange effects. Support usually helps quickly and provides a fix. Sometimes I spend hours trying to solve the problem.

Sometimes there is unfortunately no answer from support.

See
https://www.joomshaper.com/forum/question/7758
https://www.joomshaper.com/forum/question/5653

I like the Joomshaper Templates and the Page-Builder Component. There are so much Possiblities and cool Features. But sometimes i think, there is a level of complexity in the software that makes the whole thing prone to errors.

Sometimes I think less is more.

Best regards
Christoph

Toufiq Senior Staff

I have informed our teammate. I hope she will back to you soon. Thanks

ssnobben

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:

/**

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;
      
       }

      }

    }
    }

Toufiq Senior Staff

@ssnobben Please provide me the Joomla administrator access to check the issue. Thanks

ssnobben

Hi Toufiq you can test the credentials in the hidden area here then if it work

thks

Toufiq Senior Staff

Super admin access, please.

ssnobben

Ok Toufiq its fixed now try again
Pls let me know when done..

cheers!

Toufiq Senior Staff

Our product issue solved. Now you need to contact easyblog extension provider or disable the easyblog extension. Thanks

Log in to reply.