Giter Site home page Giter Site logo

gocomposer's People

Contributors

sovainfo avatar webkings-ca avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

gocomposer's Issues

File not found on Windows

Hi there!

Wanted to try out gocomposer. I get this error msg:
`Access denied - C:\USERS\USER\DESKTOP\USER\DRUPAL8/SITES
File not found - -NAME

[ErrorException]
Undefined offset: 0

gocomposer`

The problem could be that I use windows, and the path (in the program itself) uses '/' not '' ?

Thanks!

unable to run drush from script

wwwrun@jardell:/srv/www/htdocs/orcma> /srv/www/htdocs/orcma/public_html/vendor/bin/drush
PHP Warning: require(/srv/www/htdocs/orcma/public_html/vendor/bin/drush.php): failed to open stream: No such file or directory in /srv/www/htdocs/orcma/public_html/vendor/bin/drush on line 4
PHP Fatal error: require(): Failed opening required '/srv/www/htdocs/orcma/public_html/vendor/bin/drush.php' (include_path='.:/usr/share/php7:/usr/share/php7/PEAR') in /srv/www/htdocs/orcma/public_html/vendor/bin/drush on line 4
wwwrun@jardell:/srv/www/htdocs/orcma> ls -l /srv/www/htdocs/orcma/public_html/vendor/bin/drush
-rwxr-xr-x 1 wwwrun www 58 Feb 6 10:16 /srv/www/htdocs/orcma/public_html/vendor/bin/drush
wwwrun@jardell:/srv/www/htdocs/orcma>

So things fail.
But before the script runs,

ls -l vendor/bin
total 44
-rwxr-xr-x 1 wwwrun www 1181 Feb 6 10:59 dcg
> -rwxr-xr-x 1 wwwrun www 58 Feb 6 10:59 drush
and after it runs:

/vendor/bin> ls -l
total 72
lrwxrwxrwx 1 wwwrun www 33 Feb 6 10:46 composer -> ../composer/composer/bin/composer
-rwxr-xr-x 1 wwwrun www 1181 Feb 6 10:16 dcg
lrwxrwxrwx 1 wwwrun www 28 Feb 6 10:46 drupal -> ../drupal/console/bin/drupal
> -rwxr-xr-x 1 wwwrun www 0 Feb 6 10:55 drush
So drush is getting munged. It is still in vendor/drush/drush

Also, running this updated me to drupal 8.9

error after upgrade

I follow the instruction to upgrade my site, it was installed through the drupal/drupal template. after upgraded, I changed th root folder to "web" folder, . then that's what I got:

1: a blank front page with message : This page isn’t workingwww.mysite.com is currently unable to handle this request. HTTP ERROR 500

2: error I got from my server,

[25-Sep-2019 16:48:18 UTC] PHP Fatal error: Uncaught Error: Class 'Drupal\Core\DrupalKernel' not found in /home/mysite/public_html/web/index.php:16
Stack trace:
#0 {main}
thrown in /home/mysite/public_html/web/index.php on line 16
[25-Sep-2019 16:49:11 UTC] PHP Warning: include(/home/mysite/public_html/vendor/composer/../../core/lib/Drupal/Core/DrupalKernel.php): failed to open stream: No such file or directory in /home/mysite/public_html/vendor/composer/ClassLoader.php on line 444
[25-Sep-2019 16:49:11 UTC] PHP Warning: include(): Failed opening '/home/mysite/public_html/vendor/composer/../../core/lib/Drupal/Core/DrupalKernel.php' for inclusion (include_path='/home/mysite/public_html/vendor/pear/archive_tar:/home/mysite/public_html/vendor/pear/console_getopt:/home/mysite/public_html/vendor/pear/pear-core-minimal/src:/home/mysite/public_html/vendor/pear/pear_exception:.:/opt/cpanel/ea-php71/root/usr/share/pear') in /home/mysite/public_html/vendor/composer/ClassLoader.php on line 444
[25-Sep-2019 16:49:11 UTC] PHP Fatal error: Uncaught Error: Class 'Drupal\Core\DrupalKernel' not found in /home/mysite/public_html/web/index.php:16
Stack trace:
#0 {main}
thrown in /home/mysite/public_html/web/index.php on line 16

please advise for what to fix this, thanks

Unable to determine Drupal core version

I'm sorry to see this was posted and closed already, but I have the same problem. I'm on a centos server using Plesk, and I installed the plugin without any problems from a command line. I then ran "composer gocomposer" which ran through all the backups without any errors. It stopped and gave me:

[OK] Success: Your Site Files and Database have been backedup to the /backup folder..
[Exception] Unable to determine Drupal core version.
gocomposer

I ran it another time telling it to not do the backups and here is the output:

gocomposer

[root@server2 httpdocs]# composer gocomposer

Do not run Composer as root/super user! See https://getcomposer.org/root for details

GoComposer is Initializing...

=============================

Please Confirm: Composer.json file will be Created in /var/www/vhosts/mysite.com/httpdocs

(Recommended) (yes/no) [yes]:

Please Confirm: Your Original Site will be Backed up to the following directory: /var/www/vhosts/mysite.com/httpdocs/backup (Recommended) (yes/no) [yes]:

no

Please select which Settings.php file you want to use for your Environment (Recommended Version is: [0])

[0] /var/www/vhosts/mysite.com/httpdocs/sites/default/settings.php

0

You have just selected: /var/www/vhosts/mysite.com/httpdocs/sites/default/settings.php

[Exception]

Unable to determine Drupal core version.

gocomposer

[root@server2 httpdocs]#

It then just left me at the prompt. Sorry I can't include the log of all it ran, but I saw while it was running that it ran into no errors. Any idea what went wrong?

What are the requirements for picking a settings.php

Currently it doesn't deal well with not having settings.php. In order to fix that I need to know the idea behind picking settings.php other than sites/default. Why would you not use sites/default/settings.php ?

How to use the plugin with Composer 2

Hi!

First let me say thank you for this plugin. I'm trying to use it with Composer 2 and received such an errror:

  - webkings-ca/gocomposer is locked to version dev-master and an update of this package was not requested.
    - webkings-ca/gocomposer dev-master requires composer-plugin-api ^1.0.0 -> found composer-plugin-api[2.3.0] but it does not match the constraint.

I think this plugin would be still great and useful in Drupal 9 upgrade process, cause it could help to upgrade to Drupal 8.9. But it needs a little update?

issues updating Drupal

Hello,
I have just installed a fresh development site using a theme that was provided with codebase and database file.
The site works fine.
The version of the installed Drupal is 8.6.5 which I want to upgrade to the latest version (currently 8.6.8).

I follow the instructions in the readme:

cd path/to/drupal/project/repo
composer require webkings-ca/gocomposer:dev-master
composer gocomposer

I got an error message saying it can't find the database credentials inspite finding the settings.php file

then it asks me to discard changes? no idea what this is about, I answered yes to everything.
it processes lots of stuff and then says it was successful.

When visiting /web I get to the drupal install procedure for Drupal version 8.6.8 ???
I guess this is due to the script not recognizing database credentials?

What should I do?

gocomposer fails with error "Undefined index: namespace "

Hi, using gocomposer on Ubuntu 18.04, PHP 7.2.24.

Installs fine.

After running, and selecting the defaults for the three questions, the plugin terminates with this message:

In GoComposerCommand.php line 955:
                              
  Undefined index: namespace  

Thanks in advance for suggestions.

Issue when trying to use gocomposer

I tried this,
downloaded gocomposer using composer
ran composer gocomposer
followed the on screen prompts and got
./libraries/places-1.10.0/
[Exception]
Unable to determine Drupal core version.

gocomposer

docs/source/layouts/documentation.erb
./libraries/places-1.10.0/docs/source/examples.html.md.erb
./libraries/places-1.10.0/docs/Gemfile.lock
./libraries/places-1.10.0/docs/Gemfile
./libraries/places-1.10.0/docs/config.rb
./libraries/places-1.10.0/docs/.gitignore

[OK] Success: Your Site Files and Database have been backedup to the /backup folder..

My composer.json looks like this
`{
"name": "drupal/drupal",
"description": "Drupal is an open source content management platform powering millions of websites and applications.",
"type": "project",
"license": "GPL-2.0+",
"require": {
"composer/installers": "^1.0.24",
"wikimedia/composer-merge-plugin": "^1.4",
"drupal/webform": "^5.0@beta",
"drupal/paragraphs": "^1.2",
"drupal/bootstrap": "^3.6",
"drupal/bootstrap_paragraphs": "^2.0@beta",
"drupal/pathauto": "^1.0",
"drupal/token": "^1.0",
"drupal/admin_toolbar": "^1.20",
"drupal/google_analytics": "^2.2",
"drupal/ds": "^3.1",
"drupal/honeypot": "^1.27",
"drupal/cookieconsent": "^1.2",
"drupal/libraries": "3.x-dev",
"drupal/views_bootstrap": "^3.0",
"drupal/config_split": "^1.2",
"drupal/bootstrap_layouts": "^5.1",
"drupal/geofield": "^1.0@alpha",
"drupal/geocoder": "^2.0@alpha",
"drupal/address": "^1.2",
"drupal/metatag": "^1.3",
"drupal/smtp": "^1.0@beta",
"drupal/backup_migrate": "^4.0@beta",
"drupal/file_browser": "^1.1",
"drupal/rules": "^3.0",
"drupal/core": "~8.6",
"drupal/eva": "^1.2",
"drupal/viewsreference": "^1.0",
"drupal/image_widget_crop": "^2.1",
"drupal/svg_formatter": "^1.5",
"drupal/dropzonejs": "^2.0",
"drupal/video_embed_field": "^2.0",
"drupal/media_entity_actions": "^1.0",
"drupal/search_api": "^1.6",
"drupal/redirect": "^1.0",
"drupal/inline_entity_form": "^1.0",
"drupal/media_entity": "^1.7",
"drupal/media_entity_twitter": "^1.3",
"drupal/easy_install": "^10.0",
"drupal/xmlsitemap": "^1.0",
"drupal/leaflet": "^1.0",
"drupal/leaflet_more_maps": "^1.0",
"drupal/geysir": "^1.0",
"drupal/views_geojson": "1.x-dev",
"drupal/easy_breadcrumb": "^1.8",
"drupal/eu_cookie_compliance": "^1.2",
"webkings-ca/gocomposer": "dev-master",
"drush/drush": "^9.5"

},

"minimum-stability": "dev",
"prefer-stable": true,
"config": {
    "preferred-install": "dist",
    "autoloader-suffix": "Drupal8"
},
"extra": {
    "_readme": [
        "By default Drupal loads the autoloader from ./vendor/autoload.php.",
        "To change the autoloader you can edit ./autoload.php.",
        "This file specifies the packages.drupal.org repository.",
        "You can read more about this composer repository at:",
        "https://www.drupal.org/node/2718229"
    ],
    "merge-plugin": {
        "include": [
            "core/composer.json"
        ],
        "recurse": false,
        "replace": false,
        "merge-extra": false
    },
    "installer-paths": {
        "core": ["type:drupal-core"],
        "modules/contrib/{$name}": ["type:drupal-module"],
        "profiles/contrib/{$name}": ["type:drupal-profile"],
        "themes/contrib/{$name}": ["type:drupal-theme"],
        "drush/contrib/{$name}": ["type:drupal-drush"],
        "modules/custom/{$name}": ["type:drupal-custom-module"],
        "themes/custom/{$name}": ["type:drupal-custom-theme"]
    }
},
"autoload": {
    "psr-4": {
        "Drupal\\Core\\Composer\\": "core/lib/Drupal/Core/Composer"
    }
},
"scripts": {
    "pre-autoload-dump": "Drupal\\Core\\Composer\\Composer::preAutoloadDump",
    "post-autoload-dump": [
      "Drupal\\Core\\Composer\\Composer::ensureHtaccess"
    ],
    "post-package-install": "Drupal\\Core\\Composer\\Composer::vendorTestCodeCleanup",
    "post-package-update": "Drupal\\Core\\Composer\\Composer::vendorTestCodeCleanup"
},
"repositories": [
    {
        "type": "composer",
        "url": "https://packages.drupal.org/8"
    }
]

}

Any suggestions or solutions? or indeed further questions.`

Installing webkings-ca/gocomposer (dev-master f40c104): Cloning f40c10476a ing failed using an ssh key for authentication

Hi,

I have trying to install gocomposer via composer. Showing the below error. How can I solve this issue ?

"Installing webkings-ca/gocomposer (dev-master f40c104): Cloning f40c104
ing failed using an ssh key for authentication, enter your GitHub credential
access private repos
to https://github.com/settings/tokens/new?scopes=repo&description=Composer+
rvwks024+2020-10-11+1613
etrieve a token. It will be stored in "C:/Users/jmathew/AppData/Roaming/Comp
/auth.json" for future use by Composer.
Token (hidden):"

PHP requirement

[InvalidArgumentException]
Package webkings-ca/gocomposer at version dev-master has a PHP requirement incompatible with your PHP version, PHP extensions and Composer version

my php is: 7.4

When I run composer gocomposer I get [ErrorException] Undefined index: namespace

I am using composer 1.8.6 on mac catalina with php 7.1.3

My composer file at the time of the error is:

{
"name": "drupal/drupal",
"description": "Drupal is an open source content management platform powering millions of websites and applications.",
"type": "project",
"license": "GPL-2.0-or-later",
"require": {
"composer/installers": "^1.0.24",
"wikimedia/composer-merge-plugin": "^1.4",
"drush/drush": "^10.1"
},

"replace": {
    "drupal/core": "^8.7"
},
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
    "preferred-install": "dist",
    "autoloader-suffix": "Drupal8"
},
"extra": {
    "_readme": [
        "By default Drupal loads the autoloader from ./vendor/autoload.php.",
        "To change the autoloader you can edit ./autoload.php.",
        "This file specifies the packages.drupal.org repository.",
        "You can read more about this composer repository at:",
        "https://www.drupal.org/node/2718229"
    ],
    "merge-plugin": {
        "include": [
            "core/composer.json"
        ],
        "recurse": true,
        "replace": false,
        "merge-extra": false
    },
    "installer-paths": {
        "core": ["type:drupal-core"],
        "modules/contrib/{$name}": ["type:drupal-module"],
        "profiles/contrib/{$name}": ["type:drupal-profile"],
        "themes/contrib/{$name}": ["type:drupal-theme"],
        "drush/contrib/{$name}": ["type:drupal-drush"],
        "modules/custom/{$name}": ["type:drupal-custom-module"],
        "themes/custom/{$name}": ["type:drupal-custom-theme"]
    }
},
"autoload": {
    "psr-4": {
        "Drupal\\Core\\Composer\\": "core/lib/Drupal/Core/Composer"
    }
},
"scripts": {
    "pre-autoload-dump": "Drupal\\Core\\Composer\\Composer::preAutoloadDump",
    "post-autoload-dump": "Drupal\\Core\\Composer\\Composer::ensureHtaccess",
    "post-package-install": "Drupal\\Core\\Composer\\Composer::vendorTestCodeCleanup",
    "post-package-update": "Drupal\\Core\\Composer\\Composer::vendorTestCodeCleanup",
    "drupal-phpunit-upgrade-check": "Drupal\\Core\\Composer\\Composer::upgradePHPUnit",
    "drupal-phpunit-upgrade": "@composer update phpunit/phpunit phpspec/prophecy symfony/yaml --with-dependencies --no-progress",
    "phpcs": "phpcs --standard=core/phpcs.xml.dist --runtime-set installed_paths $($COMPOSER_BINARY config vendor-dir)/drupal/coder/coder_sniffer --",
    "phpcbf": "phpcbf --standard=core/phpcs.xml.dist --runtime-set installed_paths $($COMPOSER_BINARY config vendor-dir)/drupal/coder/coder_sniffer --"
},
"repositories": [
    {
        "type": "composer",
        "url": "https://packages.drupal.org/8"
    }
]

}

Exception: Unable to determine Drupal core version.

I run:
composer require webkings-ca/gocomposer:dev-master
1/1: https://packages.drupal.org/8/drupal/provider-2019-1$a1ccb8a6d36f07025963cb8a99390a0d4fca7ead7f3944dc16219f9a668bb6ba.json
Finished: success: 1, skipped: 0, failure: 0, total: 1
1/4: http://repo.packagist.org/p/provider-latest$a4d8377673027f22713b7742c9322c233ce18d60c3a555ac4f02148616614209.json
2/4: http://repo.packagist.org/p/provider-2018-10$b00932145a84881538241002331421c1277b74f512e6376b3246cc9306d04146.json
3/4: http://repo.packagist.org/p/provider-2019-01$aa240b5d56bf939b26a146c50beea71ce2f6c1c6714e3924dcaa768a0301b9c2.json
4/4: http://repo.packagist.org/p/provider-2017$941ece9a5a4d858cc533f42ba957615605e4be8d7107a7aa3d71dc54e96f85a3.json
Finished: success: 4, skipped: 0, failure: 0, total: 4
./composer.json has been updated
Gathering patches for root package.
No patches supplied.
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 0 installs, 0 updates, 0 removals
Package phpunit/phpunit-mock-objects is abandoned, you should avoid using it. No replacement was suggested.
Generating autoload files

Drupal\Core\Composer\Composer::preAutoloadDump
Drupal\Core\Composer\Composer::ensureHtaccess
composer require webkings-ca/gocomposer:dev-master
1/2: https://packages.drupal.org/8/drupal/provider-2017-2$901b018f6720a79fe3271db7f8d9f218d6286da6008c4f3e8ef1ca703aaf5f28.json
2/2: https://packages.drupal.org/8/drupal/provider-2019-1$58901cb942bb2b8e132305d32f08968f6aed2794174ec2e4337713e83ec0cb11.json
Finished: success: 2, skipped: 0, failure: 0, total: 2
1/3: http://repo.packagist.org/p/provider-latest$ad07fcf5637da8668a4008ec77c710fb2a7b006714a07b82c682c159458c0564.json
2/3: http://repo.packagist.org/p/provider-2018-10$23d4bfa5e87ccebabc60580310356e391cb67b606b16dd274fb50097836ebdac.json
3/3: http://repo.packagist.org/p/provider-2019-01$a97f939bf3fda74657c5d7380541ca5f8a92e33b221340e29ee0ee25521cbc20.json
Finished: success: 3, skipped: 0, failure: 0, total: 3
./composer.json has been updated
Gathering patches for root package.
No patches supplied.
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
Gathering patches for root package.
No patches supplied.
Gathering patches for dependencies. This might take a minute.

  • Installing webkings-ca/gocomposer (dev-master 9f02381): Cloning 9f02381 from cache

Drupal\Core\Composer\Composer::vendorTestCodeCleanup
Package phpunit/phpunit-mock-objects is abandoned, you should avoid using it. No replacement was suggested.
Writing lock file
Generating autoload files
Drupal\Core\Composer\Composer::preAutoloadDump
Drupal\Core\Composer\Composer::ensureHtaccess

composer gocomposer does a few questions and starts the backup.
Final result:

[OK] Success: Your Site Files and Database have been backedup to the /backup folder.. [Exception]
Unable to determine Drupal core version.
gocomposer (in green)

nothing further has been changed.

From the old similar issue I've checked my library folder. I'm only using the superfish library.
The actually installed Drupal version is 8.6.10. The installation is locally only.
Any idea, what could be wrong?

Backup completed Error Exception trying to rename settings.tmp.php

The backup was completed in the default Backup directory and the environment was saved to the .env file, but the directories were not moved to the web subdirectory.
Last message was "[ErrorException]
rename(/home/darwus/sadrupal8/settings.tmp.php,/home/darwus/sadrupal8/sites
/default/settings.php): Permission denied"
followed by gocomposer and then to the command prompt

Gocomposer aborted

I have Drupal 8.8.1 installed, but when I try to use gocomposer, it aborts instantly:
[Exception]
Unable to determine Drupal core version.
How do I fix this? Core is in my site public_html folder, which is where I run gocomposer.

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.