Let’sEncrypt: It seems the CA server is busy now

Today I install the free ssl of Let’sEncrypt for dreamglasses.com, and meet the following error: It seems the CA server is busy now. I checked the installation error log and got the following information from https://curl.haxx.se/libcurl/c/libcurl-errors.html curl: (35) SSL connect error When we use curl to visit https, nss is too old, so I upgrade […]

How to Redirect your 404 page to the Home Page in WordPress?

Go to the root of your template, check if there is 404.php or not. If you can not find this file, just create one, then edit  404.php, add the following code: <?php header(“HTTP/1.1 301 Moved Permanently”); header(“Location: “.get_bloginfo(‘url’)); exit(); ?> Done! Simple ? Yes! I have tested the code for www.glassescare.com

Remove all links in a post content of wordpress

Edit functions.php,  add the following code: add_filter(‘the_content’, ‘removelink_content’,1); function removelink_content($content = ”) { preg_match_all(“#<a(.*?)>(.*?)</a>#i”,$content, $matches); $num = count($matches[0]);for($i = 0;$i < $num;$i++){ $content = str_replace($matches[0][$i] , $matches[2][$i] , $content); } return $content; }

Get Next / Prev 3 Posts in Relation to Current Post of WordPress

I have 7 prescription eyeglasses posts, like this: 1 – How to buy eyeglasses online? 2 – Why so many people buy prescription glasses online? 3 – How come it saves so much shopping glasses online? 4 – this is the current post 5 – Do you know the importance of prescription sunglasses? 6 – […]

Converting Data from Latin1 to UTF-8

First export the databases which you plan to convert. $> mysqldump -u root -p123 –default-character-set=latin1 shop > /root/shop.sql Second, convert the database to utf8 $> sed -e ‘s/SET NAMES latin1/SET NAMES utf8/g’ -i /root/shop.sql $> sed -i -e ‘s/CHARSET=latin1/CHARSET=utf8 COLLATE=utf8_unicode_ci/g’ /root/shop.sql $> vi /root/shop.sql (Check the convention is successful or not) Last step, import the […]

How to disable customers to register?

1) 1.1) Remove the ‘Register’ link in the top right corner 1.2) Remove the ‘Create account for this Email’ checkbox on the cart.php?mode=checkout page. 1.3) The tool https://help.x-cart.com/X-Cart:Using_Webmaster_mode will help you to localize the templates Index: include/register.php index b95b9c35f2..9170d8bb29 100644 — include/register.php +++ include/register.php @@ -286,8 +286,7 @@ if ( * Check if user have […]

How to Install Magento 2.3.2 with Sample Data Under Local Host?

Download magento2.3.2 at magento.com/tech-resources/download, Remember use, instead of using localhost to intall magento. Otherwise, you will meet an error when you login the admin panel. You may also meet a black page when you login the admin panel even if you use How to resolve this issue then? Very easy, go to vendor\magento\framework\View\Element\Template\File, […]

How to Change Zen-Cart Homepage Big Banner and The Text Under It?

After we installed zen-cart v1.5.5f, the homepage  default big banner is zencart-book.png for dest top computer, and zencart-book-mobile.png for your mobile phone. How to Change Zen-Cart Homepage Big Banner and The Text Under It? First we need to prepare 2 images: 800×350.jpg, and 350×350.jpg.  Two methods to modify the banner and the text under it: Method One, log […]

How to Change “Congratulations! You have successfully installed your Zen Cart® E-Commerce Solution.”?

After we installed zen-cart v1.5.5f, how to change “Congratulations! You have successfully installed your Zen Cart® E-Commerce Solution.”? Go to includes\languages\english\responsive_classic, and edit index.php. Replace: define(‘HEADING_TITLE’, ‘Congratulations! You have successfully installed your Zen Cart&reg; E-Commerce Solution.’); } elseif ($category_depth == ‘nested’) { // This section deals with displaying a subcategory /*Replace this line with the […]

Problems with the CURL extension While Installing Zen-cart Under Nginx

“Problems with the CURL extension – PHP is reporting that CURL is not present. Could not use CURL to contact a live server” How to deal with this issue? First you need to update your CURL, visit https://curl.haxx.se/download/, and check the latest curl, say curl-7.61.0.tar.gz; Login your hosting via SecureCRT or putty, and run: Download: wget https://curl.haxx.se/download/curl-7.61.0.tar.gz […]