localgovdrupal / localgov_microsites_group

LocalGov Drupal Microsites Group integration
1 stars 2 forks source link

Enable node preview #222

Open stephen-cox opened 2 years ago

stephen-cox commented 2 years ago

Node preview doesn't currently work with group content: https://www.drupal.org/project/group/issues/2853001

Also see: https://github.com/localgovdrupal/localgov_microsites/issues/190

finnlewis commented 3 months ago

I'm re-opening this as I've got similar issues again locally.

Also https://github.com/localgovdrupal/localgov_microsites/issues/190

finnlewis commented 2 months ago

This an issue, again!

Just like mentioned here: https://www.drupal.org/project/responsive_preview/issues/3302861

Which takes us back to https://www.drupal.org/project/group/issues/2853001

The latest patch on there seems to suppress the problem.

Steps to reporoduce:

  1. install localgov_microsites 4.0.0 :)
  2. create a microsite and assign an admin user to the microsite
  3. log into microsite as admin user
  4. create a newsroom

See

Error message

Warning: Undefined array key "preview" in Drupal\responsive_preview\ResponsivePreview->formAlter() (line 221 of modules/contrib/responsive_preview/src/ResponsivePreview.php).

Warning: Trying to access array offset on value of type null in Drupal\responsive_preview\ResponsivePreview->formAlter() (line 221 of modules/contrib/responsive_preview/src/ResponsivePreview.php).

Solution: apply this patch https://www.drupal.org/files/issues/2023-09-25/group2-2853001-26.patch