2.0.1 is out, some issues & workarounds
-
—— PLEASE DON’T REPLY WITH YOUR QUESTION, CREATE A NEW POST ——
1. People using zencache/ comet cache might encounter an error (“Missing
base_dir
option value.”) when clearing autoptimize’s cache. Temporary fix is to open in wp-content/plugins/autoptimize/classes/autoptimizeCache.php and on line 97 changeadd_action("plugins_loaded","autoptimize_do_cachepurged_action",11);
into
add_action("after_theme_setup","autoptimize_do_cachepurged_action",11);
This might ship with a future update, but the zencache (comet cache) guys might also do a change on their end.
2. this improvement from the changelog:
Re-enable functionality to move non-aggregated JS if “also aggregate inline JS” is active (can be disabled with autoptimize_filter_js_unmovable filter)
re-enables 1.9.x functionality that leads to better performance, but might actually also cause problems. If you do encounter broken JavaScript after upgrading, you can try the following code snippet to undo that functionality (use the code snippets plugin to add this);
add_filter('autoptimize_filter_js_unmovable',__return_true);
3. people on really old versions of PHP (before 5.3, which are out of support for quite some time already) can see this ugly error:
Parse error: syntax error, unexpected T_SL in /wp-content/plugins/autoptimize/classes/autoptimizeStyles.php on line 396
Do consider upgrading PHP-versions! If you can’t you can make this small change to wp-content/plugins/autoptimize/classes/autoptimizeStyles.php;
on line 396 change;
$fonturl_regex = <<<'LOD'
into
$fonturl_regex = <<<LOD
So simply removing the quotes from around LOD. For the technically inclined; this is heredoc vs nowdoc and we really need nowdoc there ??
—— PLEASE DON’T REPLY WITH YOUR QUESTION, CREATE A NEW POST ——
- The topic ‘2.0.1 is out, some issues & workarounds’ is closed to new replies.