Page MenuHomePhabricator

Fatal error when running conduit.query
Closed, ResolvedPublic

Description

When running conduit.query we get this fatal error:

2015/11/12 10:51:05 [error] 5344#0: *1091522 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Call to a member function applyConfigurationToFields() on null in /usr/lib/phabricator/src/applications/transactions/editengine/PhabricatorEditEngine.php on line 198
PHP message: >>> UNRECOVERABLE FATAL ERROR <<<

Call to a member function applyConfigurationToFields() on null

/usr/lib/phabricator/src/applications/transactions/editengine/PhabricatorEditEngine.php:198


┻━┻ ︵ ¯\_(ツ)_/¯ ︵ ┻━┻" while reading response header from upstream, client: 10.146.12.142, server: phabricator.[COMPANY].com, request: "POST /api/conduit.query HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "phabricator.[COMPANY].com"

Step(s) to reproduce:

$ echo '{}' | arc call-conduit --conduit-uri https://secure.phabricator.com/ conduit.query --trace
libphutil loaded from '/home/mikn87/.local/lib/libphutil/src'.
arcanist loaded from '/home/mikn87/.local/lib/arcanist/src'.
Config: Reading user configuration file "/home/mikn87/.arcrc"...
Config: Did not find system configuration at "/etc/arcconfig".
Working Copy: No candidate locations for .arcconfig from this working directory.
Working Copy: Path "/home/mikn87" is not in any working copy.
>>> [0] <conduit> user.whoami() <bytes = 117>
>>> [1] <http> https://secure.phabricator.com/api/user.whoami
<<< [1] <http> 758,863 us
<<< [0] <conduit> 759,192 us
>>> [2] <conduit> conduit.query() <bytes = 117>
>>> [3] <http> https://secure.phabricator.com/api/conduit.query
<<< [3] <http> 237,766 us
<<< [2] <conduit> 237,929 us

[2015-11-12 15:17:51] EXCEPTION: (HTTPFutureHTTPResponseStatus) [HTTP/500] Internal Server Error
>>> UNRECOVERABLE FATAL ERROR <<<

Call to a member function applyConfigurationToFields() on a non-object

/core/lib/phabricator/src/applications/transactions/editengine/PhabricatorEditEngine.php:198


┻━┻ ︵ ¯\_(ツ)_/¯ ︵ ┻━┻ at [<phutil>/src/future/http/BaseHTTPFuture.php:339]
arcanist(head=master, ref.master=9c056c5cc887), phutil(head=master, ref.master=c72eb747e706)
  #0 BaseHTTPFuture::parseRawHTTPResponse(string) called at [<phutil>/src/future/http/HTTPSFuture.php:415]
  #1 HTTPSFuture::isReady() called at [<phutil>/src/future/Future.php:37]
  #2 Future::resolve(NULL) called at [<phutil>/src/future/FutureProxy.php:34]
  #3 FutureProxy::resolve() called at [<phutil>/src/conduit/ConduitClient.php:58]
  #4 ConduitClient::callMethodSynchronous(string, array) called at [<arcanist>/src/workflow/ArcanistCallConduitWorkflow.php:82]
  #5 ArcanistCallConduitWorkflow::run() called at [<arcanist>/scripts/arcanist.php:382]

Event Timeline

mikn updated the task description. (Show Details)
mikn added a project: Conduit.
mikn updated the task description. (Show Details)
mikn added a subscriber: mikn.
mikn updated the task description. (Show Details)
mikn updated the task description. (Show Details)

The repro case is against this install. :)

Our install is on the same version.

@mikn The question remains, what version of Phabricator are you on. This install is not kept at HEAD.

Yes, of course. I apologise. We updated to head today.

epriestley triaged this task as Normal priority.
epriestley added a project: ApplicationEditor.

(I'm pretty sure this is us, but want to be sure)