Title: error when exporting &#8221; Warning: in_array() expects parameter 2&#8243;
Last modified: February 20, 2019

---

# error when exporting ” Warning: in_array() expects parameter 2″

 *  Resolved [srj](https://wordpress.org/support/users/sranjeet/)
 * (@sranjeet)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/error-when-exporting-warning-in_array-expects-parameter-2/)
 * I am getting this error when exporting a post
 * Warning: in_array() expects parameter 2 to be array, string given in /home/drcvmph792d6/
   public_html/wp-content/plugins/wp-all-export-pro/libraries/XmlCsvExport.php on
   line 836
 * please help

Viewing 1 replies (of 1 total)

 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/error-when-exporting-warning-in_array-expects-parameter-2/#post-11246173)
 * Hi [@sranjeet](https://wordpress.org/support/users/sranjeet/)
 * This error typically means that the ZipArchive class is not installed/activated
   on your server. Please contact your web host and ask them to make sure ZipArchive
   is enabled.

Viewing 1 replies (of 1 total)

The topic ‘error when exporting ” Warning: in_array() expects parameter 2″’ is closed
to new replies.

 * ![](https://ps.w.org/wp-all-export/assets/icon-256x256.png?rev=2570162)
 * [WP All Export – Drag & Drop Export to Any Custom CSV, XML & Excel](https://wordpress.org/plugins/wp-all-export/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-all-export/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-all-export/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-all-export/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-all-export/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-all-export/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/error-when-exporting-warning-in_array-expects-parameter-2/#post-11246173)
 * Status: resolved