W3 missing CSS files in combination/minify process
-
We’ve done extensive testing today on an issue that has been driving us just about insane. Apparently W3 simply skips, ignores, or unintentionally removes entire CSS files during the minify/combine process.
We’re using WP6.2 and W3 2.3.1 free – the latest as of this posting.Minify works fine, but there’s like 30+ CSS files. Combine doesn’t work as not all the CSS is included, and same with Combine & Minify. The CSS just isn’t there in the final output. We’ve tried everything we can think of, but full searches of all downloaded files if Combine is on in any way has files-worth of CSS missing and so far there’s no pattern why. Plugins like GiveWP will have their CSS files’s code included, along with the template CSS files and custom CSS. However plugins like AIOSEO and Strong Testimonials (a file called grid.css, for instance, with only about 30 lines of code) won’t have any. It’s the same files skipped each time, too – that’s the only discernable pattern at all so far. There’s no htaccess or other directives we can find anywhere that’d affect any of this. We’ve cleared the cache and adjusted settings probably 75 times or more today alone trying to get it to work.
We thought maybe there a possibility that a regex in W3 is grabbing too much and deleting it, but that wouldn’t explain the issue with only Combine turned on and no Minify. Since even the Combine process is missing files’-worth of CSS data it seems to be more of an issue with the Combine process itself – it’s leaving out entire files.
Someone in this forum had a similar-ish issue 2 years ago, but there wasn’t really a viable solution. Manually adding every CSS file to the combine/minify process and adding more every time a plugin is added isn’t practical on this site much less any larger ones.
Any ideas?
Thanks,
Magestyx
- The topic ‘W3 missing CSS files in combination/minify process’ is closed to new replies.