Error saving template

Plus d'informations
il y a 1 jour 23 heures - il y a 1 jour 23 heures #5422 par jof
Error saving template a été créé par 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
Dernière édition: il y a 1 jour 23 heures par jof.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 jour 22 heures #5423 par gmapfp
Réponse de gmapfp sur le sujet Error saving template
Hi,
Which version of Joomla and GMapFP?

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 jour 20 heures #5424 par jof
Réponse de jof sur le sujet 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.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 jour 17 heures #5425 par jof
Réponse de jof sur le sujet 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

Connexion ou Créer un compte pour participer à la conversation.

Temps de génération de la page : 0.058 secondes
Propulsé par Kunena
FaLang translation system by Faboba