Title: Validation error for field &#8216;post_content&#8217;
Last modified: August 31, 2018

---

# Validation error for field ‘post_content’

 *  ResolvedPlugin Contributor [sburdett](https://wordpress.org/support/users/sburdett/)
 * (@sburdett)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/validation-error-for-field-post_content/)
 * Well, I hope I’m not becoming annoying but I am having another problem. I am 
   getting this error when syncing all documents now:
 * “Validation error for field ‘post_content’: Invalid codepoint B”
 * Have you run into this before?

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

 *  Plugin Author [Andrea Landonio](https://wordpress.org/support/users/lando1982/)
 * (@lando1982)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/validation-error-for-field-post_content/#post-10652548)
 * Hi, never seen before but searching on Google it seems an error that occurs when
   using UTF-8 characters that are not allowed..
 *  Plugin Contributor [sburdett](https://wordpress.org/support/users/sburdett/)
 * (@sburdett)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/validation-error-for-field-post_content/#post-10656972)
 * Turns out the issue was Unicode Character ‘LINE TABULATION’ (U+000B). This is
   a valid UTF-8 Character but not a valid XML Character and therefore not valid
   for Cloud Search. I Just went through and deleted the offending text from the
   DB but it would be nice if the plugin could parse for these things and remove
   or delete them. If it was just this one you could just change this function:
 *     ```
       function acs_put_documents( $docs ) {
           try {
               // Get client
               $client = acs_get_domain_client();
               $docs = json_encode( $docs );
               $docs = str_replace("\u000b","",$docs);
               // Upload documents
               $result = $client->uploadDocuments( array(
                   'documents' => $docs,
                   'contentType' => 'application/json'
               ) );
   
               // Return result
               return $result->getPath( 'status' ) == 'success';
           }
           catch ( \Exception $e ) {
       	    error_log( __( 'Error uploading documents', ACS::PREFIX ) . ': ' . $e->getMessage() );
   
               return false;
           }
       }
       ```
   
 * but I’m guessing there are others that could be an issue. At first, I did this
   ^ but I don’t like modifying core plugin files so I opted to go back and just
   delete the offending text and hope it stays gone. It also would be nice if it
   threw a more visible error if the documents did not sync. For now, it just throws
   an error to the admin log. Anyway, just some possible future enhancement suggestions
   and maybe this can help if someone else encounters this error. It took me a long
   time to figure it out.
    -  This reply was modified 7 years, 9 months ago by [sburdett](https://wordpress.org/support/users/sburdett/).
 *  Plugin Author [Andrea Landonio](https://wordpress.org/support/users/lando1982/)
 * (@lando1982)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/validation-error-for-field-post_content/#post-10659907)
 * Hello, nice job! It could be a more flexible idea to give users the opportunity
   to add in the plugin settings page a list of “chars” to replace..
 * Now, I’m working on a big extension, but when ready I’ll integrate your code 
   in the plugin, it’s good extension!
 * For more info about sync errors.. I’m thinking for what I can do… keep in touch..
   😉
 * Thanks a lot!
    Bye
 *  Plugin Author [Andrea Landonio](https://wordpress.org/support/users/lando1982/)
 * (@lando1982)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/validation-error-for-field-post_content/#post-10738804)
 * Hi Shane,
 * invalid chars remove features added to the plugin!
    I’ve added your WordPress
   user to the contributor of the plugin, nice job! Very appreciated!

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

The topic ‘Validation error for field ‘post_content’’ is closed to new replies.

 * ![](https://ps.w.org/cloud-search/assets/icon-256x256.png?rev=1350439)
 * [CloudSearch](https://wordpress.org/plugins/cloud-search/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cloud-search/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cloud-search/)
 * [Active Topics](https://wordpress.org/support/plugin/cloud-search/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cloud-search/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cloud-search/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Andrea Landonio](https://wordpress.org/support/users/lando1982/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/validation-error-for-field-post_content/#post-10738804)
 * Status: resolved