Title: Export Report as a Spreadsheet (CSV) causes PHP error
Last modified: August 30, 2016

---

# Export Report as a Spreadsheet (CSV) causes PHP error

 *  [kipdurney](https://wordpress.org/support/users/kipdurney/)
 * (@kipdurney)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/export-report-as-a-spreadsheet-csv-causes-php-error/)
 * When I click generate report, I get this PHP error:
 * Warning: include(../../../../wp-config.php): failed to open stream: No such file
   or directory in /home/kipdurney/gef-kids.com/wp-content/plugins/seamless-donations/
   legacy/admin-views/export.php on line 5
 * Warning: include(): Failed opening ‘../../../../wp-config.php’ for inclusion (
   include_path=’.:/usr/local/lib/php:/usr/local/php5/lib/pear’) in /home/kipdurney/
   gef-kids.com/wp-content/plugins/seamless-donations/legacy/admin-views/export.
   php on line 5
 * Fatal error: Call to undefined function current_user_can() in /home/kipdurney/
   gef-kids.com/wp-content/plugins/seamless-donations/legacy/admin-views/export.
   php on line 7
 * Any ideas???
 * [https://wordpress.org/plugins/seamless-donations/](https://wordpress.org/plugins/seamless-donations/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [David Gewirtz](https://wordpress.org/support/users/dgewirtz/)
 * (@dgewirtz)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/export-report-as-a-spreadsheet-csv-causes-php-error/#post-6519787)
 * You’re either running an old, pretty-much-unsupported version of Seamless Donations
   or a current release in legacy mode with code built well before I adopted the
   plugin, so this is more of a guess/hack than a really supportable answer.
 * Try replacing /kipdurney/gef-kids.com/wp-content/plugins/seamless-donations/legacy/
   admin-views/export.php with this file:
 * [https://www.dropbox.com/s/33mrij6pctrlwqy/export.php?dl=0](https://www.dropbox.com/s/33mrij6pctrlwqy/export.php?dl=0)
 * And definitely let me know if it helps. If it does, I’ll roll it back into the
   next release.
 * –David

Viewing 1 replies (of 1 total)

The topic ‘Export Report as a Spreadsheet (CSV) causes PHP error’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/seamless-donations.svg)
 * [Seamless Donations is Sunset](https://wordpress.org/plugins/seamless-donations/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/seamless-donations/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/seamless-donations/)
 * [Active Topics](https://wordpress.org/support/plugin/seamless-donations/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/seamless-donations/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/seamless-donations/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [David Gewirtz](https://wordpress.org/support/users/dgewirtz/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/export-report-as-a-spreadsheet-csv-causes-php-error/#post-6519787)
 * Status: not resolved