OpenCart 2.x./3.x. How to fix home page notice/errors after new language installation

Having an online shop is a great opportunity to sell your products to customers all over the world. That is why it is worth having the site in different languages. In order to do it in OpenCart, you need to install language packs. However, after the installation, you may see some notices or errors referring to modules. This guide will show you how to fix them.

You might have  notices like these on top of the site on the newly installed language page:

Notice: Undefined offset: 4 in /home/templa18/public_html/oc/catalog/controller/extension/module/zemez_social_list.php on line 6
Notice: Undefined offset: 4 in /home/templa18/public_html/oc/catalog/controller/extension/module/zemez_social_list.php on line 7
Notice: Undefined offset: 4 in /home/templa18/public_html/oc/catalog/controller/extension/module/zemez_megamenu.php on line 35

These notices mean that the content is not set for the newly installed language for the module that is mentioned in the notice.

To fix this, perform the following:

  1. Open admin panel and navigate to Extensions > Extensions and select Modules from the drop-down or Extensions >  Modules depending on your OpenCart version.
  2. Select each module from the notice to edit. In our case, we will need to edit the following modules: Zemez Megamenu and Zemez Social list.
  3. Select the newly installed language tab, as German in our case, and set the content for it or duplicate from another page.
  4. Save the made changes for each module and refresh the site.