Error saving template

More
2 days 3 hours ago - 2 days 3 hours ago #5422 by jof
Error saving template was created by jof
When I try to save a template I get the following error:

Call to undefined method Joomla\Component\GMapFP\Administrator\Table\TemplateTable::getCurrentUser()

on line

JROOT/administrator/components/com_gmapfp/src/Table/TemplateTable.php:77
Last edit: 2 days 3 hours ago by jof.

Please Log in or Create an account to join the conversation.

More
2 days 2 hours ago #5423 by gmapfp
Replied by gmapfp on topic Error saving template
Hi,
Which version of Joomla and GMapFP?

Please Log in or Create an account to join the conversation.

More
2 days 58 minutes ago #5424 by jof
Replied by jof on topic Error saving template
Joomla 5.4.1

GmapFP version: 4.10.19. You modified the code when you solved my previous problem. See: Frontend form forum entry.

Please Log in or Create an account to join the conversation.

More
1 day 21 hours ago #5425 by jof
Replied by jof on topic Error saving template
It works if I replace

$userId = $this->getCurrentUser()->id;

with

$userId = Factory::getApplication()->getIdentity()->id;

in the check() function of the TemplateTable.php file

Please Log in or Create an account to join the conversation.

Time to create page: 0.047 seconds
Powered by Kunena Forum
FaLang translation system by Faboba