• Hi!

    Someone brought your plugin to my attention because when a WordPress site with your plugin is moved to a new web host with a different directory path, it doesn’t render js or css files until you go into BWP-minify and save the settings, which updates the $min_documentRoot variable in the bwp-minify/min/config.php file.

    I realize you use the bwp-minify/min/ directory outside of WordPress so you don’t have access to ABSPATH, but this causes problems for anyone moving their site to a new host (or, more relevant for me, when they make a staging or development copy of their site). Could you find a way to work around this, such as check if the current directory contains the $min_documentRoot variable, and if not update the config.php file?

    Thanks!

    https://wordpress.org/plugins/bwp-minify/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Khang Minh

    (@oddoneout)

    Hi there,

    This should only happen if you set a custom document root. I suppose that is the current situation?

    Your suggestion is a sound one, I will consider it 🙂

    Thread Starter WPStagecoach

    (@wpstagecoach)

    You’re right about it working without needing to have the $min_documentRoot for normal WP installs – that’s great! 🙂

    However, what I see (with a fresh install of the plugin (v 1.3.3)) is as soon as I hit the save button on the BWP Minify dashboard page (with the “WordPress Document root” (which is what I assume you mean by the custom document root) blank), it still inserts the $min_documentRoot into the config.php file. If you could make sure it doesn’t insert that into the config.php file unless the custom document root is set, that would be really great! 🙂

    Thank you!

    Plugin Author Khang Minh

    (@oddoneout)

    What is the value of $min_documentRoot in your wp-config.php file after you click the save changes button?

    Thread Starter WPStagecoach

    (@wpstagecoach)

    I apologize for not getting back to you on this!

    The value for $min_documentRoot (in the bwp-minify/min/config.php file) is set to whatever the site’s current root directory is (the same as the ABSPATH define is set to), so it varies from site to site as they live in different directories.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Storing the directory path in the bwp-minify/min/config.php file?’ is closed to new replies.