Skip to content

Latest commit

 

History

History
119 lines (99 loc) · 4.67 KB

README.md

File metadata and controls

119 lines (99 loc) · 4.67 KB

Public-Notes for problem fixing - related to WordPress and Tools

Public Notes for everyone and me to remember how Problems are solved

webvizio.com and WordPress Problem fixing

  1. On your hosting service provider or service Panel (GridPane.com) disable the clickjacking protection
  2. Install the plugin https://github.com/PHPWatch/WordPress-SameSite (Click on the green code button, download as Zip, upload as Plugin)
  3. add these lines to the functions.php
remove_action( 'login_init', 'send_frame_options_header' );
remove_action( 'admin_init', 'send_frame_options_header' );
  1. add this to wp-config.php
define('WP_SAMESITE_COOKIE', 'None' );

This above

  • Allows you to display the site with the login page and the administrative panel in a frame
  • Give opportunity to use all cookies including session cookies in iframes. If third parties do not know your admin area passwords, the only security problem is displaying your pages in a iframe, but they are protected by login + Wordpress by default allows you to display the site pages in iframe

Brizy Pro + WooCommerce throwing 404 Error on 2nd Categorie Page

Just go to Settings > Permalinks and hit save. You might need to purge the cache as well.

LiteSpeed

Can't quick edit / The Link you followed has expired: "Hidden" Nonce error related to WordPress

If this Error message appears while quick edit more than one item, delete your cache, if installed: go through your Scalability Pro settings and disable all settings, disable and re-enable the LiteSpeed Plugin, logout and login.

The link you followed has expired.
Please try again.

This message was triggered by WordPress core.

Call stack

wp_die()
wp-includes/functions.php:3664
wp_nonce_ays()
wp-includes/pluggable.php:1293
check_admin_referer()
wp-admin/edit.php:77

LiteSpeed WordPress Optimizations

Make Litespeed UCSS work, complete process and tools to use https://www.youtube.com/watch?v=kSC2sKb-K2k

Cookie Problems -

Do Not Cache PayPal Cookies

It will make you Cache be missed

sc_f
c

Do not cache the Cart Hash Cookie, vary the cookie of the current language of WPML and the current currency

woocommerce_cart_hash

Try to add these lines to your .htaccess file

<IfModule LiteSpeed>
RewriteEngine On 
RewriteRule .* - [E=Cache-Vary:woocommerce_current_currency]
RewriteRule .* - [E=Cache-Vary:wp-wpml_current_language]
</IfModule>

Fix for aborting processes on LiteSpeed powered servers - for example backup with a backup plugin

# BEGIN litespeed noabort
<IfModule rewrite_module>
        RewriteEngine On
        RewriteRule .* - [E=noabort:1]
</IfModule>
# END litespeed noabort

Cookies Others

https://github.com/WpSpeedDoctor/litespeed-cookie-based-caching https://www.youtube.com/watch?v=cJeZv3tG-FU

WP-Cron Problems

Sometimes WP-Con Jobs won't trigger on (Open)LiteSpeed Servers. Here's how to fix this: "Do Not Cache Query Strings" from /wp-admin/admin.php?page=litespeed-cache#excludes this doing_wp_cron and disable "Cache WP-Admin" from /wp-admin/admin.php?page=litespeed-cache#object Might fix Cloudflare issues with WP-Cron as well.

General Optimizations

Plugins

Redirections

Add redirects to .htaccess instead of the database https://redirection.me/support/options/#apache

WordPress Maintenance, Monitoring and Checkup

WordPress Pagespeed Optimization

WP-Cron helpers

GridPane.com helpers