Title: [Plugin: WP Document Revisions] Search Documents error
Last modified: August 20, 2016

---

# [Plugin: WP Document Revisions] Search Documents error

 *  [L O Lawson](https://wordpress.org/support/users/l-o-lawson/)
 * (@l-o-lawson)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-wp-document-revisions-search-documents-error/)
 * Using the search documents feature generates the following error:
 * Warning: Illegal offset type in isset or empty in /home/XXX/public_html/wp-includes/
   post.php on line 840
 * (the if empty conditional in the function below)
 *     ```
       function get_post_type_object( $post_type ) {
       	global $wp_post_types;
   
       	if ( empty($wp_post_types[$post_type]) )
       		return null;
   
       	return $wp_post_types[$post_type];
       }
       ```
   
 * Any ideas on the fix?
 * [http://wordpress.org/extend/plugins/wp-document-revisions/](http://wordpress.org/extend/plugins/wp-document-revisions/)

The topic ‘[Plugin: WP Document Revisions] Search Documents error’ is closed to 
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-document-revisions_6c6c6c.svg)
 * [WP Document Revisions](https://wordpress.org/plugins/wp-document-revisions/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-document-revisions/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-document-revisions/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-document-revisions/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-document-revisions/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [L O Lawson](https://wordpress.org/support/users/l-o-lawson/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-wp-document-revisions-search-documents-error/)
 * Status: not resolved