Support » Plugin: Rackspace CDN » Synchronize Button Does Nothing.

  • I believe this is an https problem.

    WordPress makes use of the following constants when determining the path to the content and plugin directories. These should not be used directly by plugins or themes, but are listed here for completeness.

    WP_CONTENT_DIR // no trailing slash, full paths only
    WP_CONTENT_URL // full url
    WP_PLUGIN_DIR // full path, no trailing slash
    WP_PLUGIN_URL // full url, no trailing slash

    http://codex.wordpress.org/Determining_Plugin_and_Content_Directories

    You are using WP_PLUGIN_URL

    Change

    define(‘RS_CDN_URL’, WP_PLUGIN_URL.’/rackspace-cloud-files-cdn/’);

    to

    define(‘RS_CDN_URL’, plugins_url( ‘rackspace-cloud-files-cdn/’, __FILE__ ));

    and

    wp_enqueue_script(‘admin-js’, RS_CDN_URL.’assets/js/admin.js’);

    to

    wp_enqueue_script(‘admin-js’, plugins_url( ‘assets/js/admin.js’, __FILE__ ) );

    I think that made it work. Or at least it is allowing it to sync now. I look forward to an update so I can take out my hacks. Let me know if you need any help with that.

    https://wordpress.org/plugins/rackspace-cloud-files-cdn/

  • The topic ‘Synchronize Button Does Nothing.’ is closed to new replies.