Sorry for my bad english.
Executing cron.php has errors:
PHP Fatal error: Call to a member function getUID() on a non-object in /var/www/html/owncloud/apps/admin_audit/lib/actions/trashbin.php on line 49
From my crontab:
00 2 * * * root sudo -u www-data php -f /var/www/html/owncloud/cron.php
Using Ubuntu 14.0.4
Regards
Cayetano
Does cron.php belong to www-data?
also,
"00 2 * * * root sudo -u www-data php -f /var/www/html/owncloud/cron.php"
should be
*/15 * * * php -f /var/www/html/owncloud/cron.php
for the user www-data.
Try calling the crontab like this:
“sudo -u www-data crontab -e” and then paste the above line inside. I think you’re using the the wrong crontab
Greetings,
Maulwurf
1 Like