Blog

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

Intex Pool Horizontal Pole Repair

DIY
intex pool repair – Fix your horizontal poles with these custom fit sleeves. Here is a video of the finished product after repair We had to repair our 15 Ft x 48″ tall Intex pool after 2 years of normal use due to rusting of the horizontal poles. I have identified the problem starting with the thin wall metal poles used by Intex and the fact that they are a loose fit which results in metal on metal contact. When the pool rocks back and forth from people in the water the metal on metal scrapes the paint away resulting in continuing wet conditions on bare metal. After inspection of the poles after taking the pool down to re level the legs and ground we found over the 2 years the…
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