Pre-generate fails

sudo -u www-data php occ preview:pre-generate

Error: Call to a member function file_get_contents() on null in /lib/private/Files/Filesystem.php:712

Initial generation works fine but I’m unable to run pre-generate …

I would assume that the function is unable to access a file or read its content. Have you tried to narrow-down the problem by using the verbosity switch or use the --path option?

Weird behavior ! I ran occ files:scan-app-data that ran for an hour and ended in a big red error, ran it again and it went through whithout errors.

Then I ran occ preview:pre-generate again and no more mistakes … it’s running fine now !

1 Like