Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to setting contact form 7 plugin to get messages from guest users without email

I use plugin Contact Form 7 in my wordpress project and I have custom form with fields:

  • name
  • phone
  • message

When I try send message as guest user get error with message:

{
    additional_errors: []
    code: "wp_die"
    data: {status: 500}
    message: "You are not authorized to perform this action."
}

How solve this problem?

like image 628
Andreas Hunter Avatar asked Dec 28 '25 04:12

Andreas Hunter


1 Answers

I resolve this issue by doing the following in "All In One WP Security & Firewall".

  1. Go to Miscellaneous
  2. Go to WP REST API
  3. List item
  4. Uncheck Disallow Unauthorized REST Requests:
  5. List item

Submit

like image 150
Zohaib Waseem Avatar answered Dec 30 '25 17:12

Zohaib Waseem