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

Raid Calculations

Electronics, Linux, SysAdmin, Technical
The only redundant storage technique available that uses 3 drives is called RAID-5. This storage array allows one drive in your system to fail, while still retaining all of your data. The basic math behind Raid-5 is (# of Drives * GB per drive) – ( GB per one Drive) Raid can only use the maximum disk space for the smallest drive you have. In your case, a typical 3TB drive is 2794 GB. This plugged into the equation gives: (3 * 2794) – (2794) = 5588 GB of usable storage. (5.58 TB) Your 5TB drive will essentially waste it's extra 2TB and be used as a 3TB drive. http://superuser.com/questions/1100833/calculate-usable-storage-space-with-different-size-drives-in-windows-storage-spa
Read More

A little “Storage Spaces” tidbit

Electronics, SysAdmin, Technical
Although Storage Spaces in Windows 8, 8.1 and 10 allow mixing drives of different sizes, it is recommended to use drives that have similar capacity to avoid wasting disk space. For example, if you put one 300 GB disk and one 750 GB disk into a two-way mirror, you'll get a Storage Space (virtual disk) of 525 GB in size. The calculation is (300+750)/2 – to provide fault tolerance, only half of total disk space is available while using two-way mirror. The other half is used for data redundancy in case one of the drives goes offline for some reason. But mirroring means that all member drives contain exactly the same data. That's why the real usable space in this example maxes out at 300 GB (the smaller physical disk…
Read More