Cannot upload documents openemr 8.0

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

2 Likes