Cannot upload documents openemr 8.0

Upgraded to OpenemR 8.0 using this thread:

Everything functions well.
Tried to upload documents in any of the categories but i get this error

Fatal error: Uncaught → Smarty: Plugin ‘smarty_function_xl’ not callable ← thrown in /var/www/html/openemr/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php on line 469

Did not have this when tried 7.0.4. Cannot reproduce it in DEMOs.

If the patient has documents already uploaded they show normally

Ubuntu 24.04,
mysql Ver 8.0.45-0ubuntu0.24.04.1 for Linux on x86_64 ((Ubuntu))
PHP 8.3.6 (cli) (built: Jan 7 2026 08:40:32) (NTS)

Thank you

Grok gave me the answer:)
Create /var/www/html/openemr/library/smarty/plugins/function.xl.php with:

<?php function smarty_function_xl($params, &$smarty): void { if (empty($params['t'])) { trigger_error("xl: missing 't' parameter", E_USER_WARNING); return; } else { $translate = $params['t']; } echo xl($translate); }

and then i had:
“Failed to create /var/www/html/openemr/sites/default/documents/”
So:
sudo chown -R www-data:www-data /var/www/html/openemr/sites/default/documents
sudo chmod -R 755 /var/www/html/openemr/sites/default/documents

sudo chmod -R 775 /var/www/html/openemr/sites/default/documents

Thank you