Felix Scholze
Forum Replies Created
-
Forum: Plugins
In reply to: [Autoptimize] AO no cache outputThank you very much, the first variant helped.
Forum: Plugins
In reply to: [Autoptimize] AO no cache output[05-Oct-2018 13:13:01 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function codeless_remove_type_attr(), 1 passed in /www/htdocs/w013ad9d/webshaped.de/wp-includes/class-wp-hook.php on line 286 and exactly 2 expected in /www/htdocs/w013ad9d/webshaped.de/wp-content/themes/bootstrap-for-genesis-4/functions.php:133 Stack trace: #0 /www/htdocs/w013ad9d/webshaped.de/wp-includes/class-wp-hook.php(286): codeless_remove_type_attr('<!DOCTYPE html>...') #1 /www/htdocs/w013ad9d/webshaped.de/wp-includes/plugin.php(203): WP_Hook->apply_filters('<!DOCTYPE html>...', Array) #2 /www/htdocs/w013ad9d/webshaped.de/wp-content/plugins/autoptimize/classes/autoptimizeMain.php(442): apply_filters('autoptimize_htm...', '<!DOCTYPE html>...') #3 [internal function]: autoptimizeMain->end_buffering('<!DOCTYPE html>...', 9) #4 /www/htdocs/w013ad9d/webshaped.de/wp-includes/functions.php(3743): ob_end_flush() #5 /www/htdocs/w013ad9d/webshaped.de/wp-includes/class-wp-hook.php(286): wp_ob_end_flush_all('') #6 /www/htdocs/w013ad9d/webshaped.de/wp-includes/class in /www/htdocs/w013ad9d/webshaped.de/wp-content/themes/bootstrap-for-genesis-4/functions.php on line 133 [05-Oct-2018 13:13:01 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function codeless_remove_type_attr(), 1 passed in /www/htdocs/w013ad9d/webshaped.de/wp-includes/class-wp-hook.php on line 286 and exactly 2 expected in /www/htdocs/w013ad9d/webshaped.de/wp-content/themes/bootstrap-for-genesis-4/functions.php:133 Stack trace: #0 /www/htdocs/w013ad9d/webshaped.de/wp-includes/class-wp-hook.php(286): codeless_remove_type_attr('<!DOCTYPE html>...') #1 /www/htdocs/w013ad9d/webshaped.de/wp-includes/plugin.php(203): WP_Hook->apply_filters('<!DOCTYPE html>...', Array) #2 /www/htdocs/w013ad9d/webshaped.de/wp-content/plugins/autoptimize/classes/autoptimizeMain.php(442): apply_filters('autoptimize_htm...', '<!DOCTYPE html>...') #3 [internal function]: autoptimizeMain->end_buffering('<!DOCTYPE html>...', 9) #4 /www/htdocs/w013ad9d/webshaped.de/wp-includes/functions.php(3743): ob_end_flush() #5 /www/htdocs/w013ad9d/webshaped.de/wp-includes/class-wp-hook.php(286): wp_ob_end_flush_all('') #6 /www/htdocs/w013ad9d/webshaped.de/wp-includes/class in /www/htdocs/w013ad9d/webshaped.de/wp-content/themes/bootstrap-for-genesis-4/functions.php on line 133 [05-Oct-2018 13:14:03 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function codeless_remove_type_attr(), 1 passed in /www/htdocs/w013ad9d/webshaped.de/wp-includes/class-wp-hook.php on line 286 and exactly 2 expected in /www/htdocs/w013ad9d/webshaped.de/wp-content/themes/bootstrap-for-genesis-4/functions.php:133 Stack trace: #0 /www/htdocs/w013ad9d/webshaped.de/wp-includes/class-wp-hook.php(286): codeless_remove_type_attr('<!DOCTYPE html>...') #1 /www/htdocs/w013ad9d/webshaped.de/wp-includes/plugin.php(203): WP_Hook->apply_filters('<!DOCTYPE html>...', Array) #2 /www/htdocs/w013ad9d/webshaped.de/wp-content/plugins/autoptimize/classes/autoptimizeMain.php(442): apply_filters('autoptimize_htm...', '<!DOCTYPE html>...') #3 [internal function]: autoptimizeMain->end_buffering('<!DOCTYPE html>...', 9) #4 /www/htdocs/w013ad9d/webshaped.de/wp-includes/functions.php(3743): ob_end_flush() #5 /www/htdocs/w013ad9d/webshaped.de/wp-includes/class-wp-hook.php(286): wp_ob_end_flush_all('') #6 /www/htdocs/w013ad9d/webshaped.de/wp-includes/class in /www/htdocs/w013ad9d/webshaped.de/wp-content/themes/bootstrap-for-genesis-4/functions.php on line 133
Forum: Plugins
In reply to: [Autoptimize] AO no cache outputhi frank, I just looked in my errorlog and noticed that there is a bug due to the following function. I disabled the corresponding function but what is the error?
//* Remove type tag from script and style //add_filter('style_loader_tag', 'codeless_remove_type_attr', 10, 2); //add_filter('script_loader_tag', 'codeless_remove_type_attr', 10, 2); //add_filter('autoptimize_html_after_minify', 'codeless_remove_type_attr', 10, 2); function codeless_remove_type_attr($tag, $handle) { return preg_replace("/type=['\"]text\/(javascript|css)['\"]/", '', $tag); }
Thanks for your help!
Forum: Plugins
In reply to: [Autoptimize] How to remove type attributes?You have to add the following filter:
add_filter('autoptimize_html_after_minify', 'codeless_remove_type_attr', 10, 2);
This this the whole function + filters:
//* Remove type tag from script and style add_filter('style_loader_tag', 'codeless_remove_type_attr', 10, 2); add_filter('script_loader_tag', 'codeless_remove_type_attr', 10, 2); add_filter('autoptimize_html_after_minify', 'codeless_remove_type_attr', 10, 2); function codeless_remove_type_attr($tag, $handle) { return preg_replace("/type=['\"]text\/(javascript|css)['\"]/", '', $tag); }
Forum: Plugins
In reply to: [Autoptimize] Css and JS not loading via cache/autoptimize folderI disabled all plugins. Unfortunately this did not help ??
Forum: Plugins
In reply to: [Autoptimize] How to remove type attributes?Hi Frank,
thanks that works!Forum: Plugins
In reply to: [Yoast SEO] topic-tag-sitemap.xml redirects to 404 pageHave the same problem ??
https://kraehativlinge.de/topic-tag-sitemap.xmlForum: Plugins
In reply to: [Shariff for Wordpress] Counter wird nicht angezeigtDas habe ich nun auch probiert wieder keine ?nderung…
Forum: Plugins
In reply to: [Shariff for Wordpress] Counter wird nicht angezeigtGut dann kann es daran nicht liegen…. nutze v.5.5
Forum: Plugins
In reply to: [Shariff for Wordpress] Counter wird nicht angezeigt@karsten
Hab gerade nachgeguckt hatte ich nicht eingestellt.Durch die Angabe eines anderen Zwischenspeichers hat sich bis jetzt nichts getan. Hab selbst ein paar Seiten gepostet um zu gucken obs l?uft.
Forum: Plugins
In reply to: [Shariff for Wordpress] Counter wird nicht angezeigtDu bist der beste! Danke für das beste share plugin im deutschsprachigen bereich ??
Forum: Plugins
In reply to: [BackWPup – WordPress Backup & Restore Plugin] Menu entry lostHave the same problem !
I have the same problem as the other user.
My WordPress use 3.9.2