Exception: Too few arguments to function OC\Files\Storage\Wrapper\Wrapper::file_put_contents(), 1 passed in /var/www/nextcloud/lib/private/Files/View.php on line 1161 and exactly 2 expected
/var/www/nextcloud/lib/private/AppFramework/App.php - line 152:
OC\AppFramework\Http\Dispatcher->dispatch(OCA\ImageCon ... {}, "convertImage")
/var/www/nextcloud/lib/private/Route/Router.php - line 308:
OC\AppFramework\App::main("OCA\ImageC ... r", "convertImage", OC\AppFramew ... {}, { action: nu ... "})
/var/www/nextcloud/lib/base.php - line 1009:
OC\Route\Router->match("/apps/imageconverter/convert")
/var/www/nextcloud/index.php - line 37:
OC::handleRequest()
The Reason is:ArgumentCountError: Too few arguments to function OC\Files\Storage\Wrapper\Wrapper::file_put_contents(), 1 passed in /var/www/nextcloud/lib/private/Files/View.php on line 1161 and exactly 2 expected
/var/www/nextcloud/lib/private/Files/View.php - line 1161:
OC\Files\Storage\Wrapper\Wrapper->file_put_contents("files/照片 20 ... g")
/var/www/nextcloud/lib/private/Files/View.php - line 696:
OC\Files\View->basicOperation("file_put_contents", "/liushui/fi ... g", [ "update","write"], null)
/var/www/nextcloud/lib/private/Files/Node/File.php - line 72:
OC\Files\View->file_put_contents("/liushui/fi ... g", null)
/var/www/nextcloud/apps/imageconverter/lib/Storage/ConvertStorage.php - line 62:
OC\Files\Node\File->putContent(null)
/var/www/nextcloud/apps/imageconverter/lib/Controller/ConvertController.php - line 59:
OCA\ImageConverter\Storage\ConvertStorage->saveNewImage(2244, "照片 20-03-01 21-41-38 0332.jpg", null)
/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 169:
OCA\ImageConverter\Controller\ConvertController->convertImage("照片 20-03-01 ... c", 2244, 100)
/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 100:
OC\AppFramework\Http\Dispatcher->executeController(OCA\ImageCon ... {}, "convertImage")
/var/www/nextcloud/lib/private/AppFramework/App.php - line 152:
OC\AppFramework\Http\Dispatcher->dispatch(OCA\ImageCon ... {}, "convertImage")
/var/www/nextcloud/lib/private/Route/Router.php - line 308:
OC\AppFramework\App::main("OCA\ImageC ... r", "convertImage", OC\AppFramew ... {}, { action: nu ... "})
/var/www/nextcloud/lib/base.php - line 1009:
OC\Route\Router->match("/apps/imageconverter/convert")
/var/www/nextcloud/index.php - line 37:
OC::handleRequest()_
By the way,the Nextcloud cannot show the heic preview either,but my ImageMagick work works well when I tried to convert *.heic to *.jpeg in commond line.the php-imagick also installed but I don't know if it works well.