Skip to content

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

Description

@newhinton

Hello Dev, ive encountered an Error which i cant solve on my own.
Im using Nextcloud 11.0.2 and php 7.0.8-0ubuntu0.16.04.3 with apache2 as the webserver.

When i start your tool from my terminal, it runs for a few seconds (no outputs are made to the console so im assuming it does at least something), and then it throws an exception. CPU usage is slightly higher than normal.

Thanks for your help, and if i can assist you further, feel free to ask!

Sorry for the missreferences, my log contained hashtags, which function i didnt knew...
The stacktrace:

An unhandled exception has been thrown:
Error: Call to a member function file_get_contents() on null in /var/www/mycloud/lib/private/Files/Filesystem.php:719
Stack trace:
0 /var/www/mycloud/lib/private/legacy/image.php(597): OC\Files\Filesystem::file_get_contents('/var/www/myclou...')
1 /var/www/mycloud/lib/private/Preview/MP3.php(80): OC_Image->loadFromFile('/var/www/myclou...')
2 /var/www/mycloud/lib/private/Preview/MP3.php(64): OC\Preview\MP3->getNoCoverThumbnail()
3 /var/www/mycloud/lib/private/Preview/GeneratorHelper.php(54): OC\Preview\MP3->getThumbnail('/files_trashbin...', 256, 256, false, Object(OC\Files\View))
4 /var/www/mycloud/lib/private/Preview/Generator.php(155): OC\Preview\GeneratorHelper->getThumbnail(Object(OC\Preview\MP3), Object(OC\Files\Node\File), 256, 256)
5 /var/www/mycloud/lib/private/Preview/Generator.php(108): OC\Preview\Generator->getMaxPreview(Object(OC\Files\SimpleFS\SimpleFolder), Object(OC\Files\Node\File), 'audio/mpeg')
6 /var/www/mycloud/lib/private/PreviewManager.php(182): OC\Preview\Generator->getPreview(Object(OC\Files\Node\File), 32, 32, true, 'fill', 'audio/mpeg')
7 /var/www/mycloud/apps/previewgenerator/lib/Command/PreGenerate.php(158): OC\PreviewManager->getPreview(Object(OC\Files\Node\File), 32, 32, true)
8 /var/www/mycloud/apps/previewgenerator/lib/Command/PreGenerate.php(181): OCA\PreviewGenerator\Command\PreGenerate->processFile(Object(OC\Files\Node\File))
9 /var/www/mycloud/apps/previewgenerator/lib/Command/PreGenerate.php(183): OCA\PreviewGenerator\Command\PreGenerate->processFolder(Object(OC\Files\Node\Folder))
10 /var/www/mycloud/apps/previewgenerator/lib/Command/PreGenerate.php(183): OCA\PreviewGenerator\Command\PreGenerate->processFolder(Object(OC\Files\Node\Folder))
11 /var/www/mycloud/apps/previewgenerator/lib/Command/PreGenerate.php(183): OCA\PreviewGenerator\Command\PreGenerate->processFolder(Object(OC\Files\Node\Folder))
12 /var/www/mycloud/apps/previewgenerator/lib/Command/PreGenerate.php(183): OCA\PreviewGenerator\Command\PreGenerate->processFolder(Object(OC\Files\Node\Folder))
13 /var/www/mycloud/apps/previewgenerator/lib/Command/PreGenerate.php(183): OCA\PreviewGenerator\Command\PreGenerate->processFolder(Object(OC\Files\Node\Folder))
14 /var/www/mycloud/apps/previewgenerator/lib/Command/PreGenerate.php(183): OCA\PreviewGenerator\Command\PreGenerate->processFolder(Object(OC\Files\Node\Folder))
15 /var/www/mycloud/apps/previewgenerator/lib/Command/PreGenerate.php(183): OCA\PreviewGenerator\Command\PreGenerate->processFolder(Object(OC\Files\Node\Folder))
16 /var/www/mycloud/apps/previewgenerator/lib/Command/PreGenerate.php(150): OCA\PreviewGenerator\Command\PreGenerate->processFolder(Object(OC\Files\Node\Folder))
17 /var/www/mycloud/apps/previewgenerator/lib/Command/PreGenerate.php(113): OCA\PreviewGenerator\Command\PreGenerate->processRow(Array)
18 /var/www/mycloud/apps/previewgenerator/lib/Command/PreGenerate.php(91): OCA\PreviewGenerator\Command\PreGenerate->startProcessing()
19 /var/www/mycloud/3rdparty/symfony/console/Command/Command.php(256): OCA\PreviewGenerator\Command\PreGenerate->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
20 /var/www/mycloud/3rdparty/symfony/console/Application.php(818): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
21 /var/www/mycloud/3rdparty/symfony/console/Application.php(186): Symfony\Component\Console\Application->doRunCommand(Object(OCA\PreviewGenerator\Command\PreGenerate), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
22 /var/www/mycloud/3rdparty/symfony/console/Application.php(117): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
23 /var/www/mycloud/lib/private/Console/Application.php(169): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
24 /var/www/mycloud/console.php(90): OC\Console\Application->run()
25 /var/www/mycloud/occ(11): require_once('/var/www/myclou...')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions