Page MenuHomePhabricator

PhabricatorPasteTestDataGenerator: Call to a member function getPHID() on null
Closed, ResolvedPublic

Description

vagrant@phabricator:/usr/src/phabricator$ ./bin/lipsum generate
These are the types of data you can generate:
	PhabricatorDifferentialRevisionTestDataGenerator
	PhabricatorFileTestDataGenerator
	PhabricatorManiphestTaskTestDataGenerator
	PhabricatorPasteTestDataGenerator
	PhabricatorPeopleTestDataGenerator
	PhabricatorPholioMockTestDataGenerator
	PhabricatorProjectTestDataGenerator


    Are you sure you want to generate lots of test data? [y/N] y

GENERATING: PhabricatorDifferentialRevisionTestDataGenerator, PhabricatorFileTestDataGenerator, PhabricatorManiphestTaskTestDataGenerator, PhabricatorPasteTestDataGenerator, PhabricatorPeopleTestDataGenerator, PhabricatorPholioMockTestDataGenerator, PhabricatorProjectTestDataGenerator
PHP Fatal error:  Call to a member function getPHID() on a non-object in /usr/src/phabricator/src/applications/lipsum/generator/PhabricatorTestDataGenerator.php on line 23

Fatal error: Call to a member function getPHID() on a non-object in /usr/src/phabricator/src/applications/lipsum/generator/PhabricatorTestDataGenerator.php on line 23

Event Timeline

joshuaspence raised the priority of this task from to Needs Triage.
joshuaspence updated the task description. (Show Details)
joshuaspence added a project: Infrastructure.
joshuaspence added a subscriber: joshuaspence.

Ah actually, this seems to only be an issue when there are no issues in the database.

OK, after creating a user I made some progress... but now I hit this:

[2015-06-09 18:19:29] EXCEPTION: (PhabricatorApplicationTransactionStructureException) Attempting to apply a transaction (of class "PhabricatorProjectTransaction", with type "project:members") which has not been constructed correctly: Transaction has type "project:members", but that transaction type is not supported by this editor (PhabricatorProjectTransactionEditor). at [<phabricator>/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php:1194]
arcanist(head=master, ref.master=7d15b85a1bc0), phabricator(head=master, ref.master=863cd84f60d7), phutil(head=master, ref.master=92882eb9404d)
  #0 PhabricatorApplicationTransactionEditor::validateEditParameters(PhabricatorProject, array) called at [<phabricator>/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php:713]
  #1 PhabricatorApplicationTransactionEditor::applyTransactions(PhabricatorProject, array) called at [<phabricator>/src/applications/project/lipsum/PhabricatorProjectTestDataGenerator.php:38]
  #2 PhabricatorProjectTestDataGenerator::generate() called at [<phabricator>/src/applications/lipsum/management/PhabricatorLipsumGenerateWorkflow.php:80]
  #3 PhabricatorLipsumGenerateWorkflow::infinitelyGenerate(array) called at [<phabricator>/src/applications/lipsum/management/PhabricatorLipsumGenerateWorkflow.php:39]
  #4 PhabricatorLipsumGenerateWorkflow::execute(PhutilArgumentParser) called at [<phutil>/src/parser/argument/PhutilArgumentParser.php:406]
  #5 PhutilArgumentParser::parseWorkflowsFull(array) called at [<phutil>/src/parser/argument/PhutilArgumentParser.php:301]
  #6 PhutilArgumentParser::parseWorkflows(array) called at [<phabricator>/scripts/lipsum/manage_lipsum.php:21]

I have the same exception when I run ./bin/lipsum generate with the same error message.

dereckson renamed this task from Lipsum generator is broken to PhabricatorPasteTestDataGenerator: Call to a member function getPHID() on null.Nov 15 2015, 12:56 AM
dereckson added a project: Paste.
epriestley triaged this task as Low priority.