sudo update-alternatives –config editor There are 4 choices for the alternative editor (providing /usr/bin/editor). Selection Path Priority Status ———————————————————— * 0 /bin/nano 40 auto mode 1 /bin/ed -100 manual mode 2 /bin/nano 40 manual mode 3 /usr/bin/vim.basic 30 manual mode 4 /usr/bin/vim.tiny 10 manual mode Press enter to keep the…
How you remove a domain that’s no longer on a server for SSL renewal
#list certificates certbot certificates certbot delete –cert-name (certificate name) https://eff-certbot.readthedocs.io/en/latest/using.html#certbot-command-line-options
Woocommerce status not showing on dashboard
The temporary fix, for now, is either to: 1. Complete the setup checklist – You can open each one up, change a few settings, save changes so it’s detected and marked as completed. (Then revert the changes). 2. Hide the tasklist – Go to WooCommerce > Home Screen, on the…
Avada fatal error Cannot use self importer.php
After upgrading to php 7 Fatal error: Cannot use “self” when no class scope is active in /wp-content/themes/Avada/framework/plugins/importer/importer.php on line 1000 Solution: Edit file /wp-content/themes/Avada/framework/plugins/importer/importer.php on line 1000 from : self::deleteDir($file); to :$this->deleteDir($file);
Install Ubuntu GUI
sudo apt update && sudo apt upgrade sudo apt install tasksel sudo tasksel install ubuntu-desktop
Windows force group update to be applied
When you make a change to a Group Policy Object (GPO), the change takes place on a Windows 2000 domain controller. The change is replicated to all other domain controllers in the Active Directory. All Windows computers in the Active Directory check for modifications to GPOs at regular intervals. If they find changes, they apply…
Change default editor from nano to vi
Type sudo update-alternatives –config editor You will get a text like below. There are 4 choices for the alternative editor (providing /usr/bin/editor). Selection Path Priority Status ———————————————————— * 0 /bin/nano 40 auto mode 1 /bin/ed -100 manual mode 2 /bin/nano 40 manual mode 3 /usr/bin/vim.basic 30 manual mode 4 /usr/bin/vim.tiny 10…
Fix fatal RevSlider error in dashboard after upgrading to PHP 7
revslider/includes/framework revslider/inc_php/framework vi base-admin.class.php change the following line: private static $arrMetaBoxes = ”; //option boxes that will be added to post to: private static $arrMetaBoxes = array(); //option boxes that will be added to post
How to add print template for Print Manager for WooCommerce
cd print-google-cloud-print-gcp-woocommerce/includes vi Templates.php class Templates { public function __construct() { self::registerTemplate(new \Zprint\Templates\Customer()); self::registerTemplate(new \Zprint\Templates\Details()); self::registerTemplate(new \Zprint\Templates\Order()); self::registerTemplate(new \Zprint\Templates\New());//added to use new template cd print-google-cloud-print-gcp-woocommerce/templates add new-html.php new-plain.php