πŸ‡ΊπŸ‡ΈUnited States @drupalninja99

Account created on 6 December 2005, about 19 years ago
#

Recent comments

πŸ‡ΊπŸ‡ΈUnited States drupalninja99

The content looks like it exports correctly but then I get this error on import:

In SectionData.php line 35:

  [InvalidArgumentException]
  Value assigned to "section" is not a valid section

I think the function is here in core/modules/layout_builder/src/Plugin/DataType/SectionData.php:

public function setValue($value, $notify = TRUE) {
    if ($value && !$value instanceof Section) {
      throw new \InvalidArgumentException(sprintf('Value assigned to "%s" is not a valid section', $this->getName()));
    }
    parent::setValue($value, $notify);
  }

$value is coming in as an array not instanceof Section.

πŸ‡ΊπŸ‡ΈUnited States drupalninja99

Bleh sorry posted to the wrong issue ignore me

πŸ‡ΊπŸ‡ΈUnited States drupalninja99

The content looks like it exports correctly but then I get this error on import:

In SectionData.php line 35:

  [InvalidArgumentException]
  Value assigned to "section" is not a valid section

I think the function is here in core/modules/layout_builder/src/Plugin/DataType/SectionData.php:

public function setValue($value, $notify = TRUE) {
    if ($value && !$value instanceof Section) {
      throw new \InvalidArgumentException(sprintf('Value assigned to "%s" is not a valid section', $this->getName()));
    }
    parent::setValue($value, $notify);
  }

$value is coming in as an array not instanceof Section

πŸ‡ΊπŸ‡ΈUnited States drupalninja99

Attach a patch that is a re-roll of #30 to latest 10.3.x (ie 10.3.5). This applied for me correctly, but note it does not include the workspaces patch.

πŸ‡ΊπŸ‡ΈUnited States drupalninja99

This resolves the issue for me.

πŸ‡ΊπŸ‡ΈUnited States drupalninja99

Duplicate of https://www.drupal.org/project/default_content/issues/3160146 ✨ Add a Normalizer and Denormalizer to support Layout Builder RTBC

πŸ‡ΊπŸ‡ΈUnited States drupalninja99

FYI the only way I got mine to work was using drush tome:static with --path-count=1 as suggested in this thread.

πŸ‡ΊπŸ‡ΈUnited States drupalninja99

Actually I realize that this was a 1x issue that doesn't exist in 2.x so I am good.

πŸ‡ΊπŸ‡ΈUnited States drupalninja99

I get the same error - where are you supposed to configure bundles?

πŸ‡ΊπŸ‡ΈUnited States drupalninja99

I am attaching a small patch that resolves the error I am getting in ViewsReferenceFieldFormatter.php.

πŸ‡ΊπŸ‡ΈUnited States drupalninja99

When I tried to apply #26 to the latest 2x dev, composer just hangs or says it can't apply the patch.

πŸ‡ΊπŸ‡ΈUnited States drupalninja99

I have the same issue clean d10 install with just this module installed and Claro as the admin theme.

πŸ‡ΊπŸ‡ΈUnited States drupalninja99

I am still having this issue in D10

πŸ‡ΊπŸ‡ΈUnited States drupalninja99

We probably need something more robust at some point but for now I changed the color to affect the border: https://git.drupalcode.org/project/openchurch_theme/-/commit/0a9ac508574...

πŸ‡ΊπŸ‡ΈUnited States drupalninja99

What browser are you seeing this in? I haven't seen this issue in Chrome on Mac.

πŸ‡ΊπŸ‡ΈUnited States drupalninja99

@BEGRAFX can you compare what you were doing with https://github.com/drupalninja/openchurch-project/?

That is a composer project that you can run locally by running ddev start and ./scripts/build.sh. You can either clone the project or at least compare with what you were doing and let me know what is different.

πŸ‡ΊπŸ‡ΈUnited States drupalninja99

@BEGRAFX are you following the Gitbook documentation here?
https://openchurch.gitbook.io/guide/getting-started/installation-quick

The main thing is are you installing openchurch_core first? I probably need your exact steps from beginning to end to help identify the problem,t hanks!

πŸ‡ΊπŸ‡ΈUnited States drupalninja99

Sorry I missed this earlier.

Go to /admin/structure/block/block-content, this has all of your content blocks.

Then edit the "Homepage Hero Video" block

πŸ‡ΊπŸ‡ΈUnited States drupalninja99

@Damien et al, is there any reason why we can't get this patch committed?

πŸ‡ΊπŸ‡ΈUnited States drupalninja99

Agreed this is a major blocker

πŸ‡ΊπŸ‡ΈUnited States drupalninja99

Merged, ya'll are killing it!

πŸ‡ΊπŸ‡ΈUnited States drupalninja99

I also want to link to the OpenChurch Gitbook from the README which has full details: https://openchurch.gitbook.io/guide/

πŸ‡ΊπŸ‡ΈUnited States drupalninja99

This has been updated now, I don't think we need a new maintainer

πŸ‡ΊπŸ‡ΈUnited States drupalninja99

A shot in the dark but I liked the array_values() addition that was questioned in #128. This makes it much easier to query component data from GraphQL. Adding to the layout_builder-rebase_drupal_9_3_x-2942975-159.patch so that you can see what it looks like in comparison.

πŸ‡ΊπŸ‡ΈUnited States drupalninja99

After quite a bit of work/testing I found the solution I needed in project jsonapi_include_lb.

πŸ‡ΊπŸ‡ΈUnited States drupalninja99

I have the same issue cited in https://www.drupal.org/project/drupal/issues/2942975#comment-13361683 πŸ“Œ [PP-1] Expose Layout Builder data to REST and JSON:API Postponed and other places where I can't fetch inline block data from JSON:API like I would say paragraphs. Those JSON:API endpoints only include reusable blocks and the patch from this thread does not include all the block fields in layout_builder__layout. That means I am unable to get all the block data I need on the frontend.

πŸ‡ΊπŸ‡ΈUnited States drupalninja99

I am confused why we went away from this approach which return components as an array of objects: https://www.drupal.org/files/issues/2021-08-25/2942975_145.patch β†’

This is much more useful in Gatsby. I saw at some point that change went away back to a nested object.

Production build 0.71.5 2024