No Code Attached Yet
avatar skurvish
skurvish
5 Oct 2023

Steps to reproduce the issue

Install 5.0 standalone, nothing else. Open the contacts in the admin side. Click the plus to create a new contact.

Expected result

New contact form opens.

Actual result

Call to undefined method Joomla\CMS\Form\Field\UserField::getCurrentUser()

System information (as much as possible)

J5.0.0-rc2-dev-Development-Full_package
PHP 8.2 on Ubuntu 22.04.3 LTS

Additional comments

Screenshot from 2023-10-05 15-05-12

avatar skurvish skurvish - open - 5 Oct 2023
avatar joomla-cms-bot joomla-cms-bot - change - 5 Oct 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 5 Oct 2023
avatar skurvish skurvish - change - 5 Oct 2023
Title
Call to undefined method Joomla\CMS\Form\Field\UserField::getCurrentUser()
[5.0] Call to undefined method Joomla\CMS\Form\Field\UserField::getCurrentUser()
avatar skurvish skurvish - edited - 5 Oct 2023
avatar alikon
alikon - comment - 6 Oct 2023

$this->readonly = !$this->getCurrentUser()->authorise('core.manage', 'com_users');

there is no more static call

avatar Fedik
Fedik - comment - 6 Oct 2023

I cannot reproduce it on latest changes 5.0-dev branch.
I can create the contact wiithout the error.

avatar skurvish
skurvish - comment - 6 Oct 2023

Intreresting. Let me start over again and see if it is replicatable.

avatar skurvish skurvish - close - 6 Oct 2023
avatar skurvish
skurvish - comment - 6 Oct 2023

Started over and am now not getting the error. No idea what happened the first time. Closing.

avatar skurvish skurvish - change - 6 Oct 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-10-06 10:38:21
Closed_By skurvish

Add a Comment

Login with GitHub to post a comment