Closed (fixed)
Project:
Open Social
Version:
8.x-6.x-dev
Component:
Installation
Priority:
Minor
Category:
Task
Assigned:
Reporter:
Created:
2 Apr 2018 at 13:36 UTC
Updated:
4 Jan 2022 at 14:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jaapjan commentedHi mailfox,
My guess is that Social Demo module was not enabled on your installation. What if you first enable social_demo with
drush en social_demo -y? After that the command should be available (tested on drush version 8.1.16.).Comment #3
mailfox commentedthe module social_demo is enabled (drush version 9.2.1)
Comment #4
nigelwhiteSame here.
I confirm that social_demo is enabled.
Drush 9.2.3 on LAMP
Comment #5
karunadave commentedYes similar
on a fresh composer install, after running:
receive:
Comment #6
apratt commentedLooks like the drush command needs to be ported to rush 9. I'm following Moshe's tutorial at https://weitzman.github.io/blog/port-to-drush9 but will probalbly need some help to finish it off as this is not my area of expertise.
Comment #7
apratt commentedLooks like the new drush is breaking a lot of things so maybe this isn't so minor an issue?
I'm attaching my shot at adding the Drush 9 command. It definitely needs clean up. It can apparently co-exist with the Drush 8 commands but again I'm not an expert.
Note the composer.json.yml needs to be renamed. Had to get it past the upload limitation. composer.json is the required name.
And a similar problem for the SocialDemoCommands.php file. It goes in the src/Commands folder.
And when I clear registry and install it I get the following error (running with --debug flag):
Comment #8
jaapjan commentedYou are right that it seems to be a Drush 9 issue. I can't install drush 9 now and I personally don't have time to work on this. But feel free to pick this up.
Comment #9
ronaldtebrake commentedComment #10
robpowell@apratt, thanks for giving this update a shot! Since it was 10 months ago, I bet you've gotten more familiar with providing patches for review but just in case I wanted to give you this link, #707484: Making a patch. If you have questions, let me know and I can assist.
I went ahead and started from scratch. In terms of the steps laid out in the mosh update guide, I ran the generate command and have copied over each function to its rightful annotated method. I have begun building at contentAdd method. This is very much so a work in progress and has comments commenting out the Drush 8 code above all new Drush 9 code. In terms of status of contentAdd, I believe it is ready to be tested.
I'll continue working on this over the weekend just wanted to post my progress.
Comment #11
robpowellComment #12
robpowellA few small changes before beginning to test locally
Comment #13
kingdutchUpdating status : )
Comment #14
alexberendei commentedI've tested the #12 patch with
devel 9.7.1&open social 8.x-6.2with the command:demo-content-add file user group topic event event_enrollment comment post likebut it givesToo many arguments, expected arguments "command" "content_types".error.Comment #15
jaapjan commentedMarking as needs work as per #14.
Comment #16
yusufhmHey guys, was just trying out Open Social and had to get this command working; I've attached an updated patch. I've removed composer.json, I don't think it's required.
Comment #17
deaom commentedThe patch #16 is working. The drush command can be executed without errors even with drush 10.3. The only problem I've got (I think it needs to be a separate issue if it's not already) was that post content was not created, because it's not present as available content type. I'm marking this as RTBC as it did add the demo content and that was the main issue.
Comment #18
ronaldtebrake commentedThis should be part of 11.0.0, let us know if you have any feedback after running this