WordPress.org

Ready to get started?Download WordPress

Forums

BulletProof Security
[resolved] don't assume plugins dir name is plugins (3 posts)

  1. Anointed
    Member
    Posted 1 year ago #

    The file /home/mysite.net/public_html/extensions/plugins/bulletproof-security/admin/htaccess/secure.htaccess 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', 'http://mysite.net/extensions');
    define( 'WP_PLUGIN_DIR', $_SERVER['DOCUMENT_ROOT'] . '/extensions/addons' );
    define( 'WP_PLUGIN_URL', 'http://mysite.net/extensions/addons');
    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.

    http://wordpress.org/extend/plugins/bulletproof-security/

  2. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.