Title: Pantheon Support
Last modified: March 8, 2019

---

# Pantheon Support

 *  [mdfrederickjr](https://wordpress.org/support/users/mdfrederickjr/)
 * (@mdfrederickjr)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/pantheon-support/)
 * Thanks for the great plugin! Had some trouble getting it to work in Pantheon.
   Posting this in the hopes that it helps someone else, and possibly improves the
   plugin.
 * To use this plugin in Pantheon I had to do the following 3 things:
 * – Add the following to the wp-config.php so the plugin has filesystem access
   
   define(‘FS_METHOD’, ‘direct’);
 * – Following the directions [Pantheon provides](https://pantheon.io/docs/assuming-write-access/),
   create a directory in /uploads and symbolically link it to where this plugin 
   wants to write (/plugins/exports-and-reports/exports)
 * – [Modify one line of the plugin](https://plugins.trac.wordpress.org/browser/exports-and-reports/trunk/wp-admin-ui/Admin.class.php#L23).
   Wrapping a constant in PHP’s `realpath` function so as to expand out our symbolic
   link to get a correct download link.
 * You’ll need to change this line:
    wp_redirect( str_replace( WP_ADMIN_UI_EXPORT_DIR,
   WP_ADMIN_UI_EXPORT_URL, $file ) ); to: wp_redirect( str_replace( realpath(WP_ADMIN_UI_EXPORT_DIR),
   WP_ADMIN_UI_EXPORT_URL, $file ) );
 * There is likely a better solution, but this worked for me.
 * Tackling it as the plugin author could be done in several ways. Defining the 
   constant differently, not wrapping $file in realpath (this may not work), or 
   at this point in the code wrapping the constant in realpath to expand out the
   sym-link before str_replace and redirect. /shrug Just 2 cents.

The topic ‘Pantheon Support’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/exports-and-reports.svg)
 * [Exports and Reports](https://wordpress.org/plugins/exports-and-reports/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/exports-and-reports/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/exports-and-reports/)
 * [Active Topics](https://wordpress.org/support/plugin/exports-and-reports/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/exports-and-reports/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/exports-and-reports/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [mdfrederickjr](https://wordpress.org/support/users/mdfrederickjr/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/pantheon-support/)
 * Status: not a support question