+1
Fixed

error on make_thumbs.php

marko 11 months ago updated by Vlad R 4 days ago 6

Hi..

When running make_thumbs.php it seems that when it comes to invalid png file the script stops... it should be better to skip that file and continue to other files..

this is what I get when it tries to generate thumbnail on invalid png file:

Fatal error: Uncaught Error: Call to a member function getWidth() on bool in /vision/web/F/system/classes/vendor/FileRun/Thumbs/Make.php:40
Stack trace:
#0 /vision/web/F/system/classes/vendor/FileRun/Thumbs/Make.php(87): FileRun\Thumbs\Make::needsProcessing(Array, Array)
#1 /vision/web/F/system/modules/fileman/sections/cli/php/thumbs.php(118): FileRun\Thumbs\Make::make(Array, Array)
#2 /vision/web/F/index.php(191): unknown()
#3 /vision/web/F/cron/make_thumbs.php(8): unknown()
#4 {main}
thrown in /vision/web/F/system/classes/vendor/FileRun/Thumbs/Make.php on line 40

Answer

+1
Answer
Started

If you want to fix this problem before the next FileRun update gets released, please replace the file "system/classes/vendor/FileRun/Thumbs/Make.php" in your FileRun installation with this one.

This patch applies only to FileRun version 2019.12.25.

Under review

Thank you for pointing it out, we will improve this.

Had the same problem:

176424 /Volumes/Armazenamento/Outros/BACKUP/Macbook Pro (12:20:19)/Movies/Motion Templates.localized/Generators.localized/24B7A5F0-480F-4705-94CD-6178F2DECC7D.localized/0D996749-060C-4002-8CD7-9BDC9DBDC468.localized/large.png PHP Fatal error: Uncaught Error: Call to a member function getWidth() on boolean in /Library/Server/Web/Data/Sites/FileRun/system/classes/vendor/FileRun/Thumbs/Make.php:40

Stack trace:

#0 /Library/Server/Web/Data/Sites/FileRun/system/classes/vendor/FileRun/Thumbs/Make.php(87): FileRun\Thumbs\Make::needsProcessing(Array, Array)

#1 /Library/Server/Web/Data/Sites/FileRun/system/modules/fileman/sections/cli/php/thumbs.php(118): FileRun\Thumbs\Make::make(Array, Array)

#2 /Library/Server/Web/Data/Sites/FileRun/index.php(191): unknown()

#3 /Library/Server/Web/Data/Sites/FileRun/cron/make_thumbs.php(8): unknown()

#4 {main}

thrown in /Library/Server/Web/Data/Sites/FileRun/system/classes/vendor/FileRun/Thumbs/Make.php on line 40

servidor:~ administrador$

+1
Answer
Started

If you want to fix this problem before the next FileRun update gets released, please replace the file "system/classes/vendor/FileRun/Thumbs/Make.php" in your FileRun installation with this one.

This patch applies only to FileRun version 2019.12.25.

Thanks! I just updated the file, after running the command i'll post the picture of the result

I had this issue today:

123337 /Volumes/Armazenamento/Outros/PESSOAL/OUTROS/Rebecca Porto/BACKUP/Music/iTunes/iTunes Media/Voice Memos/20160505 104357.m4a PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 33554464 bytes) in /Library/Server/Web/Data/Sites/FileRun/system/classes/getid3/getid3.php on line 1910




Fixed

This bug has been fixed by the FileRun software update that was just released.