Closed (fixed)
Project:
Sector Distribution
Version:
9.1.x-dev
Component:
Code
Priority:
Normal
Category:
Plan
Assigned:
Unassigned
Reporter:
Created:
30 Nov 2020 at 22:22 UTC
Updated:
26 May 2021 at 02:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
dieuweThis patch only modifies the
composer.jsonto the point where dependencies resolve.Three modules have been excluded at this point: views_menu_children_filter, term_condition, and better_formats.
Comment #3
dieuweAttached is a patch that doesn't quite work, but it updates the info files of all Sector modules and then modifies/removes any config related to the 3 contrib modules currently not Drupal 9 ready. There are still some config errors to work through, and hopefully all these config changes can be reverted once the relevant modules provide basic support.
Comment #4
dieuweThe error I am facing is related to this change record: https://www.drupal.org/node/2481909
There is some discussion around the vagueness of the error and tracking down just which config will need to be updated: #3132759: ConfigEntityType "missing 'config_export" error message doesn't say what annotation is missing
Message:
Comment #5
dieuweSince Term Condition has just had a new release that is D9 compatible, here is a re-roll with it added back in and config affected restored.
That should reduce the size a bit.
The Better Formats issue is currently being worked on separately.
Likely I will create a few separate issues to break this task up soon, but I'd first like to have a working semi-functional install via this mega patch so that we know the scope.
Comment #6
dieuweBreaking up the big patch into smaller chunks - once these have been pushed to the 9.1.x branch then it will be much easier to review what still needs to be done, as testing has become difficult without the recipe changes committed to a branch that composer can build from.
Comment #7
dieuweOne update on the previous install errors. I figured from the stack trace that there was something to do with the config of WYSIWYG Templates. I simply ran
rm config/install/wysiwyg_template.wysiwyg_template.*as a quick workaround.Sector then finished install without fatal errors!
On the post-install screen, I got the following error:
The fetched resource did not have a valid Content-Type header.That's a bit vague and needs some more research.It seems like some blocks are missing from the front page, including the main menu.
On visiting admin views, I also saw the following warning repeated:
Warning: Illegal string offset 'action_id' in Drupal\views_bulk_operations\Plugin\views\field\ViewsBulkOperationsBulkForm->getBulkOptions() (line 784 of modules/contrib/views_bulk_operations/src/Plugin/views/field/ViewsBulkOperationsBulkForm.php).UPDATE: We need to make a few manual tweaks to our VBO default config: #3116228: Warning: Illegal string offset 'action_id' - which removes the action checkbox in views
When trying to add a WYSIWYG Template the following notice:
Notice: Trying to access array offset on value of type null in Drupal\wysiwyg_template\Entity\Template->getBundles() (line 140 of modules/contrib/wysiwyg_template/src/Entity/Template.php).This can be fixed by adding the following key to each default config template:
Trying to add a new template gives the same error I was experiencing on install, which likely means the module needs a patch to be fully D9 compatible.
UPDATE: I have submitted a patch which we can test with Sector - #3186405: Define config_export annotation on Template entity
Comment #8
danielvezaI've committed the basic versions of #3150367: Replace Better Formats with Allowed Formats & #3186394: Update dependencies for Drupal 9 support
Now you can test the Sector distro on D9.
Run the usual composer create project, then replace the require section of the root composer.json with the following.
Afte that, run composer update -W, and apply the patch from #3186395: Update Sector modules for Drupal 9 support.
After all that, you'll have a working D9 project for dev!
Comment #9
dieuweI've update the default sector-project template with a new branch that uses Drupal 9 and Drush 10.
You can now build and install Sector 9 with a single command:
composer create-project sparksinteractive/sector-project:9.x-dev {project-name}I am going to release an alpha build while we work on the upgrade path and continue to discover new issues.
Comment #10
dieuweComment #11
dieuweComment #12
dieuweAdding a few possible issues to review.
Things are in a good state, and alpha1 will be tagged before the end of today.
Comment #13
danielvezaI think we need to include the components fix as a must have.
Comment #14
danielvezaWe need to do healthchecks too.
Comment #15
danielvezaSector 9 has been out for awhile.