Dashboard gets an error message

doneSolved
Sherry Galagan created this topic 9 months 2 weeks ago
Dashboard gets an error message was created by Sherry Galagan
Hi, I have just gone into my Formea dashboard and it is getting an error message, I do not think anything has changed other then Joomla 4 updates and formea updates since I last used it.

Error message: 0 Call to undefined method Joomla\CMS\Document\HtmlDocument::getToolbar()
Replied by Eddie on topic Dashboard gets an error message
Hello Sherry,

Thank you for bringing this to our attention. It appears to be a Joomla! bug, and it's related to the issue documented here: [url] issues.joomla.org/tracker/joomla-cms/39814 [/url]

Rest assured, we are actively working on a fix for this bug. However, if you require an urgent solution, you can follow these steps:

In your Joomla! installation directory, navigate to the file located at [root]/administrator/components/com_formea/src/View/Dashboard/HtmlView.php.

Find line 186 in the file.
Replace the existing code:
Code:
$toolbar = $app->getDocument()->getToolbar('toolbar');

with:
Code:
$toolbar = Toolbar::getInstance('toolbar');

This temporary solution should address the issue until the official fix is released.
Thank you for your patience and understanding as we work to resolve this issue promptly.
Replied by Eddie on topic Dashboard gets an error message
Marking this as solved. As stated in the post at [url] www.feseur.com/forum/release/16-formea-version-1-1-4 [/url] ,please update your Formea as soon as possible.

Thank you for reporting the bug.
Moderators: Eddie