Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot access protected property Joomla\CMS\Menu\MenuItem #35

Closed
wamk9 opened this issue Aug 18, 2021 · 6 comments
Closed

Cannot access protected property Joomla\CMS\Menu\MenuItem #35

wamk9 opened this issue Aug 18, 2021 · 6 comments

Comments

@wamk9
Copy link

wamk9 commented Aug 18, 2021

Hi Everyone!

Recently i update my Joomla 3.10 to 4.0.0 Stable and i receive this screen error:

image

My Tz version is 2.4.9, what i do about this?

@sonvnn
Copy link
Member

sonvnn commented Aug 19, 2021

Hi, Please wait for update version. We will release fixbug version in next 24h.

Best Regards,
Sonny

@wamk9
Copy link
Author

wamk9 commented Aug 21, 2021

Hi, Please wait for update version. We will release fixbug version in next 24h.

Best Regards,
Sonny

Hi Sonny! Any news about this update?

@sonvnn
Copy link
Member

sonvnn commented Aug 22, 2021

Hello,

Sorry for the late reply. We are still working on this. We will update update version today.

Thanks & Best Regards,
Sonny

@wamk9
Copy link
Author

wamk9 commented Aug 29, 2021

Hello,

Sorry for the late reply. We are still working on this. We will update update version today.

Thanks & Best Regards,
Sonny

Hi Sonny! I update my component to 2.5.0 and now my front-end isn't showing any error on categories, but my itens don't show on this screen!

If i go by link to any item i receive this screen error:

image

And if i access any item on backend i receive the "Form::loadForm could not load file" error in Joomla\CMS\MVC\Model\FormModel->loadForm() | JROOT/administrator/components/com_tz_portfolio_plus/libraries/plugin/modeladmin.php:47

@trinhvanduong
Copy link
Contributor

Hi wamk9,
You should remove "JHtml::('behavior.caption')" or "HTMLHelper::('behavior.caption')" of your style (pspina) with Joomla 4.
And with error "Form::loadForm", we will check and update version in next 24h.

@wamk9
Copy link
Author

wamk9 commented Aug 31, 2021

Hi wamk9,
You should remove "JHtml::('behavior.caption')" or "HTMLHelper::('behavior.caption')" of your style (pspina) with Joomla 4.
And with error "Form::loadForm", we will check and update version in next 24h.

Hi @trinhvanduong!

I review the problem with loadForm and this solved changing on line 47 in /administrator/components/com_tz_portfolio_plus/libraries/plugin/modeladmin.php this code:

$form = $this->loadForm('plg_'.$this -> plugin_type.$name.'.'.$name, $name,
            array('control' => 'jform', 'load_data' => $loadData));

to this:

$form = $this->loadForm($this -> option.'.'.$this -> getName(), 'article', array('control' => 'jform', 'load_data' => $loadData));

Another thing is about grid_gallery's addon, on line 47 in /components/com_tz_portfolio_plus/addons/mediatype/grid_gallery/tmpl/default.php we need change if ($japp->isAdmin()) { to if ($japp->isClient('administrator')) {, like showed on issue published on joomla_cms' repository.

About JHtml::('behavior.caption'), i removed and this works! I have many other problems but is about my template vs. J4 (i guess) like items on portfolio doesn't showing! Thanks by supporting us!

@wamk9 wamk9 closed this as completed Sep 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants