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

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

$
0
0
May That be a Joomla bug of php 8.2?
Not at all and the new code can cause unpredictable issues. The original PHP works correctly, as long as the host has not blocked the native PHP function get_current_user().

As @Kubik-Rubik pointed out,
It is used in the Template component when a file is stored on the file system, and its owner is set to the owner of the currently executed PHP script to make it writable.
The owner here is one of the users defined in the operating system, not the Joomla user logged in at the back end of Joomla.

Statistics: Posted by toivo — Sun Aug 11, 2024 1:33 pm



Viewing all articles
Browse latest Browse all 1543

Trending Articles





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