Composer and update to 2.12

viragom
Forums
Hi there While trying to upgrade Opigno to version 2.12 on my test machine, I encountered an error: opigno 2.12.0 requires kenwheeler/slick 1.8.1 -> no matching package found Result: installation failed reverting composer.json to its original content What's the solution for this error?? Thnx viragom
Profile picture for user James Aparicio
James Aparicio

Hi viragom,

Hi viragom,

 

Can you provide details on how you did it?

 

Best regards

Justin

You'll need to update your

You'll need to update your composer file accordingly since they've modified the base one here: https://bitbucket.org/opigno/opigno-composer/src/master/composer.json Of note, two new repositories were added: almende/vis and kenwheeler/slick As well as two new dependencies (require section): "almende/vis": "4.21.0", and "kenwheeler/slick": "1.8.1", There was a few other dependency versions updated as well: "composer/installers": "^1.7", and "drupal/view_mode_selector": "1.x-dev#93d105f", and "drupal/media_entity_browser": "2.x-dev#8129394", and "drupal/pdf": "1.x-dev#ec8d13d", Making those changes let the update go through successfully for us. In the new composer file these have been removed: drupal/calendar and drupal/views_role_based_global_text. I didn't delete those and left them in instead since I didn't see anything mentioned in the release notes for the new version.
viragom

composer.json

Hi Justin Thnx for responding! The part of the package for kenwheeler/slick I added myself, was a guess but worked very well. The other changes in composer.json are nog in mine, but didn't seem to make a difference... installation went fine . I will have a look what happens when I add the other changes to my composer.json.... viragom
viragom

Hi James

Hi James Just followed the documentation .... Started with opigno 2.11.2 composer outdated opigno/opigno_lms changed the version of opigno_lms to version 2.12.0 in composer.json compuser update --dry-run and without --dry-run last commands gave the error of package kenwheeler/slick. Apparentely some changes did not end up in composer.json See next forum message, some things were missing in composer.json but only the slick part prevented me from updating. viragom
timotheonb

Grateful for the info.

Thanks. This thread helped me get my installation upgrade. Tim
viragom

update finished after updating the composer.json manually

Hi Timotheonb and Justin After manually adjusting composer.json with the failing commands (see comment Justin) everything installed like a charm! My Opigno is looking great and working perfectly. Thnx
timotheonb

I'm almost there.

I had thought I had solved it, but there are a few more bugs to squash. NOTE: The patch error massages are different every time I try to composer upgrade o update. I was alble to make the proper changes in composer.json, but, have been unable to get through a final composer upgrade. Here is what I get every time (I answer with y). I'm adding bold to the error messages: composer update Gathering patches for root package. Removing package drupal/calendar so that it can be re-installed and re-patched. - Removing drupal/calendar (dev-1.x) The package has modified files: M calendar.theme.inc M calendar.views.inc M css/calendar-overlap.css M js/calendar_overlap.js M src/CalendarHelper.php M src/CalendarStyleInfo.php M src/DateArgumentWrapper.php M src/Plugin/Derivative/ViewsFieldTemplate.php M src/Plugin/views/row/Calendar.php M src/Plugin/views/style/Calendar.php 5 more files modified, choose "v" to view the full list Discard changes [y,n,v,d,?]? y Deleting modules/contrib/calendar - deleted Removing package drupal/private_message so that it can be re-installed and re-patched. - Removing drupal/private_message (dev-2.x) Deleting modules/contrib/private_message - deleted Removing package drupal/video so that it can be re-installed and re-patched. - Removing drupal/video (1.4.0) Deleting modules/contrib/video - deleted > DrupalProject\composer\ScriptHandler::checkComposerVersion Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 2 installs, 5 updates, 0 removals Gathering patches for root package. Gathering patches for dependencies. This might take a minute. - Installing drupal/video (1.4.0): Loading from cache - Applying patches for drupal/video https://www.drupal.org/files/issues/2018-07-18/2986682-2.patch (Add source and destination module for migrate plugin) https://www.drupal.org/files/issues/2018-07-18/2986682-2.patch (2986682) Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2018-07-18/2986682-2.patch - Installing drupal/calendar (dev-1.x 73e2979): Cloning 73e2979 from cache - Applying patches for drupal/calendar https://www.drupal.org/files/issues/2756445-month-names-not-showing-10.patch (2756445) https://www.drupal.org/files/issues/2018-04-06/calendar-date_range-2699477-71.patch (2699477) https://www.drupal.org/files/issues/2018-05-09/2604546-33.patch (2604546) https://www.drupal.org/files/issues/fix_menu_tabs_in-2630234-15.patch (2630234) https://www.drupal.org/files/issues/tab_navigation_not_working_after_using_pager-2867991-5.patch (2867991) https://www.drupal.org/files/issues/week-week-day-display-issues-2901594-15.patch (2901594) https://www.drupal.org/files/issues/2018-04-23/2955351-5-base-filter.patch (2955351) https://www.drupal.org/files/issues/2020-05-29/calendar-opigno-adaptation-3143737-1.patch (3143737-1) **Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2020-05-29/calendar-opigno-adaptation-3143737-1.patch ** https://www.drupal.org/files/issues/2020-05-29/calendar-opigno-adaptation-3143737-2.patch (3143737-2) Package container-interop/container-interop is abandoned, you should avoid using it. Use psr/container instead. Writing lock file Generating autoload files composer/package-versions-deprecated: Generating version class... composer/package-versions-deprecated: ...done generating version class 40 packages you are using are looking for funding. Use the `composer fund` command to find out more! Scaffolding files for drupal/core: [ErrorException] file_put_contents(//.csslintrc): failed to open stream: Permission denied update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [--with-dependencies] [--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] []...
timotheonb

I have retried.

I am following all recommendations as mentioned here in this thread, but am still coming up against some error messages. First I make the necessary changes as Justin mentioned. After that, I manually change the version numbers of each module in composer.json by typing composer update --dry-run until I finally get no compatibility issue messages. Then, I do a composer upgrade. Here are some of the error messages I am getting at this moment: - Applying patches for drupal/private_message https://www.drupal.org/files/issues/2018-07-03/private-message-2961332-2.0.patch (2961332) Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2018-07-03/private-message-2961332-2.0.patch Another error message that does not disappear is: [ErrorException] file_put_contents(//.csslintrc): failed to open stream: Permission denied My site has crashed. Hope there will be a solution and that it may help many others. Tim

2.12 Update Err: "subgroup:opigno_class plugin does not exist"

Hello, I am also having trouble updating to Opigno LMS 2.12.0 I followed the instructions above and replaced my composor.json file with the one posted on your site. I added in a few extra lines that I needed from my original install, which is on Pantheon's hosting. Then ran composer update --dry-run and then composer update. Using git, I uploaded my files to the Pantheon server. My site will not load. I am getting: "The website encountered an unexpected error. Please try later." This is what's in my PHP logs: I looked and I DO have files in the /web/modules/contrib/opigno_class directory. Any ideas why it doesn't seem to be finding it?? Uncaught PHP Exception Drupal\Component\Plugin\Exception\PluginNotFoundException: "The "subgroup:opigno_class" plugin does not exist. Valid plugin IDs for Drupal\group\Plugin\GroupContentEnablerManager are: group_node:forum, group_node:page, group_membership, opigno_ilt_group, opigno_module_group, opigno_moxtra_meeting_group" at /srv/bindings/534e0ff422e347c3beff5a8a18a4b51b/code/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php line 53 [09-Jun-2020 05:16:37 America/Chicago] Uncaught PHP Exception Drupal\Component\Plugin\Exception\PluginNotFoundException: "The "subgroup:opigno_class" plugin does not exist. Valid plugin IDs for Drupal\group\Plugin\GroupContentEnablerManager are: group_node:forum, group_node:page, group_membership, opigno_ilt_group, opigno_module_group, opigno_moxtra_meeting_group" at /srv/bindings/534e0ff422e347c3beff5a8a18a4b51b/code/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php line 53 Thanks so much! Julie

RESOLVED: subgroup:opigno_class plugin does not exist

I was able to resolve the "subgroup:opigno_class plugin does not exist" error this by: - Ran /update.php - Could see that a handful of Opigno related modules were "missing" - They were actually there but had a residual .git file in their directories that had been put there during the update - My hosting company (Pantheon) uses git and doesn't allow for sub-repositories so it was somehow ignoring the files - Deleted the module folders from the server - Re-added the folders withOUT the .git file inside them - Cleared Drupal cache - Ran /update.php - It was crazy painful and took an all-nighter but I'm finally back in business!
axel

Hi Julie,

Hi Julie,

Thanks for your feedback !

It can be helpful for other people in Opigno community.

timotheonb

Still not able.

Hi everyone, I have tried everything. I am able to get the new composer file to upgrade. Unfortunately, I keep getting this message: [ErrorException] file_put_contents(//.csslintrc): failed to open stream: Permission denied I have changed the file permissions, but am constantly getting this message. Any help will be completely welcome. Thanks.