Title: Export doesn’t work, no data to export
Last modified: August 21, 2016

---

# Export doesn’t work, no data to export

 *  Resolved [Kadir Kara](https://wordpress.org/support/users/kadir-kara/)
 * (@kadir-kara)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/export-doesnt-work-no-data-to-export/)
 * Hello there,
 * I’m facing the problem that I can’t export a CSV file with WP CSV. It says that
   I have no posts to export.
 * I wanted to export my events (I’m using The Events Manager) to look up the configuration
   of the headers to have a clue which fields I need when I want to import events.
 * Did someone else face this problem?
 * [https://wordpress.org/plugins/wp-csv/](https://wordpress.org/plugins/wp-csv/)

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

 *  Plugin Author [CPK Web Solutions](https://wordpress.org/support/users/cpkwebsolutions/)
 * (@cpkwebsolutions)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/export-doesnt-work-no-data-to-export/#post-5160353)
 * Hi Kadir
 * Thanks for your message. Please try the following:
 * 1) Check the settings page carefully to make sure you’re not filtering out the
   items you want.
 * 2) Check your server settings. It could be that WP-CSV can’t create a file successfully.
 * Hope that helps. If not, then you may need to try a different plugin, as I don’t
   currently have time to maintain or fully support this one for free.
 * Best wishes
 * Paul
 *  [murrayac](https://wordpress.org/support/users/jumpmuz/)
 * (@jumpmuz)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/export-doesnt-work-no-data-to-export/#post-5160515)
 * I have also found this with the latest WordPress 4.0 Beta 3, but am ahead of 
   myself and will wait until WP 4 is launched.
 *  Plugin Author [CPK Web Solutions](https://wordpress.org/support/users/cpkwebsolutions/)
 * (@cpkwebsolutions)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/export-doesnt-work-no-data-to-export/#post-5160518)
 * Hi Murrayac
 * Sorry if it doesn’t work for you. Unfortunately I don’t have time to test on 
   betas (or anything else), as you may have read.
 * I know it works on my test server though, and someone hired me during the week
   to troubleshoot another issue, so I know it works on their test server as of 
   a few days ago.
 * So, my advice to Kadir may apply to you. You should check your server config.
   Make sure there are no errors in your logs, etc, and nothing to stop the web 
   user writing files to disk.
 * If you can give me a clue of some sort (like an error message) I may be able 
   to help. Otherwise, you may need to try another plugin.
 * Best wishes
 * Paul
 *  [murrayac](https://wordpress.org/support/users/jumpmuz/)
 * (@jumpmuz)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/export-doesnt-work-no-data-to-export/#post-5160519)
 * Hey Paul,
 * Thanks for your effort in this plugin. I activated debugging in WordPress and
   it came up with this. I’m not sure where the server config files are.
 *     ```
       Notice: wpdb::escape is deprecated since version 3.6! Use wpdb::prepare() or esc_sql() instead. in /Applications/bitnami/apps/wordpress/htdocs/wp-includes/functions.php on line 3206
       Warning: mkdir(): Permission denied in /Applications/bitnami/apps/wordpress/htdocs/wp-content/plugins/wp-csv/wp-csv.php on line 156
       Notice: Undefined index: imagefolder in /Applications/bitnami/apps/wordpress/htdocs/wp-content/plugins/wp-csv/wp-csv.php on line 174
       Notice: Undefined index: csv_path in /Applications/bitnami/apps/wordpress/htdocs/wp-content/plugins/wp-csv/wp-csv.php on line 185
       Warning: mkdir(): Permission denied in /Applications/bitnami/apps/wordpress/htdocs/wp-content/plugins/wp-csv/wp-csv.php on line 156
       Warning: mysql_query() expects parameter 2 to be resource, object given in /Applications/bitnami/apps/wordpress/htdocs/wp-content/plugins/wp-csv/CPK_WPCSV_Posts_Model.php on line 24
       Notice: Undefined variable: error in /Applications/bitnami/apps/wordpress/htdocs/wp-content/plugins/wp-csv/wp-csv.php on line 240
       ```
   
 *  Plugin Author [CPK Web Solutions](https://wordpress.org/support/users/cpkwebsolutions/)
 * (@cpkwebsolutions)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/export-doesnt-work-no-data-to-export/#post-5160520)
 * Hi Murrayac
 * The Warning: mkdir…Permission denied… error means that the plugin doesn’t have
   permission to create folders (and probably won’t be able to create files either).
   You should talk to whoever administers your server about that.
 * Hopefully, the mysql_query issue will go away too once the other issues are resolved,
   but if not let me know.
 * Best wishes
 * Paul
 *  [apdobaj](https://wordpress.org/support/users/apdobaj/)
 * (@apdobaj)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/export-doesnt-work-no-data-to-export/#post-5160539)
 * Hi Murrayac,
 * Did you ever get this resolved? I’ve got the same issue. Can you tell me where
   the csv file gets written so I can check permissions there? thx
 *  [murrayac](https://wordpress.org/support/users/jumpmuz/)
 * (@jumpmuz)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/export-doesnt-work-no-data-to-export/#post-5160540)
 * Hey Apdobaj,
 * Changing the permissions worked for my localhost. I used this tutorial:
 * [http://takumahabu.com/?p=398](http://takumahabu.com/?p=398)
 *     ```
       cd /Volumes/SSD/Applications/wordpress/apps/wordpress/htdocs
       sudo find ./ -type d -exec chmod 755 {} \;
       sudo find ./ -type f -exec chmod 644 {} \;
       ```
   
 *     ```
       sudo cd /Volumes/SSD/Applications/wordpress/apps/wordpress/htdocs/wp-content
       chown -R USERNAME:Webmaster
       ```
   
 * Since I’m using Bitnami I changed the path to suit.
 *  Plugin Author [CPK Web Solutions](https://wordpress.org/support/users/cpkwebsolutions/)
 * (@cpkwebsolutions)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/export-doesnt-work-no-data-to-export/#post-5160541)
 * Hi All
 * Permissions issues seemed to be the biggest problem for users, so I’ve made a
   small fix to 1) improve the plugin’s capability to resolve the issue automatically,
   and 2) give a much more informative error message when human intervention is 
   required, as it probably was above.
 * Best wishes
 * Paul
 *  [murrayac](https://wordpress.org/support/users/jumpmuz/)
 * (@jumpmuz)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/export-doesnt-work-no-data-to-export/#post-5160542)
 * Great work Paul 🙂

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

The topic ‘Export doesn’t work, no data to export’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-csv.svg)
 * [WP CSV](https://wordpress.org/plugins/wp-csv/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-csv/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-csv/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-csv/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-csv/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-csv/reviews/)

## Tags

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

 * 9 replies
 * 4 participants
 * Last reply from: [murrayac](https://wordpress.org/support/users/jumpmuz/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/export-doesnt-work-no-data-to-export/#post-5160542)
 * Status: resolved