no idea at all I’m afraid ps67481 … are your CSS-files on the same domain as your HTML and JS (by default AO doesn’t aggregate files that aren’t on the exact same domain)? do you have any errors in your PHP-errorlog?
frank
Thank you for the response.
Yes, css files are on the same domain and no error longs are showing…
Will try to see where to problem is and if I find a solution I’ll post an update.
If you want I could create a debug-version of autoptimizeStyles.php (and autoptimizeBase.php) to output extra stuff to your php errorlog.
ok, you can already use this one for autoptimizeBase.php. I’ll create an autoptimizeStyles.php-one later tonight or tomorrow morning.
Thank you Frank, will use it right now.
Here’s the log file. For some reason it has no mention of any css files, only js.
These are the settings used: 1, 2, 3
well, we’ll have to wait for the autoptimizeStyles.php to understand what is happening. but maybe you can already try the “legacy minifiers” as explained in the FAQ?
Tried legacy minifiers, no difference.
Sure, please let me know whenever you’ll have autoptimizeStypes.php
ok, first wp-content/plugins/autoptimize/autoptimize.php; can you overwrite that with the contents of https://gist.github.com/futtta/c3c8e7f3bfba906829a35c785e119aef?
Thank you Frank.
Updated long since legacy minification here
your logfile has
CSS read: extracting all CSS
but it does not have
CSS read extract found:
although that is the logical next step as from the code;
error_log("CSS read: extracting all CSS");
if(preg_match_all('#(<style[^>]*>.*</style>)|(<link[^>]*stylesheet[^>]*>)#Usmi',$this->content,$matches)) {
foreach($matches[0] as $tag) {
error_log("CSS read extract found: ".$tag);
the regex if pure PHP (using PCRE under the hood) and a switch from Apache to NGINX can’t warrant this regression (also; there’s a considerable minority of other AO-users on NGINX that are not experiencing this issue).
careful conclusion; I suspect another type of conflict, possibly with another plugin. next step would be to selectively disable (and re-enable) plugins (and temporarily switch plugins) to identify the culprit?
frank
I can try turning off plugins. Also disabled microcaching on nginx, so that was not causing the issue.
Also, the server has nginx + apache working together.
Disable all of the plugins, still the same