Support » Plugin: BulletProof Security » [Plugin: BulletProof Security] don't assume plugins dir name is plugins

  • Resolved Anointed


    The file /home/ is not writable or does not exist.
    Check that the file is named secure.htaccess and that the file exists in the /bulletproof-security/admin/htaccess master folder. If this is not the problem click here for more help info.

    I have the following in my wp-config.php file (which is accepted practice for WP)

    /* Custom Paths */
    define( 'WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . '/extensions' );
    define( 'WP_CONTENT_URL', '');
    define( 'WP_PLUGIN_DIR', $_SERVER['DOCUMENT_ROOT'] . '/extensions/addons' );
    define( 'WP_PLUGIN_URL', '');
    define( 'PLUGINDIR', $_SERVER['DOCUMENT_ROOT'] . '/extensions/addons' );

    Basically I can’t use the plugin because you are assuming that the plugin directory is named plugins. I haven’t gotten further in your plugin to see if there are going to be other issues as well due to this.

    The WP docs basically say to never assume any of the names wp-content, plugins, etc. Hope it helps for next release.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author AITpro


    Yes, BPS is using the ABSPATH and WP_CONTENT_DIR Constants, but not the plugin folder constants. I will have to look at this again. I looked at this previously years ago and there was a problem with adding the plugin dir constant, but i will take another look.

    Just rememebered the issue:

    Related to the above, it’s also important to note that PHP’s __FILE__ magic-constant resolves symlinks automatically, so if the wp-content or wp-content/plugins or even the individual plugin directory is symlinked, this function will not work right.

    This should no longer be an issue so I will go through BPS and add the plugin dir Constant where necessary.

    Plugin Author AITpro


    BPS .47.5 is now using constants for plugins dir/url. I searched high and low for the best way/best practice to do this and there is a lot of conflicting information so I have done what i know works and not chosen to use the many other suggestions floating around the Internet. it seems the symlinks issue has been going on for about 2 years now and there are several tickets either closed or still in the works regarding this issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: BulletProof Security] don't assume plugins dir name is plugins’ is closed to new replies.