https://bugs.koozali.org/show_bug.cgi?id=12187
John Crisp <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |CONFIRMED
CC| |[email protected]
Ever confirmed|0 |1
--- Comment #2 from John Crisp <[email protected]> ---
I can confirm this bug occurs.
So shell_exec is required for getTime - for calendaring etc.
https://help.nextcloud.com/t/gettime-must-be-of-the-type-string-null-returned/127772
This is the function in question:
public function getTime(): string {
$date = shell_exec('date');
return $date;
}
To enable this as a workaround:
mkdir -p /etc/e-smith/templates-custom/etc/php-fpm.d/www.conf
cp -r /etc/e-smith/templates/etc/php-fpm.d/www.conf/15Nextcloud \
/etc/e-smith/templates-custom/etc/php-fpm.d/www.conf/15Nextcloud
nano /etc/e-smith/templates-custom/etc/php-fpm.d/www.conf/15Nextcloud
Remove 'shell_exec' from this line:
php_admin_value[disable_functions] = system, show_source, symlink, exec, dl,
shell_exec, passthru, phpinfo, escapeshellarg, escapeshellcmd
Save.
Run:
signal-event smeserver-nextcloud-update
However, we probably ought to fix this, or have an option to enable/disable.
--
You are receiving this mail because:
You are the QA Contact for the bug._______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/