Minify not working at all
-
I’ve had to disable minify and only using in preview mode.
have tested with both disk or memcache and neighther works.
Page partially loads if I tick JS or CSS options for minify; it appears none of the files are being generated or at least are not readable.
As an example
[Error] Failed to load resource: the server responded with a status of 400 (Bad Request) (bb680.css, line 0)
[Error] Failed to load resource: the server responded with a status of 400 (Bad Request) (bcd8b.css, line 0)
[Error] Failed to load resource: the server responded with a status of 400 (Bad Request) (073b3.css, line 0)The page I need help with: [log in to see the link]
-
Hello @icepicknz
Thank you for reaching out and I am happy to help!
It seems that the issue is with the way the URL is set, meaning the index.php before the shop is preventing the rewrite of the Minified files.
Can you please let me know what is set for the Permalinks in your wp-admin – Settings>Permalinks and why the URL is shop.scanimals.net/index.php/shop/ instead of shop.scanimals.net/shop/Thanks!
That’s a good question and not one I can answer sorry, I purchased template and my developer made it so, it is what it is now; can we work with that?
/index.php/%year%/%monthnum%/%day%/%postname%/
With Product permalinks being product/
is there a workaround?
P.s. it seems you are down the right path. the other caching methods are storing correctly, just minify has the issues, this from the log
[Mon, 15 Jul 2024 20:39:04 +0000] [/wp-content/cache/minify/42908.css] [https://shop.scanimals.net/index.php/shop/] The path “/var/www/html/var/www/html/wp-content/themes/woodmart/style.css” (realpath “/var/www/html/var/www/html/wp-content/themes/woodmart/style.css”) could not be found (or was not a file)
[Mon, 15 Jul 2024 20:39:04 +0000] [/wp-content/cache/minify/c815a.css] [https://shop.scanimals.net/index.php/shop/] The path “/var/www/html/var/www/html/wp-content/uploads/elementor/css/post-856.css” (realpath “/var/www/html/var/www/html/wp-content/uploads/elementor/css/post-856.css”) could not be found (or was not a file)
[Mon, 15 Jul 2024 20:39:04 +0000] [/wp-content/cache/minify/42908.css] [https://shop.scanimals.net/index.php/shop/] More than one file was missing: ‘/var/www/html/wp-content/plugins/customize-tawk-to-widget/assets/css/style.css’, ‘/var/www/html/wp-content/themes/woodmart/style.css`’
- This reply was modified 4 months, 1 week ago by icepicknz.
Just an update on this… I’m using themes/woodmart-child/ not sure if this has any role to play in the issue.
It certainly appears the W3TC is not handling the path correctly as its adding /var/www/html twice; it doesn’t do this with other caching methods, just minify
var/www/html/wp-content/themes/woodmart/js/scripts/menu/mobileNavigation.min.js
var/www/html/wp-content/themes/woodmart/js/scripts/wc/cartWidget.min.js
[Mon, 15 Jul 2024 23:17:45 +0000] [/wp-content/cache/minify/62695.js] [https://shop.scanimals.net/index.php/shop/] The path “/var/www/html/var/www/html/wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart-variation.min.js” (realpath “/var/www/html/var/www/html/wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart-variation.min.js”) could not be found (or was not a file)
[Mon, 15 Jul 2024 23:17:45 +0000] [/wp-content/cache/minify/62695.js] [https://shop.scanimals.net/index.php/shop/] The path “/var/www/html/var/www/html/wp-content/themes/woodmart/js/scripts/wc/actionAfterAddToCart.min.js” (realpath “/var/www/html/var/www/html/wp-content/themes/woodmart/js/scripts/wc/actionAfterAddToCart.min.js”) could not be found (or was not a file)
I have noticed that if I set minify to manual and add a few .js files, that it is now creating folder cache/minify/00b19/default.include.js.id
If I set back to auto, I see if I go to the homepage, lots of files get generated:
root@shop:/var/www/html/wp-content# du -h cache/minify/
2.7M cache/minify/
However looking at the developer console, there are still errors and page takes ages to load with many things still not working
[Error] Failed to load resource: the server responded with a status of 500 () (d20fa.js, line 0)
[Error] Failed to load resource: the server responded with a status of 500 () (8aa41.js, line 0)
[Error] Failed to load resource: the server responded with a status of 500 () (8aa41.js, line 0)
Look forward to your response on a resolution to setting this to auto- This reply was modified 4 months, 1 week ago by icepicknz.
Just an update, I've got the pages to partially load, only some errors now. the temporary fix (by no means permanent so need a solution please) was to link /var/ to /var/www/html/var so the path /var/www/html/var/www/html would work.
Page loading slowly, but at least the structure and images load eventually
These are the remaining errors
[Error] Failed to load resource: the server responded with a status of 404 () (xts-icon-font.woff2, line 0)
[Error] Failed to load resource: the server responded with a status of 404 () (eicons.woff2, line 0)
[Error] Failed to load resource: the server responded with a status of 404 () (eicons.woff, line 0)
[Error] TypeError: undefined is not an object (evaluating 'wp.data
.use')
(anonymous function) (shop:957)
Global Code (shop:959)
[Error] ReferenceError: Can't find variable: woodmartThemeModule
(anonymous function) (b9ae0.js:4)
Global Code (b9ae0.js:4:2440)
[Error] ReferenceError: Can't find variable: woodmartThemeModule
(anonymous function) (a64b4.js:9)
Global Code (a64b4.js:9:1567)
[Error] Failed to load resource: the server responded with a status of 404 () (eicons.ttf, line 0)
[Error] TypeError: undefined is not an object (evaluating '_.memoize')
(anonymous function) (38720.js:5:120)
Global Code (38720.js:5:1392)
[Error] ReferenceError: Can't find variable: woodmartThemeModule
(anonymous function) (64187.js:9)
Global Code (64187.js:9:852)
[Error] ReferenceError: Can't find variable: woodmartThemeModule
(anonymous function) (9afe0.js:9)
Global Code (9afe0.js:9:2076)
[Error] TypeError: undefined is not a function (near '…e(".price_slider:not(.ui-slider)").slider…')
(anonymous function) (f0955.js:5:28776)
[Error] Failed to load resource: the server responded with a status of 404 () (eicons.svg, line 0)I did try adding the following to exclusion on all elements, i.e. cache, css / js but didnt help
wp-content/cache/fonts/eicons.woff2
wp-content/fonts/xts-icon-font.woff2
wp-content/cache/fonts/eicons.woff
wp-content/cache/fonts/eicons.ttf
wp-content/cache/fonts/eicons.svgHello @icepicknz
Thank you for your feedback. You cannot add fonts to minify exclusion. you can only add specific JS and CSS files.
This is most likely related to the peralink structure.
Can you please share if you have wp-content/cache/minify/.htaccess and share the content of this file?Thanks!
I reverted back to Seraphinite Accelerator and deleted everything; I have emailed asking for a refund as it is not usable and didnt work. I truely hoped it would but I spent about 16hrs on it.
I checked all the .htaccess files against the “install” link where it generates and they were all good, TC was creating them fine. I even tried copying the font files to the cache at one point.
PageSpeed dropped to 30’s for mobile and 50’s for computers when I used the cache, even with memcache. While using Seraphinite Accelerator I’m sitting at great consistency of 80’s-90’s.
I’d consider trying it again, but it was a nightmare and not enough stock standard just work. I know my URI structure is possibly different to most, but one would think the plugin would look at this string and work with it rather than having to link /var/www/html/var/www/htmlOk so I reinstalled W3TC and this time at least pages load and things working, however no improvement to page speed, see tests below but pretty much 29-33 mobile and in the 70’s for desktop; the same results with W3TC disabled. As previously mentioned when running Seraphinite Accelerator page speed is 80/90
I have not enabled browser cache as yet as want to get all other functionality at least giving a result first
Server is a container on Proxmox with 64Gb ram allocated, 16 CPU’s and host system has plenty of resources and no other containers or VMs running on it. Database is on same network, 10gb connected, running on 3 group replication mysql servers with good performance.
Testing of https://shop.scanimals.net home pagehttps://pagespeed.web.dev/analysis/https-shop-scanimals-net/cvx9jjwsoq?form_factor=desktop Prior to W3TC 29 / 60
https://pagespeed.web.dev/analysis/https-shop-scanimals-net/2ky4v88m3j?form_factor=mobile Deleted accelerator and installed W3TC no enabled yet 30 / 70
https://pagespeed.web.dev/analysis/https-shop-scanimals-net/xxuagtnrpy?form_factor=desktop enabled OPCODe Cache and Page Cache only 44 / 76
https://pagespeed.web.dev/analysis/https-shop-scanimals-net/hbivmqcht7?form_factor=desktop 39 / 77
Disable cloudflare proxy - enable minify default settings
https://pagespeed.web.dev/analysis/https-shop-scanimals-net/033xnitx6m?form_factor=desktop 34 / 77
--- Diable and remove ludicrous db
https://pagespeed.web.dev/analysis/https-shop-scanimals-net/a8ov0h2udl?form_factor=desktop 34 / 85
--- Enable database cache with memcache
https://pagespeed.web.dev/analysis/https-shop-scanimals-net/u41lzesxyk?form_factor=desktop 34 / 83
--- enable object cache in memcache
https://pagespeed.web.dev/analysis/https-shop-scanimals-net/7s5z7og9ic?form_factor=mobile 37 / 79
--- Minify to memcache
https://pagespeed.web.dev/analysis/https-shop-scanimals-net/rl812jhi2t?form_factor=mobile 33/78
https://pagespeed.web.dev/analysis/https-shop-scanimals-net/zrkg3ugt2f?form_factor=desktop 33/77
-- Enable pro features with license
https://pagespeed.web.dev/analysis/https-shop-scanimals-net/zrkg3ugt2f?form_factor=mobile 33/77
-- Enable Late initialization
https://pagespeed.web.dev/analysis/https-shop-scanimals-net/wf6l7ay65v?form_factor=desktop 35 / 78
https://pagespeed.web.dev/analysis/https-shop-scanimals-net/erqmjwx46m?form_factor=desktop 32 / 82Products Page testing https://shop.scanimals.net/index.php/product-category/all/ ###
https://pagespeed.web.dev/analysis/https-shop-scanimals-net-index-php-product-category-all/etojldbdp3?form_factor=mobile 33/74
Hello @icepicknz
Since you have a Pro license, please reach out to us directly via the plugin as the wp.org guidelines do not allow support form Pro features.
Thanks!
Heya,
I have just re-enabled the plugin to send a support ticket, there wasn’t an option so I logged it as a bug report; please confirm receipt of the message.
Thanks Barry
- You must be logged in to reply to this topic.