- 📋
 - 開発
 
Contact Form 7を5.5.1に更新すると400エラーが発生
作成日:
2021年10月19日
	Contact Form 7を5.4xから5.5.1に更新すると、これまで使用していたフォームが一部送信エラーとなりました。
原因を調べていると、テキストフォームのname属性値として「 id 」と指定していたことに起因していることがわかりました。
もともとContact Form 7では使用してはいけないnameがリストアップされており、編集画面でもバリデーションが効いていて使用出来ないようにされていましたが、「id」はここには挙げられていないのですが、含まれてしまったのかもしれません。
使用できないname属性値
- m
 - p
 - posts
 - w
 - cat
 - withcomments
 - withoutcomments
 - s
 - search
 - exact
 - sentence
 - calendar
 - page
 - paged
 - more
 - tb
 - pb
 - author
 - order
 - orderby
 - year
 - monthnum
 - day
 - hour
 - minute
 - second
 - name
 - category_name
 - tag
 - feed
 - author_name
 - static
 - pagename
 - page_id
 - error
 - attachment
 - attachment_id
 - subpost
 - subpost_id
 - preview
 - robots
 - taxonomy
 - term
 - cpage
 - post_type
 - embed
 
Are there any reserved or unavailable words for the name of an input field?
https://contactform7.com/faq/are-there-any-reserved-or-unavailable-words-for-the-name-of-an-input-field/
Yes, there are some words that are not available; but this is actually not a restriction of Contact Form 7, but a restriction of WordPress. If you post an input field with a name that is the same a…
物草 灸太郎
WordPressでホームページを制作しつつ、休日は畑を耕したりDIYを楽しんでいます。
コメントをどうぞ