Support

Account

Home Forums Feedback 6.3.6 version field validation error. Unable to perform validation.

Solving

6.3.6 version field validation error. Unable to perform validation.

  • Hello,

    On a server running Cloudflare (if that matters) editing menus causes this following error on ACF 6.3.6. The error message is as follows in the image.

    I had to revert to ACF 6.3.5 version and there are no issues there.

    Has there been major changes in this version that might be causing this issue?

    Cheers.

  • This is not just a Cloudflare issue; I’ve encountered it as well, and can confirm reverting to 6.3.5 resolves the issue.

    This is also being discussed over in the WordPress Support Forums. (I tried posting this reply including the link a moment ago and it vanished into the ether, so I’m trying again without the link.)

  • I just ran a diff between 6.3.5 and 6.3.6 and I think I see what the issue is.

    In the file includes/validation.php, in the ajax_validate_save_post() method, there’s a conditional that checks the acf_verify_ajax() function. In the previous version, if that function returned false, it would just die() but now it’s returning wp_send_json_success() with the error message we’re seeing.

    My immediate guess is that this code really is not even supposed to be running when you’re saving menus, but in the past it didn’t cause any noticeable issues so no one knew it was running at all. But with this change β€” which has nothing to do with saving menus β€”Β it’s causing the error.

    Since all attention in WP core development seems to be on the Block Editor now, and this old way of managing menus is being phased out (or at least neglected), I suspect that’s why this slipped through unnoticed.

  • Wow!

    Well done on the detective work. πŸ˜„

    Hopefully WP Engine catches this thread or knows about the issue.

    πŸ’ͺ🏻

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.