Ubuntu Pastebin

Paste from composer error at Mon, 30 Oct 2017 16:56:41 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
boo test $ composer init

                                            
  Welcome to the Composer config generator  
                                            


This command will guide you through creating your composer.json config.

Package name (<vendor>/<name>) [boo/test]: 
Description []: 
Author [Author <abc@abc.com>, n to skip]: 
Minimum Stability []: 
Package Type (e.g. library, project, metapackage, composer-plugin) []: 
License []: 

Define your dependencies.

Would you like to define your dependencies (require) interactively [yes]? 
Search for a package: 
Would you like to define your dev dependencies (require-dev) interactively [yes]? 
Search for a package: 

Fatal error: Uncaught Error: Call to undefined function Composer\Json\json_encode() in /usr/share/php/Composer/Json/JsonFile.php:199
Stack trace:
#0 /usr/share/php/Composer/Command/InitCommand.php(119): Composer\Json\JsonFile::encode(Array)
#1 /usr/share/php/Symfony/Component/Console/Command/Command.php(259): Composer\Command\InitCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#2 /usr/share/php/Symfony/Component/Console/Application.php(844): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 /usr/share/php/Symfony/Component/Console/Application.php(192): Symfony\Component\Console\Application->doRunCommand(Object(Composer\Command\InitCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 /usr/share/php/Composer/Console/Application.php(245): Symfony\Component\Console\Application->do in /usr/share/php/Composer/Json/JsonFile.php on line 199
boo test $ 
Download as text