Coder Social home page Coder Social logo

Cannot do site-install about drush HOT 13 CLOSED

drush-ops avatar drush-ops commented on May 12, 2024
Cannot do site-install

from drush.

Comments (13)

greg-1-anderson avatar greg-1-anderson commented on May 12, 2024

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.

kartagis avatar kartagis commented on May 12, 2024

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.

greg-1-anderson avatar greg-1-anderson commented on May 12, 2024

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.

greg-1-anderson avatar greg-1-anderson commented on May 12, 2024

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.

kartagis avatar kartagis commented on May 12, 2024

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.

patcon avatar patcon commented on May 12, 2024

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.

kartagis avatar kartagis commented on May 12, 2024

drush8 --version
Drush Version : 7.0-dev
git log --oneline -n1
f3bba6e Merge pull request #90 from jeff-h/patch-1

from drush.

greg-1-anderson avatar greg-1-anderson commented on May 12, 2024

I'm going to close as a duplicate of #123.

from drush.

patcon avatar patcon commented on May 12, 2024

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.

kartagis avatar kartagis commented on May 12, 2024

I don't use aliases for this particular folder.

from drush.

kartagis avatar kartagis commented on May 12, 2024

@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.

John-B avatar John-B commented on May 12, 2024

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.

kartagis avatar kartagis commented on May 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.