WordPress.org

Ready to get started?Download WordPress

Forums

Exports and Reports
Cannot download - error :-( (3 posts)

  1. marky_uk
    Member
    Posted 1 year ago #

    Hi there

    I'm seeing this when attempting any file download -

    You don't have permission to access /wp-contentC:wampwwwwp-contentpluginsexports-and-reportswp-admin-uiAdmin.class.php on this server.

    I'm running on a wamp environment. Can you help?

    Thanks!

    Mark

    http://wordpress.org/extend/plugins/exports-and-reports/

  2. fantomas_bg
    Member
    Posted 1 year ago #

    Mark I just fixed it for myself. You have to do a few things:
    in this file plugins\exports-and-reports\wp-admin-ui\Admin.class.php

    1. (line 13) change: if(isset($_GET['download']) && !isset($_GET['page']) && is_user_logged_in() && isset($_GET['_wpnonce']) && false === wp_verify_nonce($_GET['_wpnonce'], 'wp-admin-ui-export'))

    to: if(isset($_GET['download']) && !isset($_GET['page']) && is_user_logged_in() && isset($_GET['_wpnonce']) && false != wp_verify_nonce($_GET['_wpnonce'], 'wp-admin-ui-export'))

    2. after line 16 add: $file = str_replace('\\', '/', $file);

    3. line 122 change: $this->base_url = WP_CONTENT_URL.str_replace(WP_CONTENT_DIR,'',__FILE__);

    to: $this->base_url = plugins_url( 'Admin.class.php', __FILE__ );

    Then the file exports should work.

  3. Scott Kingsley Clark
    Member
    Plugin Author

    Posted 1 year ago #

    I'll take a look at this, sorry for the delay. I've been deep into Pods development and haven't had much free time since the 2.0 launch.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.