Describe the bug
Since updating to v3.4.0, I'm getting the above error in the logs whenever the background job runs.
To Reproduce
Steps to reproduce the behavior:
Server (please complete the following information):
Nextcloud log (nextcloud/data/nextcloud.log)
[core] Error: Error: Undefined class constant 'CACHE_TTL' at <<closure>>
0. /var/www/nextcloud/lib/private/BackgroundJob/Job.php line 62
OCA\Bookmarks\BackgroundJobs\PreviewsJob->run(null)
1. /var/www/nextcloud/lib/private/BackgroundJob/TimedJob.php line 57
OC\BackgroundJob\Job->execute(OC\BackgroundJob\JobList {}, OC\Log {})
2. /var/www/nextcloud/cron.php line 126
OC\BackgroundJob\TimedJob->execute(OC\BackgroundJob\JobList {}, OC\Log {})
at 2020-09-30T18:32:02+02:00
I have encountered the same bug.
Mmh, how did you update? OCABookmarksBackgroundJobsPreviewsJob.php shouldn't exist in the latest version.
Very interestingly, now I'm checking back at my logs and see that it only appeared a couple of hundred times over the course of one day, between 6:00 and 18:00 and then stopped without coming back. Looks like it only happened after updating to 3.4.0 and before updating to 3.4.1 where you probably removed the legacy files including this call?
This was a regular update via the integrated "Apps" from the regular NC App Store.
I think this has been fixed with v3.4.1 and the ticket can be closed. @tang2554 are oyu on the latest version?
@simonspa I have just upgraded to 3.4.1 from appstore, and the issue disappeared.
Most helpful comment
Very interestingly, now I'm checking back at my logs and see that it only appeared a couple of hundred times over the course of one day, between 6:00 and 18:00 and then stopped without coming back. Looks like it only happened after updating to 3.4.0 and before updating to 3.4.1 where you probably removed the legacy files including this call?
This was a regular update via the integrated "Apps" from the regular NC App Store.
I think this has been fixed with v3.4.1 and the ticket can be closed. @tang2554 are oyu on the latest version?