Breaks multi-site
-
Hi,
I’m using this plugin on my personal website and I also keep recommending it to friends and colleague. In general it’s a great plugin 🙂
However, I just tried it at work where I’m running a multi-site network for a school. It works fine on the main page (landing page) but it breaks all the sub-pages – the css, js, everything…
The description says it is multi-site compatible. Any ideas what could be the problem?
Thanks
-
Hello, thanks for using BWP Minify!
Is the network available somewhere that I can check?
Hello, you can checkout the website here
Unfortunately I had to deactivate the plugin and I can’t keep it activated either because it’s breaking all the sub-pages.
I also tried the debug mode but I couldn’t find anything helpful.The same problem here.
For the main site it works well, but it breaks all the sub-sites, e.g. here or here. I only added one additional setting, which is “Enable friendly Minify urls”, from the default setting without adding any custom url path.
I tried several combinations of settings, including manual editing of .htaccess, but no luck.I just wondering, the description of this plugin says that it is multisite-compatible. However, when I activated the plugin within a multisite environment, it adds
/network_url/subsite_folder/path_to/plugin_folder/bwp-minify/cache/as the minify cache folder for each subsite.How it is possible? A multisite environment produces an on-the-fly subsites processing (virtual subsites) without the existence of “real” wordpress installation for each subsite.
How does this plugin save minified files into a cache folder if the cache folder itself does not exist?
How does this plugin make any request to cached files on a cache folder if the cache folder itself does not exist?Hi Mossack,
the support here is a bit dodgy.
I tried Autoptimze instead, works perfectly and the support is brilliant, too.Good luck 🙂
Hi Stoetzman,
Think so 🙁
I had ever installed Autoptimized years ago, and I stopped to use it since it had a critical bug that broke my client sites. However, I have tried to take a look again today and it works well! Thank you for notifying me on the current good use of the plugin.@Kang Minh
I have tried to take a look again on BWP_Minify plugin and found that the bug reported in the thread is further related to the Custom WP Directory setting. I have tried to install this plugin on a multisite without the setting and it -still- does not work well; however, the custom setting has made it worse since BWP-Minify is confused by the custom “network” url setting. Thus, looks like there are at least two issues you have to take care of.Hi Mossack, thank you for your detailed explanation.
Is it possible that you share your current multisite setup? I’m assuming that you’re:
– Using a sub-directory multisite setup
– Giving WordPress its own directory as per https://codex.ww.wp.xz.cn/Giving_WordPress_Its_Own_DirectoryHi,
Same problem, with the configuration detailled above (Using a sub-directory multisite setup and Giving WordPress its own directory).
It works well on the main site, but breaks the sub-sites when I activate the plugin on them (http://www.leskapress.fr and http://photo.leskapress.fr for example).
Thanks for your help,
i had the same issue, my blog is multisite, wordpress is setup in its own directory.
my wordpress site is in its own directory “wpsite” , which contains index.php, wp-content, etc.)
i have 3 sites running
my main website (non wordpress) is at: http://example.com
my wordpress site 1 is located at: http://example.com/landingpages
my wordpress site 2 is located at: http://example.com/blogusually wordpress create sub directories when you create a multisite and gives the sites the urls
http://example.com/blog/landingpages
http://example.com/blog/blogbut that url is just crazy and i wanted my url to be
multisite network url : http://example.com/blog
site 1: http://example.com/landingpages and
site 2 : http://example.com/blogI was able to get this setup by changing the domain and the site url in the network settings for each site
but when i installed Better WordPress Minify
it incorrectly assumed that my wordpress site was located at http://example.com and that any url matching the pattern http://example.com/blogmeant that /blog was my subdirectory and that the multisite network url was http://example.com
the url the plugin was giving me for my script was incorrect
it gave me :
http://example.com/blog/wp-content/plugins/bwp-minify/min/?f=blog/wp-content/plugins/mrich/js/vendor/charLimiter/jquery.charLimiter.min.js,blog/wp-content/plugins/mrich/js/vendor/validate/jquery.validate.min.js,blog/wp-content/plugins/mrich/js/mrich_scripts.js&ver=1439309341&debugthe correct url is:
http://example.com/blog/wp-content/plugins/bwp-minify/min/?f=wp-content/plugins/mrich/js/vendor/charLimiter/jquery.charLimiter.min.js,wp-content/plugins/mrich/js/vendor/validate/jquery.validate.min.js,wp-content/plugins/mrich/js/mrich_scripts.js&ver=1439309341&debugi edited the plugin so that it would work for my situation
————————-i edited the function get_base(), to remove the value for the base variable
before the closing bracket I added
// remove the subdirectory (base) from the url if (self::is_multisite()){ $this->base = ''; }this is a temporary fix for my issue, it would be nice if the plugin allows you to set the base file path for multisites
The topic ‘Breaks multi-site’ is closed to new replies.