-
Forum
-
GMapFP
-
Bugs
-
Error saving template
Error saving template
Less
More
-
Posts: 6
-
Thank you received: 0
-
-
2 days 3 hours ago - 2 days 3 hours ago #5422
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.
Less
More
-
Posts: 1932
-
Thank you received: 267
-
-
-
-
Less
More
-
Posts: 6
-
Thank you received: 0
-
-
2 days 58 minutes ago #5424
by jof
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.
Less
More
-
Posts: 6
-
Thank you received: 0
-
-
1 day 21 hours ago #5425
by jof
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.
-
Forum
-
GMapFP
-
Bugs
-
Error saving template
Time to create page: 0.047 seconds