Skip to content

Failed opening required 'phar:///usr/local/bin/wp/vendor/wp-cli/server-command/router.php #13

@miya0001

Description

@miya0001

I got an error with the nightly build like following.

$ ./wp server --host=0.0.0.0 --port=8080 --docroot=www
PHP 7.0.17 Development Server started at Wed Mar 29 19:48:42 2017
Listening on http://0.0.0.0:8080
Document root is /Users/miyauchi/Desktop/wp/www
Press Ctrl-C to quit.
[Wed Mar 29 19:48:46 2017] PHP Warning:  Unknown: failed to open stream: phar error: invalid url or non-existent phar "phar:///Users/miyauchi/Desktop/wp/wp/vendor/wp-cli/server-command/router.php" in Unknown on line 0
[Wed Mar 29 19:48:46 2017] PHP Fatal error:  Unknown: Failed opening required 'phar:///Users/miyauchi/Desktop/wp/wp/vendor/wp-cli/server-command/router.php' (include_path='.:') in Unknown on line 0

My installation method is as follows.

$ curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli-nightly.phar
$ mv wp-cli-nightly.phar wp
$ chmod 755 wp
$ ./wp --info
PHP binary:	/usr/local/Cellar/php70/7.0.17_9/bin/php
PHP version:	7.0.17
php.ini used:	/usr/local/etc/php/7.0/php.ini
WP-CLI root dir:	phar://wp-cli.phar
WP-CLI packages dir:	/Users/miyauchi/.wp-cli/packages/
WP-CLI global config:	/Users/miyauchi/.wp-cli/config.yml
WP-CLI project config:	
WP-CLI version:	1.2.0-alpha-e0ad2a5

But current master from GitHub worked fine.

I am sorry that I tried to solve the problem but I couldn't. 😓

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions