• 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, 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. 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.