Skip to content

Invalid form data error when saving settings in plugin UI #21041

@maybellyne

Description

@maybellyne
  • I've read and understood the contribution guidelines.
  • I've searched for any related issues and avoided creating a duplicate issue.

Please give us a description of what happened

When you make changes in the plugin settings UI, such as site representation, site basics, content types, categories & tags, an error relating to custom post types is triggered.

To Reproduce

Step-by-step reproduction instructions

  1. Install other plugins that add CPTs such as EVents Calendar, CPT UI, ACF
  2. Make any changes in our plugin settings UI e.g edit the meta description field for a CPT, post or page
  3. Save changes

Expected results

  1. Changes should be saved normally

Actual results

  1. An error is triggered: Oh no! It seems your form contains invalid data. Please review the following fields: If you deactivate the plugin responsible for the CPT, the error is resolved, and another CPT becomes the issue.
  2. A user reported the same error on a fresh installation with no other plugins. I could replicate this where other default fields such as organization name/logo or Facebook are reported as invalid

Screenshots, screen recording, code snippet

If possible, please provide a screenshot, a screen recording or a code snippet which demonstrates the bug.
issue
error1
ktrTzWe

Technical info

  • If relevant, which editor is affected (or editors):
  • Block Editor
  • Gutenberg Editor
  • Elementor Editor
  • Classic Editor
  • Other:
  • Which browser is affected (or browsers):
  • Chrome
  • Firefox
  • Safari
  • Other:

Used versions

  • Device you are using:
  • Operating system:
  • PHP version:
  • WordPress version: 6.4.2
  • WordPress Theme: any default theme
  • Yoast SEO version: 21.8
  • Gutenberg plugin version:
  • Elementor plugin version:
  • Classic Editor plugin version:
  • Relevant plugins in case of a bug: CPT UI, ACF, Events Calendar

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions