Account created on 4 April 2014, over 11 years ago
#

Merge Requests

More

Recent comments

🇬🇧United Kingdom stephen-cox

> try adding container_rebuild_required: true to modules/localgov_media/localgov_media.info.yml

Unfortunately, this doesn't seem to fix things - I've tried adding `container_rebuild_required: true` to all the LocalGov Drupal modules loaded in the tests and they still fail. Using Xdebug to check when hook_modules_installed is called, it looks like config dependencies are calculated before this hook whether `container_rebuild_required` is true or not.

🇬🇧United Kingdom stephen-cox

I've done a bit more digging into this. The LocalGov Media module uses hook_modules_installed to force the install of the optional config in the module (https://git.drupalcode.org/project/localgov_core/-/blob/2.x/modules/loca...), but this hook is not being called before the dependencies for the config in localgov_homepage_paragraphs are being calculated. Which means the config validation is failing.

It's clearly not good to have config that is going to be installed rely on optional config. The reason it currently works this way is much of the config in the media module is copied from the standard profile and would cause errors if the module was enabled with this profile rather than the LocalGov profile.

Ideally, we would want to delay the calculation of dependencies for some modules until after others are enabled. `container_rebuild_required: true` doesn't seem to be doing this.

🇬🇧United Kingdom stephen-cox

Looking at a single test: https://git.drupalcode.org/project/localgov_paragraphs/-/blob/2.x/module...

This fails on Drupal 11.2 with:

Drupal\Core\Config\UnmetDependenciesException: Configuration objects provided by localgov_homepage_paragraphs have unmet dependencies: field.field.paragraph.localgov_featured_campaign.localgov_featured_campaign_image (media.type.image)

The media.type.image config item is provided by the localgov_media module (https://git.drupalcode.org/project/localgov_core/-/blob/2.x/modules/loca...), but is optional config. Moving the YML file into the install directory fixes the test; all config items install without any errors.

Has the way optional config is installed changed? It certainly seems that optional config is not being installed when it should be.

🇬🇧United Kingdom stephen-cox

Closing this as I'm not going to add inverse permissions to this module.

🇬🇧United Kingdom stephen-cox

+1 for these changes. I spent hours trying to get this working until I came across this issue.

🇬🇧United Kingdom stephen-cox

I had this issue on a fresh D11 install after enabling Gin Toolbar and the patch fixes it.

I also needed to patch Gin with https://www.drupal.org/project/gin/issues/3511415 🐛 Edge case: $settings->get('enable_darkmode') can cause WSOD Active

🇬🇧United Kingdom stephen-cox

I had this issue on a fresh D11 install after enabling Gin and the patch fixes it.

🇬🇧United Kingdom stephen-cox

Patch #3 doesn't apply properly. Uploading on that does.

🇬🇧United Kingdom stephen-cox

The attached patch contains the same changes as the MR.

🇬🇧United Kingdom stephen-cox

There's another report of this happening https://github.com/localgovdrupal/localgov/issues/809#issue-2804204272, but I've been unable to reproduce it with a clean install of Drupal or LocalGov Drupal.

🇬🇧United Kingdom stephen-cox

Patch #1 doesn't cleanly apply to the 3.0.x branch. The attached patch is the current state of MR !22 and should work with 8.x-2.x and 3.0.x.

🇬🇧United Kingdom stephen-cox

Merge requests now have conflicts. Attached patch includes all the changes needed to D11 compatibility.

🇬🇧United Kingdom stephen-cox

Thanks for the bug report and patch. This is a duplicate of #3404945 which is now fixed.

🇬🇧United Kingdom stephen-cox

Merged and marking fixed. Thanks @kelly.m.jacobs

🇬🇧United Kingdom stephen-cox

stephen-cox made their first commit to this issue’s fork.

🇬🇧United Kingdom stephen-cox

Patch #9 fixed this issue for me. Without it images with special characters were redirecting to themselves and so weren't loading.

I've also created a MR which contains the patch with a small whitespace fix.

🇬🇧United Kingdom stephen-cox

I have created a MR and patch that checks whether the entity being accessed is part of the preview link rather than the entity being viewed. This allows unpublished referenced entities that are included in the preview link to be viewed. There's an updated test for this as well.

🇬🇧United Kingdom stephen-cox

Adding patch file for current changes in the Gitlab merge request,

🇬🇧United Kingdom stephen-cox

There's now a merge request implementing this with tests.

There are pull requests to add this functionality to LocalGov Drupal:

🇬🇧United Kingdom stephen-cox

A fair amount of work has been done to internationalize LocalGov Drupal as it's being used by a number of Irish councils.

Dev for this is happening here: https://github.com/localgovdrupal/localgov_multilingual

🇬🇧United Kingdom stephen-cox

Thanks for catching this @ressa. Development happens on GitHub and we recommend installing LocalGov Drupal using the Composer `localgovdrupal/localgov_project` package, so the drupal.org page and git repo doesn't get updated as often as it could.

I have updated the default branch to 3.x.

🇬🇧United Kingdom stephen-cox

Great to see an admin UI for this. Any chance of a new release including this?

The admin UI is useful for use as part of this issue https://github.com/localgovdrupal/localgov/issues/600. As an interim I've created a PR to use the dev branch (https://github.com/localgovdrupal/localgov/pull/691), but would be nice if we didn't have to reference specific commits in the dev branch.

🇬🇧United Kingdom stephen-cox

This is fixed in the latest 2.x release.

🇬🇧United Kingdom stephen-cox

Module now has Drupal 10 support!

🇬🇧United Kingdom stephen-cox

Merged this so the module now has D10 support.

🇬🇧United Kingdom stephen-cox

stephen-cox made their first commit to this issue’s fork.

🇬🇧United Kingdom stephen-cox

Maybe a different problem, but I'm seeing this. Lots of text in a paragraph item pushes the save button off the bottom of the screen meaning it's not possible to save the page.

Patch #6 didn't fix this issue. The following CSS rule fixed it for me:

.layout-paragraphs-component-form .ck-editor__main > .ck-editor__editable {
  max-height: calc(100vh - 320px);
}
🇬🇧United Kingdom stephen-cox

It looks to me like the hook_toolbar_alter implementation was added as part of #3176679 and has always contained the error causing this issue.

Added fix for this.

🇬🇧United Kingdom stephen-cox

Previous patch didn't work. New patch re-rolled against latest 2.x branch.

🇬🇧United Kingdom stephen-cox

I've merged this into the 5.0.x branch and created a 5.0.0-alpha1 release with Drupal 10 support.

🇬🇧United Kingdom stephen-cox

Re-rolled patch against latest 2.2.2 release.

🇬🇧United Kingdom stephen-cox

We have the changes on the issues fork https://git.drupalcode.org/issue/responsive_menu-3297964/-/tree/3297964-... are working on a number of sites without issue.

Would be great if we can get a dev release with this at a minimum so we don't have to keep using the issue fork to install it.

🇬🇧United Kingdom stephen-cox

stephen-cox made their first commit to this issue’s fork.

🇬🇧United Kingdom stephen-cox

We've been using Domain Group 3.x with LocalGov Microsites (https://github.com/localgovdrupal/localgov_microsites) for a while now and there are a few production sites built on the platform.

Can we get a proper release out for this? It would be good to start tracking a beta tag rather than individual commits.

Live sites:

🇬🇧United Kingdom stephen-cox

@aaon.ferris I have created a new release for this on drupal.org, https://www.drupal.org/project/localgov/releases/2.3.19 , but as you've seen this lags behind GitHub as that's were development is done.

I recommend you update your composer.json file to use `localgovdrupal/localgov` rather than `drupal/localgov`.

🇬🇧United Kingdom stephen-cox

I've also tested this and it works well.

Currently exported domain config is kept while the config for new sites is ignored.

Production build 0.71.5 2024