Hi Saguaros,
Now everything is updated. But I still have the same problem: all the options in the "Aplicatius" menu (for example) should open in a new page and they don't (...and with version 2.1.5 of plg_system_t4 they do -but sometimes like a toggle-).
Another issue is that I use the following code to get the current user:
define('_JEXEC', 1);
define('JPATH_BASE', ".."); // <-- the code is one level up from /includes
require_once JPATH_BASE . '/includes/defines.php';
require_once JPATH_BASE . '/includes/framework.php';
$container = \Joomla\CMS\Factory::getContainer();
$container->alias('session.web', 'session.web.site')
->alias('session', 'session.web.site')
->alias('JSession', 'session.web.site')
->alias(\Joomla\CMS\Session\Session::class, 'session.web.site')
->alias(\Joomla\Session\Session::class, 'session.web.site')
->alias(\Joomla\Session\SessionInterface::class, 'session.web.site');
$app = $container->get(\Joomla\CMS\Application\SiteApplication::class);
$user = JFactory::getUser();
.. and sometimes it returns the correct user and at other times it always returns null.
Thanks for all,
Jordi
Sorry about the five hour time difference (Spain-Vietnam).