Problem/Motivation

When I create new content I get validation error messages for all the fields I have filled in. It looks like a loop that runs through the fields.
This happens although the fields are filled in correctly and the content is saved.
It is only for creating new content, not editing. This has happened on two different sites for me.

Steps to Reproduce

Install and enable yoast_seo version “2.0.0-alpha3" on Drupal version 8.5.8
Add new content
Save

Expected Result

No validation errors

Actual Result

Looks like a loop of validation errors. (see image)

Comments

SaraKlasson created an issue. See original summary.

avpaderno’s picture

Assigned: SaraKlasson » Unassigned
flyke’s picture

I noticed this:
Content type with a Yoast field:
- click to add new content of that content type
- do not fill in any field, do not click save or modify anything, just open blank create new node page
- now just open the homepage
-> you get validation errors on all your requried fields without actually having created a new node

flyke’s picture

This issue is still present in latest 2.x-dev.
It makes yoast_seo module completely unusable.

To recap:
- click to create a new node that has some required fields, like node/add/news if you have a news content type with required fields
- do nothing when this page is open, just immediatly open the homepage for example
- homepage shows validation errors for all reuired fields now despite you have not clicked on save or anything.

flyke’s picture

Priority: Normal » Major

I think its major because it kinda breaks any websites default functionality if there are required fields

tom_vdb’s picture

StatusFileSize
new706 bytes

I have created a quick and dirty fix.

avpaderno’s picture

Status: Active » Needs review
qzmenko’s picture

Status: Needs review » Needs work

Patch #6 is only suitable as a temporary solution, because it removes all messages on the page altogether.