WordPress.org

Ready to get started?Download WordPress

Forums

Sharedaddy
Unusable Setting Screen (5 posts)

  1. bruno.pinho
    Member
    Posted 3 years ago #

    I'm using WP3.1.1 and Sharedaddy 0.2.12 an I get this boken admin screen:

    https://lh6.googleusercontent.com/_vNlHxnPhutI/TbbuVoyR-CI/AAAAAAAABnI/YG0RSYo0wPM/s720/broken-sharedaddy.jpg

  2. Emyr Thomas
    Member
    Posted 3 years ago #

    Did you manage to fix this problem. I'm seeing the same thing. From looking at my Sharedaddy setting page (wp-admin/options-general.php?page=sharing) it looks like the URL for the admin-sharing.css and admin-sharing.js files are wrong.

  3. bruno.pinho
    Member
    Posted 3 years ago #

    I fixed the issue changing

    3 class Sharing_Admin {
    4     public function __construct() {
    5         if ( !defined( 'WP_SHARING_PLUGIN_URL' ) ) {
    6             define( 'WP_SHARING_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
    7             define( 'WP_SHARING_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
    8         }

    to

    3 class Sharing_Admin {
    4     public function __construct() {
    5         if ( !defined( 'WP_SHARING_PLUGIN_URL' ) ) {
    6             define( 'WP_SHARING_PLUGIN_URL', '/wp-content/plugins/sharedaddy/');
    7             define( 'WP_SHARING_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
    8         }
  4. Emyr Thomas
    Member
    Posted 3 years ago #

    Thanks bruno

    Yesterday I figured out why this is happening. In my setup I have the plugins symlinked to another directory outside the wordpress installation directory, therefore the plugin_dir_path( __FILE__ ) function returns the incorrect path.

  5. bruno.pinho
    Member
    Posted 3 years ago #

    Yes... Thats exactly the set up I have... ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags