Error saving template

More
10 months 1 day ago - 10 months 1 day 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: 10 months 1 day ago by jof.

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

More
10 months 1 day 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
10 months 1 day 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
10 months 1 day 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.

More
9 months 3 weeks ago #5426 by gmapfp
Replied by gmapfp on topic Error saving template
I am currently working on a Joomla 6 compatible version, which includes a redesign of the itinerary management section to make it compatible with smartphones, and minor CSS improvements. This update will also address reported bugs.
The following user(s) said Thank You: jof

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

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