-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Runserver can't find runserver-prepend.php when using Phar #2090
Comments
I'm seeing a similar error even when not using the phar. Hope someone can debug this.
|
I just fixed my error which is in a different file than yours. Perhaps you can try the unstable phar and see if your error is now fixed. Save http://files.drush.org/drush-unstable.phar to your host and give it a try. |
This came up on Drupal Stack Exchange: http://drupal.stackexchange.com/questions/197480/drush-8-raises-an-error-while-running-drush-runserver |
Works fine as long as a matching file with the .phar extension exists. I don't see anything in the PHP Phar docs that says the filename has to end in ".phar" (in fact there are examples suggesting otherwise), but given the normal state of PHP docs that doesn't surprise me. |
@athompso: Thanks for diagnosing that and finding the workaround. I think it might be better if we explicitly check to see that we are running from a .phar, and, if so, copy the prepend file out to a real file in the filesystem, so the .phar name and location do not have to be so exacting. |
Not sure its related, but once I rename Here is the actual error:
|
My problem was using an older version of xdebug. I tried with PHP7 and no xdebug and no more Too many files error. But I'm still seeing errors under the conditions described above. Hopefully someone else can help reproduce and fix this. |
I'm getting this fatal error in
|
Haven't tried to reproduce @jhedstrom's problem, but this sort of message can often happen if you |
I had the same issue, updating to the latest Drush version fixed it, following this guide: http://drupal.stackexchange.com/questions/197480/drush-8-raises-an-error-while-running-drush-runserver/197508#197508 Using Ubuntu, my symlink (the last command) in stead was |
Not clear if bug is still present. If so, please reopen. |
It does not work with the version of Drush you get by following the standard install procedure here: It works if you install Drush via composer, using the procedure outlined on drupal.stackexchange.com. Perhaps it is not a bug, as much as a need for the documentation to be updated to use Composer for the installation? |
Since my latest install of drush via the phar file I am no longer able to start a development server from drush as I get this error anytime a request comes in:
Installation via composer seems to be happy as a clam. For the time being, it looks like I will use drush via
composer global require drush/drush
but I know that somewhere down the road I will likely run into a problem (as I did having Drush and the Laravel installer living side-by-side in my home .composer dir). Any ideas why the phar file is having an issue loading the server prepend file?The text was updated successfully, but these errors were encountered: