How to use a YubiKey for Two-Factor Secure Shell Authentication

Linux, SysAdmin, Technical
What is Yubikey? YubiKeys are small USB dongles that you can plug into your computer. They can simulate keyboard input, allowing you to enter One Time Passwords (OTPs) with the press of a button to authenticate with services like Google, Dropbox and GitHub. YubiKeys can also be used when logging into a remote server. This guide will show you how to configure your server so that a YubiKey must be plugged in and tapped in order to log in to your server using ssh. Depending on your needs, you can also configure a password in addition to the YubiKey for an extra level of security. If you want to work through this guide but don’t have a YubiKey, you can find one at this link. As of this writing, any key that supports…
Read More

Document Moved Error after Upgrade to OpenCart 3.x.x.x

Linux, SysAdmin, Technical
If you have upgraded to OpenCart 3.x.x.x recently and are noticing a "Document Moved" Error when accessing extensions in your OpenCart Admin Panel It is due to a misconfigured line in your config.php file that resides inside your admin folder. (public_html/admin/config.php). You will find a line that says: define('OPENCART_SERVER', 'http://www.opencart.com/'); The line actually needs to read like this: define('OPENCART_SERVER', 'https://www.opencart.com/'); The problem is if you're running your OpenCart with HTTPS...Which you SHOULD be the non-https URL won't load from within the admin panel. The purpose of that URL is to grab the extension lists and extension advertisements and show them on the extensions page. Replace that one line and the issue will be resolved! I have referenced this error here, on the official OpenCart Github: https://github.com/opencart/opencart/issues/7269 And also made the…
Read More

Emails not sending after upgrade to OpenCart 3.x.x.x

Linux, SysAdmin, Technical
The issue is - OpenCart does not send emails after order checkout or account registration. I don't mean that the server is failing to send the mail (I'm running my own email server and there is no trace of any email being sent in the logs), but that the OpenCart installation doesn't even get to the code where mail is supposed to be sent. If I use the newsletter form in administration, all the emails are sent and delivered fine without any issues. All other applications on the same server using the same PHP and Sendmail are working without problems, as was the 2.3 OC installation with exactly the same settings. First thing to check: - Ensure your admin - > extensions - > events page has more than 30…
Read More

Opencart upgrade error `Could not load template adaptor`

Linux, SysAdmin, Technical
Upgrading one of my stores I encountered the following error: Fatal error: Uncaught Exception: Error: Could not load template adaptor ! in /home/u572407319/public_html/system/library/template.php:11 Stack trace: #0 /home/u572407319/public_html/system/storage/modification/system/engine/loader.php(81): Template->__construct(NULL) #1 /home/u572407319/public_html/install/controller/common/header.php(14): Loader- >view('common/header', Array) #2 /home/u572407319/public_html/system/storage/modification/system/engine/action.php(51): ControllerCommonHeader->index(Array) #3 /home/u572407319/public_html/system/storage/modification/system/engine/loader.php(24): Action- >execute(Object(Registry), Array) #4 /home/u572407319/public_html/install/controller/upgrade/upgrade.php(28): Loader- >controller('common/header') #5 /home/u572407319/public_html/system/storage/modification/system/engine/action.php(51): ControllerUpgradeUpgrade->index() #6 /home/u572407319/public_html/system/engine/router.php(34): Action->execute(Object(Registry)) #7 /home/u572407319/public_html/system/engine/router.php(29): Router in /home/u572407319/public_html/system/library/template.php on line 11 Below is what can be done to fix this: The issue is the template adapters are set by system/config/catalog.php // Template$_['template_engine'] = 'twig'; Way to resolve it is, clear your modification directory! (system/storage/modification)Make sure you leave index.html but clear everything else out of that directory then refresh your main site/page.
Read More

How to enable CAPTCHA in your OpenCart store

Linux, SysAdmin, Technical
If you get lots of spam messages from your OpenCart store contact form, or you have lots of fake customers registering everyday, you should start using CAPTCHA codes to avoid all the bots. Starting from version v2.1.0.1 OpenCart has two different CAPTCHA modules integrated which you can start using in just couple of minutes. Here you’ll find a tutorial how to enable OpenCart CAPTCHA. How to enable OpenCart CAPTCHA CAPTCHA fields can be added to all the default OpenCart forms: Customer registration formContact Us pageProduct reviewsReturns page form There are two versions of CAPTCHA in OpenCart – a basic version (where customer has to enter letters and numbers he/she sees in the picture) and Google reCAPTCHA version. It adds “I’m not a robot” field to OpenCart forms: Both CAPTCHA modules can be…
Read More