Viewing 11 replies - 1 through 11 (of 11 total)
  • I too am getting this same problem, and I have been unable to reach any of the developers on the issue.

    https://cl.ly/image/3Q3F30121f1X

    Here are the scripts I am getting bad requests on. The problem is that BWP Minify minifies scripts using the URL ?f=/wp-content/…

    For all plugins and theme scripts. But for woocommerce, it instead formats them like ?f=www.domain.com/wp-content…

    My domain is redirected to https, so this fails enough though if you navigate to the script it is available. The way around this is to exclude the files from minify. You have to use the handles, so to get this to work I had to add the following to the Ignored scripts box:

    wc-add-to-cart
    jquery-blockui
    jquery-placeholder
    woocommerce
    jquery-cookie
    wc-cart-fragments

    By the way, something that was really helpful in diagnosing the problems is by going into the bwp-minify plugin folder, into min and editing config.php. Change logging to $min_errorLogger = true;

    Now install Firebug Firefox Extension, then FirePHP. Go to your site, enable script and net consoles in Firebug and reload the page. Minify will print out why and what is going on. Combine this with the 400 errors and you get a pretty good picture of the failures.

    Plugin Author Khang Minh

    (@oddoneout)

    Hi guys,

    Can you try version 1.3.0-beta out and see if it works:
    https://github.com/OddOneOut/Better-WordPress-Minify/archive/1.3.0.zip

    You can follow updates here: https://github.com/OddOneOut/Better-WordPress-Minify/issues/7

    Ahhh, I just got Minify working with W3 Total Cache.

    I will go ahead and disable it and take a look though, I think Better WP Minify provides better minification.

    Alright, I removed the old BWPMinify and deleted all traces from my DB, then installed your beta version from scratch. I configured it as follows:

    https://cl.ly/image/3X3H2j2I043B

    This is due to my theme ordering, and if I don’t split out jQuery like that everything gets messed up.

    With BWPMinify my PageSpeed Insights are: https://cl.ly/image/3H0W0z263h0s

    With W2 Total Cache and using their minify+async I was getting 66/100 on mobile and 80/100 on desktop. That is a shame, because I still think you have the better plugin.

    But as far as my issues with HTTPS and the URL creation errors and whatnot- you fixed those with this update. I even ran through the debug and everything came back clean. Thanks a lot!

    Plugin Author Khang Minh

    (@oddoneout)

    Seem like blocking CSS files are making lower score for BWP Minify, but that’s basically how BWP Minify works, it can be better than usual minify method only if all css/js are enqueued properly.

    Glad you got it working, whichever plugin you use ??

    Same issue here…

    Plugin Author Khang Minh

    (@oddoneout)

    @manuelmasia have you tried the suggested 1.3.0 above? You should open a new support topic as well.

    With v.1.3.0 the problem has been amplified. Now nothing works anymore, all the URLs generated by BWPM returns the error message. I’m trying to downgrade to the previous version, that worked after removing the WooCommerce scripts… is that available anywhere (sorry I posted the same thing on Github too, but I really need it… TIA)

    Plugin Author Khang Minh

    (@oddoneout)

    Version 1.3.0 is stricter in maintaining dependencies so that might be an issue but IMO something is fundamentally wrong with your site. I’m testing with WooCommerce as well and I can’t seem to find any issue.

    Anyway, I’d love to help you out. Can you contact me via https://betterwp.net/contact/ ? We will discuss in details there.

    hangbowl

    (@hangbowl)

    this happen with my site which installed in directory.
    how to fix this ?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘js file 400 bad request woocommerce plugin’ is closed to new replies.