diff --git a/src/aphront/console/plugin/xhprof/api/DarkConsoleXHProfPluginAPI.php b/src/aphront/console/plugin/xhprof/api/DarkConsoleXHProfPluginAPI.php index c17bf381d5..67791d6f8e 100644 --- a/src/aphront/console/plugin/xhprof/api/DarkConsoleXHProfPluginAPI.php +++ b/src/aphront/console/plugin/xhprof/api/DarkConsoleXHProfPluginAPI.php @@ -66,6 +66,10 @@ final class DarkConsoleXHProfPluginAPI { $data = serialize($data); $file_class = 'PhabricatorFile'; PhutilSymbolLoader::loadClass($file_class); + + // Since these happen on GET we can't do guarded writes. + $unguarded = AphrontWriteGuard::beginScopedUnguardedWrites(); + $file = call_user_func( array($file_class, 'newFromFileData'), $data,