We currently have no unit tests for the file transform functions, which can fail if no default fallback image is present. We should add some.
arcanist 146693307f607ffa93dfb99599f1989d5b27e03d (20 Apr 2017)
libphutil 6fe33623cda69b7814a0767866400e09f4eadf3a (13 Apr 2017)
After I upgraded Phabricator to the latest version and ran './bin/storage upgrade' command.
I get the following error.
Applying patch "phabricator:20161005.conpherence.image.2.php" to host "localhost:3306"... [2017-04-21 13:54:19] EXCEPTION: (FilesystemException) File system entity '/opt/phabricator/apps/phabricator/htdocs/resources/builtin/image-400x400.png' does not exist. at [<phutil>/src/filesystem/Filesystem.php:1039] arcanist(head=master, ref.master=146693307f60), phabricator(head=master, ref.master=ed9afa18cca5, custom=1), phutil(head=master, ref.master=6fe33623cda6)
#0 Filesystem::assertExists(string) called at [<phutil>/src/filesystem/Filesystem.php:37] #1 Filesystem::readFile(string) called at [<phabricator>/src/applications/files/transform/PhabricatorFileThumbnailTransform.php:226] #2 PhabricatorFileThumbnailTransform::getDefaultTransform(PhabricatorFile) called at [<phabricator>/src/applications/files/transform/PhabricatorFileTransform.php:27] #3 PhabricatorFileTransform::executeTransform(PhabricatorFile) called at [<phabricator>/resources/sql/autopatches/20161005.conpherence.image.2.php:25] #4 require_once(string) called at [<phabricator>/src/infrastructure/storage/management/PhabricatorStorageManagementAPI.php:285] #5 PhabricatorStorageManagementAPI::applyPatchPHP(string) called at [<phabricator>/src/infrastructure/storage/management/PhabricatorStorageManagementAPI.php:241] #6 PhabricatorStorageManagementAPI::applyPatch(PhabricatorStoragePatch) called at [<phabricator>/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementWorkflow.php:1093] #7 PhabricatorStorageManagementWorkflow::doUpgradeSchemata(array, NULL, boolean, boolean) called at [<phabricator>/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementWorkflow.php:840] #8 PhabricatorStorageManagementWorkflow::upgradeSchemata(array, NULL, boolean, boolean) called at [<phabricator>/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementUpgradeWorkflow.php:78] #9 PhabricatorStorageManagementUpgradeWorkflow::didExecute(PhutilArgumentParser) called at [<phabricator>/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementWorkflow.php:107] #10 PhabricatorStorageManagementWorkflow::execute(PhutilArgumentParser) called at [<phutil>/src/parser/argument/PhutilArgumentParser.php:441] #11 PhutilArgumentParser::parseWorkflowsFull(array) called at [<phutil>/src/parser/argument/PhutilArgumentParser.php:333] #12 PhutilArgumentParser::parseWorkflows(array) called at [<phabricator>/scripts/sql/manage_storage.php:249]
Please help. Thanks.