I have deactivated the plugin, and my site is still broken!! one month of work !!
When I tried to edit the website’s php code from the database, the changes still never showed up on the front-end.
I am new to WordPress but just bought this business and need to update the website’s contact information ASAP.
]]>I am unable to update Woocommerce plugin due to the below error and this happened to my a few sites.
Update failed: q{“success”:true,”data”:{“update”:”plugin”,”slug”:”woocommerce”,”oldVersion”:”Version 8.8.3″,”newVersion”:”Version 8.9.1″,”plugin”:”woocommerce\/woocommerce.php”,”pluginName”:”WooCommerce”}}
Please advise, thank you.
]]>[STDERR] PHP Fatal error: Uncaught Error: Undefined constant "SECURE_AUTH_COOKIE" in /var/www/vhosts/mydomain.com/html/wp-includes/pluggable.php:929
Stack trace:
#0 /var/www/vhosts/mydomain.com/html/wp-includes/pluggable.php(694): wp_parse_auth_cookie()
#1 /var/www/vhosts/mydomain.com/html/wp-includes/class-wp-hook.php(310): wp_validate_auth_cookie()
#2 /var/www/vhosts/mydomain.com/html/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#3 /var/www/vhosts/mydomain.com/html/wp-includes/user.php(3622): apply_filters()
#4 /var/www/vhosts/mydomain.com/html/wp-includes/pluggable.php(70): _wp_get_current_user()
#5 /var/www/vhosts/mydomain.com/html/wp-includes/l10n.php(98): wp_get_current_user()
#6 /var/www/vhosts/mydomain.com/html/wp-includes/l10n.php(152): get_user_locale()
#7 /var/www/vhosts/mydomain.com/html/wp-includes/l10n.php(1300): determine_locale()
#8 /var/www/vhosts/mydomain.com/html/wp-includes/l10n.php(1331): _load_textdomain_just_in_time()
#9 /var/www/vhosts/mydomain.com/html/wp-includes/l10n.php(185): get_translations_for_domain()
#10 /var/www/vhosts/mydomain.com/html/wp-includes/l10n.php(297): translate()
#11 /var/www/vhosts/mydomain.com/html/wp-content/plugins/code-snippets-pro/php/class-licensing.php(170): __()
#12 /var/www/vhosts/mydomain.com/html/wp-content/plugins/code-snippets-pro/php/class-licensing.php(64): Code_Snippets\Licensing->override_strings()
#13 /var/www/vhosts/mydomain.com/html/wp-content/plugins/code-snippets-pro/php/class-plugin.php(134): Code_Snippets\Licensing->__construct()
#14 /var/www/vhosts/mydomain.com/html/wp-content/plugins/code-snippets-pro/php/load.php(65): Code_Snippets\Plugin->load_plugin()
#15 /var/www/vhosts/mydomain.com/html/wp-content/plugins/code-snippets-pro/code-snippets.php(62): require_once('...')
#16 /var/www/vhosts/mydomain.com/html/wp-settings.php(407): include_once('...')
#17 /var/www/vhosts/mydomain.com/html/wp-config.php(158): require_once('...')
#18 /var/www/vhosts/mydomain.com/html/wp-load.php(50): require_once('...')
#19 /var/www/vhosts/mydomain.com/html/wp-admin/admin.php(34): require_once('...')
#20 /var/www/vhosts/mydomain.com/html/wp-admin/network/admin.php(13): require_once('...')
#21 /var/www/vhosts/mydomain.com/html/wp-admin/network/plugins.php(11): require_once('...')
#22 {main}
thrown in /var/www/vhosts/mydomain.com/html/wp-includes/pluggable.php on line 929
]]>One solution I found to not remove this plugin and continue with the optimizations was to remove the non-critical js rendering through functions.php with the following function:
//remove render blocking from non-critical js
//- unless it is within the WordPress administration interface
//- and except cart_page
function defer_parsing_of_js ( $url ) {
if ( is_admin() ) return $url;
if ( is_cart () ) return $url;
if ( FALSE === strpos( $url, '.js' ) ) return $url;
if ( strpos( $url, 'jquery.js' ) ) return $url;
return "$url' defer ";
}
add_filter( 'clean_url', 'defer_parsing_of_js', 11, 1 );
]]>I’m using Litespeed plugin. Last night, I submitted all my updated posts to Google for reindexing. Before I submitted them, I tested all my pages on tools like Page Speed Insight, Mobile Friendly Test, and GTmatrix. They all showed that my posts were fine. Even now, when I run these tests, my posts still look good. However, Google Cache is displaying all my updated posts as broken.
Could anyone help me with this issue? I’m unsure why Google Cache is showing broken pages and how I can go about solving this. I’m stuck and really looking for some guidance.
Thank you for your assistance.
]]>