Cimy User Extra Fields
[resolved] will not activate in relocated plugin directory environment (7 posts)

  1. anmari
    Posted 4 years ago #

    For development/testing purposes I have my plugin directory shared with different installs as per


    Cimy does not use the wp functions such as http://codex.wordpress.org/Function_Reference/plugin_dir_path, and so gets the "wrong" path.

    Change cimy_user_extra_fields.php line 151 as follows:

    //$cuef_plugin_dir = WP_CONTENT_DIR."/plugins/".$cuef_plugin_path;
    $cuef_plugin_dir = plugin_dir_path(__FILE__);


  2. Marco Cimmino
    Plugin Author

    Posted 4 years ago #

    The problem is not the shared directory or the locaion, is you changed 'plugins' to something else right?

    I always missed the right bit to reproduce this issue.

  3. Marco Cimmino
    Plugin Author

    Posted 4 years ago #

    anmari can you _please_ paste here your wp-config.php lines related on the topic?
    If you paste a way to reproduce instead of random fixes I double check your fix doesn't break other installations.

    If you keep not posting a use case to reproduce then you're just posting noise here.
    Please add the relative wp-config.php lines that you have, so I paste exactly into mine.

  4. brasofilo
    Posted 4 years ago #

    Marco, I came to report something else (and will do, in a separate post), but saw this topic first...

    I haven't tested the bug anmari reports (am finishing the day, and can look at it tomorrow), but I do have exactly this development environment configured with one plugin folder/many installs.

    The wp-config code for my wp31.dev, wp32.dev, wp33.dev and wp39.dev is this:

    define( 'WP_PLUGIN_DIR', '/www_dev/dev.wp00/wp-content/plugins' );
    define( 'WP_PLUGIN_URL', 'http://wp00.dev/wp-content/plugins');
    define( 'WPMU_PLUGIN_DIR', '/www_dev/dev.wp00/wp-content/mu-plugins' );
    define( 'WPMU_PLUGIN_URL', 'http://wp00.dev/wp-content/mu-plugins');

    So, all dev sites read the plugin from wp00.dev

  5. anmari
    Posted 4 years ago #

    Hi sorry didn't get the updates on these.

    I usually keep at least 3 wp installs
    wp latest
    wp ms

    I have my main plugin folder in one install

    Then in the others I have

    define( 'WP_PLUGIN_DIR', 'C:\wamp\www\wp\wp-content/plugins' );
    define( 'WP_PLUGIN_URL', 'http://localhost/wp/wp-content/plugins');

    to use the plugins from the main install

    Sometimes I share the whole WP_CONTENT folder in similar manner.
    I also have

    define('CUSTOM_USER_TABLE', 'wp_users');
    define('CUSTOM_USER_META_TABLE', 'wp_usermeta');

    so can have different sets of user databases (large / small for test purposes) - That trips up plugins not using std wp user db calls !! $wpdb->user

    Basically plugin/theme authors MUST use the correct wp functions to avoid failing in these situations.

  6. Marco Cimmino
    Plugin Author

    Posted 4 years ago #

    All right thanks, will try to reproduce and fix.

  7. Marco Cimmino
    Plugin Author

    Posted 3 years ago #

    Fixed in v2.3.8

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Cimy User Extra Fields
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic