Problem/Motivation

composer create-project goalgorilla/social_template:10.0.0 DIR --no-interaction
Creating a "goalgorilla/social_template:10.0.0" project at "./DIR"

[InvalidArgumentException]
Could not find package goalgorilla/social_template with version 10.0.0.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#4 fix_false_requirements.patch1.79 KBmindaugasd

Comments

SocialNicheGuru created an issue. See original summary.

navneet0693’s picture

This should be

composer create-project goalgorilla/social_template:dev-master DIR --no-interaction

This will then download Open Social 10.0.0.

navneet0693’s picture

Status: Active » Closed (works as designed)
mindaugasd’s picture

Status: Closed (works as designed) » Needs review
StatusFileSize
new1.79 KB

This below looks false for a fresh install. Attached a patch solving the issue.

Installation page was also full of other errors, maybe will file separate bug.

SOCIAL AUTH FACEBOOK MODULE REQUIREMENTS
Not installed
Social Auth Facebook requires Facebook PHP Library. Make sure the library is installed via Composer.
SOCIAL AUTH GOOGLE MODULE REQUIREMENTS
Not installed
Social Auth Google requires Google_Client PHP Library. Make sure the library is installed via Composer.
SOCIAL AUTH LINKEDIN MODULE REQUIREMENTS
Not installed
Social Auth LinkedIn requires LinkedIn PHP Library. Make sure the library is installed via Composer.
SOCIAL AUTH TWITTER MODULE REQUIREMENTS
Not installed
Social Auth Twitter requires TwitterOAuth PHP Library. Make sure the library is installed via Composer.

navneet0693’s picture

Status: Needs review » Fixed

This patch will work, we also already did it in the dev version https://github.com/goalgorilla/open_social/commit/b741a447cd0773a0470c2e....

This was missed by us while working on https://www.drupal.org/project/social/issues/3194416

jepster_’s picture

I can confirm that the patch from #4 works. The patch should be committed to the latest stable version, here on d.o. Otherwise the profile cannot even be installed.

Please test if the installation works, before releasing a version which is tagged as stable. This is not good for the image of your product.

ronaldtebrake’s picture

Sorry about the inconvenience, it's ready to be patched soon.
Although you imply it can't be installed and we don't test our installations, that's far from the truth.
You can still install Open Social through drush, which is what we recommend

https://www.drupal.org/docs/distributions/open-social/installing-open-so...

We test this for every line of code we commit.

That said, we do understand Drush can't be installed everywhere and this is something you'd notice when running the installation through the interface, that's why we patched it with the necessary priority.

socialnicheguru’s picture

I absolutely appreciate @ronaldtebrake and the team. you guys are doing such an awesome job. i did realilzie from the last one that you shared, install using the composer command then run composer update.

That did work for me.

navneet0693’s picture

heneryh’s picture

Fixed, but please update the template file for 10.0.01 or maybe 10.0.x
https://github.com/goalgorilla/social_template/

Carlos Miranda Levy’s picture

The error persists.
I tried a fresh install at 8:22 PM Tuesday, February 16, 2021 Coordinated Universal Time (UTC)
I got the same errors.

Requirements problem
Errors found

SOCIAL AUTH FACEBOOK MODULE REQUIREMENTS
Not installed
Social Auth Facebook requires Facebook PHP Library. Make sure the library is installed via Composer.

SOCIAL AUTH GOOGLE MODULE REQUIREMENTS
Not installed
Social Auth Google requires Google_Client PHP Library. Make sure the library is installed via Composer.

SOCIAL AUTH LINKEDIN MODULE REQUIREMENTS
Not installed
Social Auth LinkedIn requires LinkedIn PHP Library. Make sure the library is installed via Composer.

SOCIAL AUTH TWITTER MODULE REQUIREMENTS
Not installed
Social Auth Twitter requires TwitterOAuth PHP Library. Make sure the library is installed via Composer.

Only local images are allowed.
Only local images are allowed.

Carlos Miranda Levy’s picture

Status: Fixed » Active
Carlos Miranda Levy’s picture

Fixed it by editing composer.json to change "goalgorilla/open_social": "~10.0.0" into "goalgorilla/open_social": "~10.0" and then running composer update --with-dependencies.

ronaldtebrake’s picture

Status: Active » Fixed

Thanks for the updates, we have just updated the lock file in the social_template repo.
Which should also do the trick.

bas123’s picture

Status: Fixed » Active

So, @ronaldtebrake, How do we affect the fix?

Is it a simple matter of running an update? Because following #14 I did manage to update to Social (social-10.0.1) but my Status Report still shows:

Entity/field definitions
Mismatched entity and/or field definitions
The following changes were detected in the entity type and field definitions.
User

The Facebook user ID field needs to be uninstalled.
The Google user ID field needs to be uninstalled.
The LinkedIn user ID field needs to be uninstalled.
The Twitter user ID field needs to be uninstalled.

And doing an drush updb -y renders:

Module social_api has an entry in the system.schema key/value storage, but is missing from your site. More [warning]
information about this error.
Module social_auth has an entry in the system.schema key/value storage, but is missing from your site. More [warning]
information about this error.
Module social_auth_extra has an entry in the system.schema key/value storage, but is missing from your site. [warning]
More information about this error.
Module social_auth_facebook has an entry in the system.schema key/value storage, but is missing from your [warning]
site. More information about this error.
Module social_auth_google has an entry in the system.schema key/value storage, but is missing from your site. [warning]
More information about this error.
Module social_auth_linkedin has an entry in the system.schema key/value storage, but is missing from your [warning]
site. More information about this error.
Module social_auth_twitter has an entry in the system.schema key/value storage, but is missing from your [warning]
site. More information about this error.
Module social_search_autocomplete has an entry in the system.schema key/value storage, but is missing from [warning]
your site. More information about this error.
Module social_sso has an entry in the system.schema key/value storage, but is missing from your site. More [warning]
information about this error.

My concerns, as I have stated elsewhere are that I have users who have enabled Facebook, Twitter, Google Auth logins, and need to know what to expect.

I am assuming that once these entries are removed, it will then allow us to reinstall the Social Auth and sub modules so that they may reside independent of OS, but would like to warn my users that they may (or will) need to re-enable the feature!

Additionally, if there are any other step-by-step measures available to allow us to convert to this new method of offering the one-click login alternatives, I would appreciate a reference to do so!

Thanks

jepster_’s picture

@ronaldtebrake: If you like, you can check in the deGov installation profile, how the default Drupal installer can be tested via continuous integration pipelines with Behat. It's open source and maybe you can re-use it for open social: https://bitbucket.org/publicplan/degov/addon/pipelines/home

ronaldtebrake’s picture

Status: Active » Fixed

Thanks a lot for the reference @peter-majmesku that helps us a lot!
We have a similar pipeline running on github / travis also using behat, it just didnt have the Drupal installer tests (yet)
Feel free to check it out as well if it might help.
https://github.com/goalgorilla/open_social/pull/2241/checks?check_run_id...

@bas123 - That's a different issue, this one is actually solved, would be great to have it in a separate ticket.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

ohmdesbois’s picture

Hello,
It seems that the problem persists.
the command composer create-project goalgorilla/social_template:dev-master DIR --no-interaction
return

[InvalidArgumentException]                                                                                                                  
  Could not find package goalgorilla/social_template with version dev-master in a version installable using your PHP version, PHP extensions  
   and Composer version. 

I tried with php 7.4 and php 8.0, it's the same result

Thanks for your work

mmjvb’s picture

Suggest to use official syntax:

docker@cli:/var/www$ composer create-project goalgorilla/social_template social dev-master --no-install
Creating a "goalgorilla/social_template" project at "./social"
Installing goalgorilla/social_template (dev-master ecf707007832f7c7c5768394fab89d740b404615)
  - Downloading goalgorilla/social_template (dev-master ecf7070)
  - Installing goalgorilla/social_template (dev-master ecf7070): Extracting archive
Created project in /var/www/social
docker@cli:/var/www$
ohmdesbois’s picture

Hello, and thanks for your response.
I'm not sure I understand: I used the procedure given in

1. Install using Composer

on the profile page https://www.drupal.org/project/social
This procedure seems to be official and it worked well until now.
Thank you for your clarifications
Best regards

mmjvb’s picture

Don't know why that format didn't work for you. Didn't try it myself, only tried the official syntax as shown above. Don't like to use the special format of package:version, always use a separate version. Not all commands support the special format.

Don't like the option --no-interaction as it does things you should be aware of. Only used --no-install to stop after downloading and prevent going installing everything.

ohmdesbois’s picture

Thank you for this answer but what do you consider to be more official than the profile page, unless there is a need to make a ticket about it ?
For my part
composer create-project goalgorilla/social_template social dev-master --no-install
give

[InvalidArgumentException]                                                   
  Could not find package goalgorilla/social_template with version dev-master.

Thanks for your time.
Best regards

mmjvb’s picture

With official syntax I was referring to the syntax as provided by Composer. Got the impression the official syntax also worked for you, apparently not.

Still no idea why it doesn't work on your side. Could you provide more information?

docker@cli:/var/www/social$ composer show -a goalgorilla/social_template
name     : goalgorilla/social_template
descrip. : Social project template for composer based Open Social projects.
keywords :
versions : 9999999-dev, dev-master, dev-issue/upgrade-to-10, dev-feature/drupal-composer-update, dev-feature/bump-minimum-php
type     : project
license  : GNU General Public License v2.0 or later (GPL-2.0+) (OSI approved) https://spdx.org/licenses/GPL-2.0+.html#licenseText
homepage :
source   : [git] https://github.com/goalgorilla/social_template.git ecf707007832f7c7c5768394fab89d740b404615
dist     : [zip] https://api.github.com/repos/goalgorilla/social_template/zipball/ecf707007832f7c7c5768394fab89d740b404615 ecf707007832f7c7c5768394fab89d740b404615
names    : goalgorilla/social_template

support
source : https://github.com/goalgorilla/social_template/tree/master

requires
php ^7.2
monolog/monolog ^1.17
goalgorilla/open_social ~10.3.0
docker@cli:/var/www/social$
ressinel’s picture

Here is PR with behat test to install Open Social in the browser:
https://github.com/goalgorilla/open_social/pull/2953

navneet0693’s picture