Page 1 of 1

Call to undefined method Joomla\CMS

Posted: 21 Mar 2022, 14:43
by Milian
I installed the latest com_phocadownload_v4.0.0.
And got fatal errors.
0 Call to undefined method Joomla\CMS\Toolbar\Toolbar::popupButton()
com_phocadownload_v4.0.0 is a beta version but this is a serious error. When opening the Admin (files, categories).
Regards,
Milian

Re: Call to undefined method Joomla\CMS

Posted: 25 Mar 2022, 00:59
by Jan
Hi, which version of Joomla you are using? Which Phoca Download version exactly?

Can you enable debug mode to get whole error message (including file, line and debug trace)?

Testing now, without any such error, even there is no call to Toolbar::popupButton() statically but with help of $bar object. :idea:

Jan

Re: Call to undefined method Joomla\CMS

Posted: 25 Mar 2022, 11:57
by Milian
Hi Jan,
In the mean time I found out that I mixed up Phocadownload for Joomla 3 an Joomla 4.
3.2.3. versus 4.0.0.alpha8. So my problem is solved. Sorry for mixing up.

One question left:
I have an: Error while downloading file (Mime Type not found)
I have this syntax for the .gpx extention:
For Joomla-30:
{gpx=application/x-gpx}
For Joomla-40:
{gpx=application/gpx+xml}

But I do not know where I have to place this line.
Thanks for your answer!
Regards,
Milian

Re: Call to undefined method Joomla\CMS

Posted: 25 Mar 2022, 12:31
by Benno
Image

Kind regards,
Benno

Re: Call to undefined method Joomla\CMS

Posted: 26 Mar 2022, 14:08
by Milian
Thanks Benno,
It works now.
Regards, Milian

Re: Call to undefined method Joomla\CMS

Posted: 26 Mar 2022, 15:22
by Benno
You're welcome!

Kind regards,
Benno