{"id":454,"date":"2018-03-07T06:04:06","date_gmt":"2018-03-07T06:04:06","guid":{"rendered":"http:\/\/angelwings.net\/blog\/?p=454"},"modified":"2018-03-07T06:04:06","modified_gmt":"2018-03-07T06:04:06","slug":"prestashop-1-7-smarty-error-blank-page-on-front-end-if-adding-new-language-manually","status":"publish","type":"post","link":"https:\/\/angelwings.net\/blog\/prestashop-1-7-smarty-error-blank-page-on-front-end-if-adding-new-language-manually\/","title":{"rendered":"Prestashop 1.7: Smarty error blank page on front end if adding new language manually"},"content":{"rendered":"<p>http:\/\/forge.prestashop.com\/browse\/BOOM-3486<\/p>\n<p>Error: When adding a new language in the backend (localization->languages), there is no option to enter the locale, resulting in an empty locale field in the table ps_lang.<br \/>\nThis results in a smarty error on frontend when selecting the new language:<br \/>\n{code}<br \/>\nSmartyException in smarty_internal_templatebase.php line 129:<br \/>\nUnable to load template file &#8216;\\index.tpl&#8217; {code}<\/p>\n<p>User&#8217;s suggested solution:<br \/>\nAs soon as I manually add a locale in the database, the error goes away.<br \/>\nTable: ps_lang<br \/>\nAdd the missing locale to the table<\/p>\n<p>Normally adding\/importing a new language should go to: Translation > Add\/Update a new language (or through the localization page)<br \/>\nBut there are times when languages may be required to be added manually and this causes the issue.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>http:\/\/forge.prestashop.com\/browse\/BOOM-3486 Error: When adding a new language in the backend (localization->languages), there is no option to enter the locale, resulting in an empty locale field in the table ps_lang. This results in a smarty error on frontend when selecting the new language: {code} SmartyException in smarty_internal_templatebase.php line 129: Unable to load template file &#8216;\\index.tpl&#8217; {code} [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28],"tags":[103,106],"class_list":["post-454","post","type-post","status-publish","format-standard","hentry","category-troubleshoot","tag-prestashop","tag-prestashop-1-7"],"_links":{"self":[{"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/posts\/454","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/comments?post=454"}],"version-history":[{"count":0,"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/posts\/454\/revisions"}],"wp:attachment":[{"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/media?parent=454"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/categories?post=454"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/tags?post=454"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}