Comments (13)
The original issue was: https://drupal.org/node/1961648
Have you tried to reproduce this with the latest code in the master branch? I think site-install works with D8 now.
from drush.
Yeah, I tried a minute ago, and I got
PHP Fatal error: Unsupported operand types in /usr/local/bin/drush8/includes/sitealias.inc on line 1517
PS: Did I clone the right thing? I did git clone https://github.com/drush-ops/drush drush8
from drush.
Just make sure that you're using the master branch (git checkout master); if you weren't, though, then you should receive an error that Drupal 8 is not supported, so seems you've probably got the right branch.
from drush.
I just ran a drush site-install followed by a drush status, and both commands worked fine. I didn't do any further testing than this, though.
from drush.
Hi,
I issued the command time drush8 si standard --account-mail=[email protected] --account-name=dev --db-su=root --db-su-pw=drakkar --db-url=mysql://d8testbeduser@d8testbedpass:localhost/d8testbed --site-name="dev env" and again I got
PHP Fatal error: Unsupported operand types in /usr/local/bin/drush8/includes/sitealias.inc on line 1517
This is my .git/config (did I get the right thing?)
cat .git/config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
fetch = +refs/heads/:refs/remotes/origin/
url = https://github.com/drush-ops/drush
[branch "master"]
remote = origin
merge = refs/heads/maste
from drush.
Drush version : 6.0-dev
From your initial output, it looks like you're on 6.x
branch. Here's what I have on master:
➜ composer-yaml-parser git:(master) ✗ drush --version
Drush Version : 7.0-dev
I think this is safe to close? If you have another issue on the correct branch, then I imagine it would make more sense to open another :)
Cheers!
EDIT: It's always good to start off a bug report with a sanity check like this -- for both you and the person trying to help you out:
drush --version
git log --oneline --n1 # print log of recent commit
from drush.
drush8 --version
Drush Version : 7.0-dev
git log --oneline -n1
f3bba6e Merge pull request #90 from jeff-h/patch-1
from drush.
I'm going to close as a duplicate of #123.
from drush.
It seems that the other dup lacked errors. I also see that your error involves includes/sitealias.inc
.
To try to distinguish a little better @kartagis, perhaps you could temporarily remove your aliases (or rename the whole ~/.drush folder) to try to narrow down the error. If it goes away without your aliases, then that's incredibly useful.
from drush.
I don't use aliases for this particular folder.
from drush.
@patcon @greg-1-anderson I see that this issue references to a few issues, such as #123 but I highly doubt that's even similar, as I'm not on PHP 5.5.
from drush.
This happens if the --db-url is malformed:
--db-url=mysql://user:password@localhost:dbname WRONG
--db-url=mysql://user:password@localhost/dbname RIGHT
or localhost:port. The documentation could be clearer.
from drush.
I was (wrongly) doing user@password:localhost/dbname instead of user:password@localhost/dbname. I found that out a bit late. Thanks though.
from drush.
Related Issues (20)
- archive:dump complains about database credentials in settings.php when using SQLite HOT 1
- Config export for Search API index with an aggregated field separator keeps adding additional blank lines HOT 2
- Allow using rsync from Docker container on the server HOT 1
- bash completion hangs/breaks on drush generate HOT 1
- Drush commands throw TypeError: ucfirst() when $databases array is empty HOT 2
- How drush database update works? HOT 2
- Drush commands for workspaces HOT 2
- Queue items don't have "item_id" if the queue is stored in Redis HOT 2
- PHP Fatal error: Trait "Drush\Commands\AutowireTrait" not found in DevelCommands.php HOT 4
- Add option to update site UUID on config import HOT 4
- drush queue:run referencing not existing hooks
- Add a command to generate batch service HOT 1
- Add support for symfony 7 in 13.x and minimum version of PHP 8.3
- Database update step for `drush deploy` behaves differently than `drush updb --no-cache-clear` HOT 2
- 'Generate generator' command is missing in Drush 12.5+ (present in 13)
- Stop supporting and testing the Windows OS
- Environment variables ignored if the value provided in the configuration file HOT 2
- DrupalFinder drush replacement PR did not fully replaced it in Preflight HOT 3
- Fatal error on cron command help HOT 2
- Twig compile - provide searchpaths argument
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drush.