Not working and getting WSOD

Created on 6 November 2024, 5 months ago

Problem/Motivation

I just installed this module version 2.0.2 with my D10.2.10 and PHP 8.2.11. I created a new content type named test and added a new metatag field named "meta" (see test.png). I am seeing several problems:

In my meta field setting (/admin/structure/types/manage/test/fields/node.test.meta), I click on the "Set default value" and then "Save settings" but when I come back, that option is unchecked again (see setting.png)
In the form display page (/admin/structure/types/manage/test/form-display), I have set the meta field to not be in side bar and not use container (see form.png) but in the create a test node page (/node/add/test), the meta field doesn't show (see create1.png and create2.png)

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @monaw
  • πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

    How did you create the field without the typical "field_" prefix? I wonder if there's a collision happening somehow?

  • πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA
  • πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

    Please try naming the field something different, e.g. "meta_tags", see if that works. If it ends up being a compatibility issue we can add a note to the docs and via hook_requirements().

  • i upgraded to 2.1.0 and created a meta tag field named "meta_tags" in my test content type and was able to add a new test content without the above error. i'm not quite sure whether the upgrade to 2.1.0 or naming the field "meta_tags" or both solved the problem but i consider this problem solved so feel free to close this issue, thanks!

  • πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

    I'm glad you were able to work out a solution.

    Let's turn this into a documentation task so others can be aware of the problem.

  • ok, i did a bit more testing:

    • if i name my meta tag field "meta", then it doesn't show up in my create/edit form, whether the form widget is configured to use the sidebar or not; if i name it something else (like "metatags"), then it shows fine on the create and edit forms
    • since i am now able to add test content nodes, it is safe to assume that version 2.1.0 fixed the WSOD error mentioned in my original issue text
Production build 0.71.5 2024