Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1435

Templates for Joomla! 5.x • Re: Undefined function get_current_user() when editing user.css

$
0
0
I faced same issue on php 8.2 and enabled Debug it was pointing that php file= administrator/components/com_templates/src/Model/TemplateModel.php. So I have changed this line
$user = get_current_user();
to this
$user = Factory::getUser();
and it resolved. May That be a Joomla bug of php 8.2?

Statistics: Posted by JTema — Sun Aug 11, 2024 12:49 pm



Viewing all articles
Browse latest Browse all 1435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>