Title: Export Array Error after Update
Last modified: November 14, 2017

---

# Export Array Error after Update

 *  Resolved [dbarbella](https://wordpress.org/support/users/dbarbella/)
 * (@dbarbella)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/export-array-error-after-update/)
 * Hello,
    Using Donation plugin version 1.8.16
 * The Export Donation History feature is returning a series of array errors.
    the
   list of errors is quite long and note sure if pasteable in this forum, but I’ll
   paste the more common lines for reference.
 * I suspect the update to the plugin is the culprit.
    What can be done to correct
   the export error?
 * the other export reports seems to work fine, it’s just the Donation History that
   seems to be broken.
 * Thanks
 * Most of the error listing consists of items like this:
 * Warning: array_keys() expects parameter 1 to be array, null given in /home/jarcpnl/
   public_html/wp-content/themes/peak/functions.php on line 1500
 * Warning: array_search() expects parameter 2 to be array, null given in /home/
   jarcpnl/public_html/wp-content/themes/peak/functions.php on line 1501
 * Warning: array_slice() expects parameter 1 to be array, null given in /home/jarcpnl/
   public_html/wp-content/themes/peak/functions.php on line 1503
 * Warning: array_slice() expects parameter 1 to be array, null given in /home/jarcpnl/
   public_html/wp-content/themes/peak/functions.php on line 1503
 * then an amount of error listings such as:
 * Warning: Invalid argument supplied for foreach() in /home/jarcpnl/public_html/
   wp-content/plugins/give/includes/admin/tools/export/class-batch-export.php on
   line 210
 * Warning: Invalid argument supplied for foreach() in /home/jarcpnl/public_html/
   wp-content/plugins/give/includes/admin/tools/export/class-batch-export.php on
   line 210
 * Warning: Invalid argument supplied for foreach() in /home/jarcpnl/public_html/
   wp-content/plugins/give/includes/admin/tools/export/class-batch-export.php on
   line 210
 * Warning: Invalid argument supplied for foreach() in /home/jarcpnl/public_html/
   wp-content/plugins/give/includes/admin/tools/export/class-batch-export.php on
   line 210
 * Warning: Invalid argument supplied for foreach() in /home/jarcpnl/public_html/
   wp-content/plugins/give/includes/admin/tools/export/class-batch-export.php on
   line 210

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

 *  Plugin Contributor [Matt Cromwell](https://wordpress.org/support/users/webdevmattcrom/)
 * (@webdevmattcrom)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/export-array-error-after-update/#post-9683741)
 * Hi there,
 * That seems to be the result of a conflict with your theme called “Peak”. Is that
   a premium theme, or one that you can provide a link to so I can download it and
   test it? We don’t have any other reports of this error at all right now so it’s
   highly unlikely that it’s just a bug with Give.
 * Let me know about that theme and we’ll go from there.
 * Thanks!
 *  Thread Starter [dbarbella](https://wordpress.org/support/users/dbarbella/)
 * (@dbarbella)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/export-array-error-after-update/#post-9686746)
 * Hey Matt,
    Thanks so much for the quick reply. Yes, you are very right. It was
   from a premium theme acquired from this publisher: [https://www.livemeshthemes.com/products/peak-charity-theme/](https://www.livemeshthemes.com/products/peak-charity-theme/)
 * A developer did get it working (I admit, I’m an admin user managing the site,
   not a developer). If I understand correctly, the issue ended up being the plugin
   was updated but WP itself also needed to be updated because of a native WP function
   called array_insert_after (not sure of the deeper details).
 * So the export is now working without the array errors.
 * One of the charity site admins just shared that while exporting, not all fields
   are being exported as they were previously (yet to verify if that’s a real issue
   or not. If so, I’ll open up a new topic to share and see what thoughts might 
   come to mind).
 * Matt,thanks again for the fast and thoughtful response.
    Very admirable (many
   plugin authors aren’t so attentive).
 * -Dave
 *  Plugin Contributor [Matt Cromwell](https://wordpress.org/support/users/webdevmattcrom/)
 * (@webdevmattcrom)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/export-array-error-after-update/#post-9687287)
 * Happy to help, and glad to hear you’ve made progress. Keep us posted if you have
   other issues at all.
 * Thanks!

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

The topic ‘Export Array Error after Update’ is closed to new replies.

 * ![](https://ps.w.org/give/assets/icon-256x256.jpg?rev=2873287)
 * [GiveWP - Donation Plugin and Fundraising Platform](https://wordpress.org/plugins/give/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/give/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/give/)
 * [Active Topics](https://wordpress.org/support/plugin/give/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/give/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/give/reviews/)

## Tags

 * [array](https://wordpress.org/support/topic-tag/array/)
 * [export](https://wordpress.org/support/topic-tag/export/)

 * 3 replies
 * 2 participants
 * Last reply from: [Matt Cromwell](https://wordpress.org/support/users/webdevmattcrom/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/export-array-error-after-update/#post-9687287)
 * Status: resolved