Skip to content

Instantly share code, notes, and snippets.

@adsc-cloudtec
Created August 18, 2017 12:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adsc-cloudtec/c80b7e51817b3602d86a8a1e241fa300 to your computer and use it in GitHub Desktop.
Save adsc-cloudtec/c80b7e51817b3602d86a8a1e241fa300 to your computer and use it in GitHub Desktop.
12:54:37 ERROR [console] Error thrown while running command "sulu:build dev -vvv". Message: "Call to a member function getProperties() on null"
[
"error" => Error {
#message: "Call to a member function getProperties() on null",
#code: 0,
#file: "/vagrant/vendor/sulu/sulu/src/Sulu/Component/Content/Document/Subscriber/StructureSubscriber.php",
#line: 319,
trace: {
/vagrant/vendor/sulu/sulu/src/Sulu/Component/Content/Document/Subscriber/StructureSubscriber.php:319: {
: ,
: foreach ($metadata->getProperties() as $propertyName => $structureProperty) {,
: if ($propertyName === TitleSubscriber::PROPERTY_NAME) {
},
/vagrant/vendor/sulu/sulu/src/Sulu/Component/Content/Document/Subscriber/StructureSubscriber.php:230: {
: ,
: $this->mapContentToNode($document, $node, $locale, $options['ignore_required']);,
: ,
arguments: {
$document: Sulu\Bundle\ContentBundle\Document\HomeDocument {#1 …},
$node: Jackalope\Node { …},
$locale: "de",
$ignoreRequired: true
}
},
Sulu\Component\Content\Document\Subscriber\StructureSubscriber->saveStructureData(): {},
/vagrant/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:212: {
: },
: call_user_func($listener, $event, $eventName, $this);,
: },
arguments: {
$function_name: [ …2],
...$parameters: {
Sulu\Component\DocumentManager\Event\PersistEvent {#2 …},
"sulu_document_manager.persist",
Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher { …}
}
}
},
/vagrant/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:44: {
: if ($listeners = $this->getListeners($eventName)) {,
: $this->doDispatch($listeners, $eventName, $event);,
: },
arguments: {
$listeners: [ …42],
$eventName: "sulu_document_manager.persist",
$event: Sulu\Component\DocumentManager\Event\PersistEvent {#2 …}
}
},
/vagrant/vendor/sulu/document-manager/lib/DocumentManager.php:69: {
: $event = new Event\PersistEvent($document, $locale, $options);,
: $this->eventDispatcher->dispatch(Events::PERSIST, $event);,
: },
arguments: {
$eventName: "sulu_document_manager.persist",
$event: Sulu\Component\DocumentManager\Event\PersistEvent {#2 …}
}
},
/vagrant/vendor/sulu/sulu/src/Sulu/Component/Webspace/Document/Initializer/WebspaceInitializer.php:123: {
: ,
: $this->documentManager->persist($homeDocument, $webspaceLocale, $persistOptions);,
: $this->documentManager->publish($homeDocument, $webspaceLocale);,
arguments: {
$document: Sulu\Bundle\ContentBundle\Document\HomeDocument {#1 …},
$locale: "de",
$options: [ …16]
}
},
/vagrant/vendor/sulu/sulu/src/Sulu/Component/Webspace/Document/Initializer/WebspaceInitializer.php:73: {
: foreach ($webspaces as $webspace) {,
: $this->initializeWebspace($output, $webspace);,
: },
arguments: {
$output: Symfony\Component\Console\Output\ConsoleOutput {#3 …},
$webspace: Sulu\Component\Webspace\Webspace { …}
}
},
/vagrant/vendor/sulu/sulu/src/Sulu/Bundle/DocumentManagerBundle/Initializer/Initializer.php:61: {
: $initializer = $this->container->get($initializerId);,
: $initializer->initialize($output, $purge);,
: },
arguments: {
$output: Symfony\Component\Console\Output\ConsoleOutput {#3 …},
$purge: false
}
},
/vagrant/vendor/sulu/sulu/src/Sulu/Bundle/DocumentManagerBundle/Command/InitializeCommand.php:87: {
: ,
: $this->initializer->initialize($output, $purge);,
: },
arguments: {
$output: Symfony\Component\Console\Output\ConsoleOutput {#3 …},
$purge: false
}
},
/vagrant/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:264: {
: } else {,
: $statusCode = $this->execute($input, $output);,
: },
arguments: {
$input: Symfony\Component\Console\Input\ArgvInput {#4 …},
$output: Symfony\Component\Console\Output\ConsoleOutput {#3 …}
}
},
/vagrant/vendor/sulu/sulu/src/Sulu/Bundle/CoreBundle/Build/SuluBuilder.php:71: {
: $this->output->getFormatter()->setIndentLevel(2);,
: $res = $command->run($input, $this->output);,
: $this->output->writeln('');,
arguments: {
$input: Symfony\Component\Console\Input\ArrayInput { …},
$output: Symfony\Component\Console\Output\ConsoleOutput {#3 …}
}
},
/vagrant/vendor/sulu/sulu/src/Sulu/Bundle/CoreBundle/Build/PhpcrBuilder.php:52: {
: // Initialize Sulu node types,
: $this->execCommand('Initializing Sulu document manager', $command, $options);,
: },
arguments: {
$description: "Initializing Sulu document manager",
$command: Sulu\Bundle\DocumentManagerBundle\Command\InitializeCommand { …},
$args: [ …1]
}
},
/vagrant/vendor/massive/build-bundle/Command/BuildCommand.php:188: {
: $this->output->getFormatter()->setIndentLevel(1);,
: $builder->build();,
: }
},
/vagrant/vendor/massive/build-bundle/Command/BuildCommand.php:122: {
: $this->output->writeln('');,
: $this->runBuilders($builders);,
: ,
arguments: {
$builders: [ …8]
}
},
/vagrant/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:264: {
: } else {,
: $statusCode = $this->execute($input, $output);,
: },
arguments: {
$input: Symfony\Component\Console\Input\ArgvInput {#4 …},
$output: Symfony\Component\Console\Output\ConsoleOutput {#3 …}
}
},
/vagrant/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:892: {
: if ($event->commandShouldRun()) {,
: $exitCode = $command->run($input, $output);,
: } else {,
arguments: {
$input: Symfony\Component\Console\Input\ArgvInput {#4 …},
$output: Symfony\Component\Console\Output\ConsoleOutput {#3 …}
}
},
/vagrant/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:228: {
: $this->runningCommand = $command;,
: $exitCode = $this->doRunCommand($command, $input, $output);,
: $this->runningCommand = null;,
arguments: {
$command: Sulu\Bundle\CoreBundle\CommandOptional\SuluBuildCommand { …},
$input: Symfony\Component\Console\Input\ArgvInput {#4 …},
$output: Symfony\Component\Console\Output\ConsoleOutput {#3 …}
}
},
/vagrant/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:81: {
: ,
: return parent::doRun($input, $output);,
: },
arguments: {
$input: Symfony\Component\Console\Input\ArgvInput {#4 …},
$output: Symfony\Component\Console\Output\ConsoleOutput {#3 …}
}
},
/vagrant/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:130: {
: $e = null;,
: $exitCode = $this->doRun($input, $output);,
: } catch (\Exception $x) {,
arguments: {
$input: Symfony\Component\Console\Input\ArgvInput {#4 …},
$output: Symfony\Component\Console\Output\ConsoleOutput {#3 …}
}
},
/vagrant/app/console:30: {
: $application = new Application($kernel);,
: $application->run($input);,
: ,
arguments: {
$input: Symfony\Component\Console\Input\ArgvInput {#4 …}
}
}
}
},
"command" => "sulu:build dev -vvv",
"message" => "Call to a member function getProperties() on null"
]
[]
12:54:37 DEBUG [event] Notified event "console.error" to listener "Symfony\Bundle\SwiftmailerBundle\EventListener\EmailSenderListener::onException".
[
"event" => "console.error",
"listener" => "Symfony\Bundle\SwiftmailerBundle\EventListener\EmailSenderListener::onException"
]
[]
12:54:37 DEBUG [event] Notified event "console.error" to listener "Symfony\Component\Console\EventListener\ErrorListener::onConsoleError".
[
"event" => "console.error",
"listener" => "Symfony\Component\Console\EventListener\ErrorListener::onConsoleError"
]
[]
12:54:37 ERROR [console] Command "sulu:build dev -vvv" exited with code "1"
[
"command" => "sulu:build dev -vvv",
"code" => 1
]
[]
[Symfony\Component\Debug\Exception\FatalThrowableError]
Call to a member function getProperties() on null
Exception trace:
() at /vagrant/vendor/sulu/sulu/src/Sulu/Component/Content/Document/Subscriber/StructureSubscriber.php:319
Sulu\Component\Content\Document\Subscriber\StructureSubscriber->mapContentToNode() at /vagrant/vendor/sulu/sulu/src/Sulu/Component/Content/Document/Subscriber/StructureSubscriber.php:230
Sulu\Component\Content\Document\Subscriber\StructureSubscriber->saveStructureData() at n/a:n/a
call_user_func() at /vagrant/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:212
Symfony\Component\EventDispatcher\EventDispatcher->doDispatch() at /vagrant/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:44
Symfony\Component\EventDispatcher\EventDispatcher->dispatch() at /vagrant/vendor/sulu/document-manager/lib/DocumentManager.php:69
Sulu\Component\DocumentManager\DocumentManager->persist() at /vagrant/vendor/sulu/sulu/src/Sulu/Component/Webspace/Document/Initializer/WebspaceInitializer.php:123
Sulu\Component\Webspace\Document\Initializer\WebspaceInitializer->initializeWebspace() at /vagrant/vendor/sulu/sulu/src/Sulu/Component/Webspace/Document/Initializer/WebspaceInitializer.php:73
Sulu\Component\Webspace\Document\Initializer\WebspaceInitializer->initialize() at /vagrant/vendor/sulu/sulu/src/Sulu/Bundle/DocumentManagerBundle/Initializer/Initializer.php:61
Sulu\Bundle\DocumentManagerBundle\Initializer\Initializer->initialize() at /vagrant/vendor/sulu/sulu/src/Sulu/Bundle/DocumentManagerBundle/Command/InitializeCommand.php:87
Sulu\Bundle\DocumentManagerBundle\Command\InitializeCommand->execute() at /vagrant/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:264
Symfony\Component\Console\Command\Command->run() at /vagrant/vendor/sulu/sulu/src/Sulu/Bundle/CoreBundle/Build/SuluBuilder.php:71
Sulu\Bundle\CoreBundle\Build\SuluBuilder->execCommand() at /vagrant/vendor/sulu/sulu/src/Sulu/Bundle/CoreBundle/Build/PhpcrBuilder.php:52
Sulu\Bundle\CoreBundle\Build\PhpcrBuilder->build() at /vagrant/vendor/massive/build-bundle/Command/BuildCommand.php:188
Massive\Bundle\BuildBundle\Command\BuildCommand->runBuilders() at /vagrant/vendor/massive/build-bundle/Command/BuildCommand.php:122
Massive\Bundle\BuildBundle\Command\BuildCommand->execute() at /vagrant/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:264
Symfony\Component\Console\Command\Command->run() at /vagrant/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:892
Symfony\Component\Console\Application->doRunCommand() at /vagrant/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:228
Symfony\Component\Console\Application->doRun() at /vagrant/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:81
Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /vagrant/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:130
Symfony\Component\Console\Application->run() at /vagrant/app/console:30
sulu:build [-D|--nodeps] [--destroy] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command> [<target>]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment