too many variables there to be honest. Can you first test with just AO; no “inline & defer” (so CritCSS does not kick in) and no AsyncJS (or other optimizations you might have) and see what happens?
I will when i will return, i must go out and is something that needs time.
thank you for your fast response
I did everythingi and all look fine,
now i have to wait for caching the site
Already smart slider broke for logged users
Fatal error: Uncaught JSMin_UnterminatedStringException: JSMin: Unterminated String at byte 409: ‘<p>Δεν έχεις τα απαραίτητα δικαιώματα ! in /home/adultforum/public_html/wp-content/plugins/autoptimize/classes/external/php/jsmin.php:214 Stack trace: #0 /home/adultforum/public_html/wp-content/plugins/autoptimize/classes/external/php/jsmin.php(152): JSMin->action(1) #1 /home/adultforum/public_html/wp-content/plugins/autoptimize/classes/external/php/jsmin.php(86): JSMin->min() #2 /home/adultforum/public_html/wp-content/plugins/autoptimize/classes/autoptimizeSpeedupper.php(38): JSMin::minify(‘\njQuery(documen…’) #3 /home/adultforum/public_html/wp-includes/class-wp-hook.php(288): autoptimizeSpeedupper->js_snippetcacher(‘\njQuery(documen…’, ”) #4 /home/adultforum/public_html/wp-includes/plugin.php(206): WP_Hook->apply_filters(‘\njQuery(documen…’, Array) #5 /home/adultf in /home/adultforum/public_html/wp-content/plugins/autoptimize/classes/external/php/jsmin.php on line 214
this is error from chrome for logged users,
firefox is not giving errors yet
i closed Async JavaScript this error remains for loggged users
Inline and Defer CSS closed, error remains for loggged users
ok, so;
* “logged in users” is actually “logged in editors/ administrators” at code level, it is mainly aimed at people who use pagebuilders. If you want I can provide you with a code snippet to disable AO for all logged on users.
* the error is of the JS minifier component which crashes on some bad JS, you’ll have to find in which file (or inline JS) <p>Δεν έχεις τα απαραίτητα δικαιώματα
is located and either find the JS error (the unterminated string) or exclude that file or block of inline JS from being optimized
frank
i closed aggregate inline JS and error was gone
i openned it again aggregate inline JS and brake the site for logged users and not for guests
same problem with aggregate inline CSS brakes for logged users an not for guests
* “logged in users” are just members accounts no editors no admins
* the error is of the JS minifier
i can do that tomorrow and let you know, but the big problem is that the logged users havings the problems and not the guests
well, try this code snippet to disable AO for _all_ logged in users;
add_filter( 'autoptimize_filter_noptimize', 'loggedin_noptimize', 10, 0 );
function loggedin_noptimize() {
if ( is_user_logged_in() ) {
return true;
} else {
return false;
}
}