Open chriswales95 opened 1 month ago
So that error which causes the WSOD is due to localgov_microsites_group_get_by_context()
only existing in localgov_microsites_group 4.x.
This PR introduced the change for localgov_news, and localgov_blogs is likely affected as well as it has similar code.
@finnlewis for microsites 3.x should we lock news and blogs to versions before that change?
All development on Microsites < 4.x has stopped. Although I don't think we have officially stopped supporting them, we should deprecate them. Pinning dependencies at older versions to ensure the sites continue to work until they get updated sounds like a reasonable solution to me.
PR added https://github.com/localgovdrupal/localgov_microsites/pull/494 to lock both news and blogs to working versions
Issue
We have discovered that a WSOD occurs if you try to create a news article, without creating a newsroom, when using localgov_microsites_group:4.0.0-alpha2 or less.
We have came across this issue on 2 of our client's microsite instances and I was able to replicate with a fresh microsite install locally.
The problematic code is:
I think the issue is that somewhere the dependencies are not correctly implemented.
I've had to pin our clients to version 2.3.5 until we're ready to go to version 4 of Microsites.
Reproduction Steps
I replicated this on Mac OS using Lando.
Follow these commands:
Then
Workaround / Solution
Pin LocalGov News to version 2.3.5 for those on Version 3 of LocalGov Microsites.