New Content Type does not show Domain Access fields

Created on 15 March 2018, almost 7 years ago
Updated 18 July 2023, over 1 year ago

As the admin user (uid=1):
- I created the primary domain
- I created the secondary domain
- I selected the secondary domain and logged in as the admin user (uid=1)
- I verified that the admin user has Domain Access to all domains, and is Domain Administrator for all domains
- I create a new Content Type - the Domain Access fields are automatically added to the list of fields along with Body
- I attempt to create new Content of new Content Type, but Domain Access fields are missing
- Content shows in wrong domain because I can't set Domain on creation
- I created 2 new Content Types trying to cause something different but got identical results
- I noticed that under "Manage form display" the Domain fields were in the Disabled section, but enabling them had no effect
- I also made all Domain fields Required
-- this caused the new content not to save due to missing "Send to all affiliates" (required makes boolean fields only valid when checked)
-- when the form reloaded with the error, the "Send to all affiliates" field was now visible
-- I set the "Send to all affiliates" field, and the form returns with an error about the source domain, but no additional fields are available

I am using:
- Drupal 8.5.0
- PHP 7.2.3
- MySQL 5.7.21
- Inline Form Errors (core) is enabled - currently can't disable for some reason
- Trusted Host Settings not currently configured
- All Domain module that come with Domain Access are enabled
- "Move Domain Access fields to advanced node settings" is enabled (I also tried an iteration with this setting disabled)
- Everything else is default

Adding Domain settings to new Content Types seems like basic functionality, so I'm not sure if I'm doing something completely dumb, or if there's something about this module or Drupal 8 that I'm missing.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States arnaldop St Cloud, FL

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¨πŸ‡³China hongqing

    There is the same bug in version 2.0 with D 10.

  • πŸ‡©πŸ‡ͺGermany SteffenR Germany

    @hongqing Since the issue was closed 5 years ago, it would make more sense to create a new issue and add the old one as a relation.

  • πŸ‡¬πŸ‡§United Kingdom ippy

    I know its closed but as I came here with a similar problem I wanted to leave a quick comment in case anyone else is hunting and has the same cause...

    On a site with three Domain records, one content type "started" displaying only the "Send to all affiliates" option and failing to save without a source domain.

    As it happens it is the last CT to be created on the site, but that was like 6 years ago, so not exactly "new".

    After following various threads, on my third visit to the form display structure I finally noticed that the widget for both Domain Access and Domain Source on this CT had been set to "Autocomplete". What? Clearly that will never work. (Smacks head.) Switching back to radio/button widget "fixed" the issue.

    All content of this type is missing its Domain source info. Resaving each node (now that is possible) reinstates the values. Bulk assignment via content admin ("add content to ABC domain") not helpful here/does not set both access and source info.

    The only real mystery for me is how/why the widget had changed. The site was developed in D8 ~6 years ago and was migrated to Drupal 9 within the past 6-9 months. The client can't edit the CT form display settings and I know I haven't. However, as nobody has edited content of this type for 3+ years I can't narrow down when it "started".

Production build 0.71.5 2024