JoelWebsites Posted March 31, 2015 Share Posted March 31, 2015 Can someone help me know how to solve broken javascript errors..I have attached a screenshort ?Please advice Link to comment Share on other sites More sharing options...
razaro Posted March 31, 2015 Share Posted March 31, 2015 Your path is wrong , you see themes//css and probably js too. Post some code from header.tpl or what changes you done. Link to comment Share on other sites More sharing options...
JoelWebsites Posted March 31, 2015 Author Share Posted March 31, 2015 I am trying to mix the css of themes that where created by leo themes...So thats the reason I am not able to locate the location of these console erros..Yes you are correct...However I wanted to know where these lines have been written...Is it possible to see the line number and file name where the issue has originated by using google chrome?...( just like the way we see for css in chrome) ? the code for my header.tpl is below <html lang="{$lang_iso}"{if isset($IS_RTL) && $IS_RTL} dir="rtl" class="rtl{if isset($LEO_DEFAULT_SKIN)} {$LEO_DEFAULT_SKIN}{/if}"{else} class="{if isset($LEO_DEFAULT_SKIN)}{$LEO_DEFAULT_SKIN}{/if}"{/if}> {include file="$tpl_dir./layout/setting.tpl"} <head> <meta charset="utf-8" /> <title>{$meta_title|escape:'html':'UTF-8'}</title> {if isset($meta_description) AND $meta_description} <meta name="description" content="{$meta_description|escape:'html':'UTF-8'}" /> {/if} {if isset($meta_keywords) AND $meta_keywords} <meta name="keywords" content="{$meta_keywords|escape:'html':'UTF-8'}" /> {/if} <meta name="generator" content="PrestaShop" /> <meta name="robots" content="{if isset($nobots)}no{/if}index,{if isset($nofollow) && $nofollow}no{/if}follow" /> {if $ENABLE_RESPONSIVE}<meta name="viewport" content="width=device-width, minimum-scale=0.25, maximum-scale=1.6, initial-scale=1.0" />{/if} <meta name="apple-mobile-web-app-capable" content="yes" /> <link rel="icon" type="image/vnd.microsoft.icon" href="{$favicon_url}?{$img_update_time}" /> <link rel="shortcut icon" type="image/x-icon" href="{$favicon_url}?{$img_update_time}" /> {if isset($IS_RTL) && $IS_RTL} <link rel="stylesheet" type="text/css" href="{$content_dir}themes/{$LEO_THEMENAME}/css/bootstrap-rtl.css"/> {else} <link rel="stylesheet" type="text/css" href="{$content_dir}themes/{$LEO_THEMENAME}/css/bootstrap.css"/> {/if} {if isset($css_files)} {foreach from=$css_files key=css_uri item=media} <link rel="stylesheet" href="{$css_uri}" type="text/css" media="{$media}" /> {/foreach} {/if} {if $ENABLE_RESPONSIVE} <link rel="stylesheet" type="text/css" href="{$content_dir}themes/{$LEO_THEMENAME}/css/responsive.css"/> {else} <link rel="stylesheet" type="text/css" href="{$content_dir}themes/{$LEO_THEMENAME}/css/non-responsive.css"/> {/if} {$HOOK_HEADER} {if isset($LEO_CSS)}{foreach from=$LEO_CSS key=css_uri item=media} <link rel="stylesheet" href="{$css_uri}" type="text/css" media="{$media}" /> {/foreach}{/if} {if isset($CUSTOM_FONT)} {$CUSTOM_FONT} {/if} {if isset($LAYOUT_WIDTH)} {$LAYOUT_WIDTH} {/if} <!--[if IE 8]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script> <![endif]--> </head> <body{if isset($page_name)} id="{$page_name|escape:'html':'UTF-8'}"{/if} class="{if isset($page_name)}{$page_name|escape:'html':'UTF-8'}{/if}{if isset($body_classes) && $body_classes|@count} {implode value=$body_classes separator=' '}{/if}{if $hide_left_column} hide-left-column{/if}{if $hide_right_column} hide-right-column{/if}{if $content_only} content_only{/if} lang_{$lang_iso} {if isset($LEO_LAYOUT_MODE)}{$LEO_LAYOUT_MODE}{/if}"> {if !$content_only} {if isset($restricted_country_mode) && $restricted_country_mode} <section id="restricted-country"> <p>{l s='You cannot place a new order from your country.'} <span class="bold">{$geolocation_country}</span></p> </section> {/if} <section id="page" data-column="{$colValue}" data-type={$LISTING_GRIG_MODE}> <!-- Header --> <header id="header"> <section class="header-container"> <div id="topbar"> <div class="nav"> <div class="container"> <div class="row"> <nav>{hook h="displayNav"}</nav> </div> </div> </div> </div> <div id="header-main"> <div class="container"> <div class="row"> <div id="header_logo" class="pull-left col-lg-3 col-md-3"> <a href="{$base_dir}" title="{$shop_name|escape:'html':'UTF-8'}"> <img class="logo img-responsive" src="{$logo_url}" alt="{$shop_name|escape:'html':'UTF-8'}"{if $logo_image_width} width="{$logo_image_width}"{/if}{if $logo_image_height} height="{$logo_image_height}"{/if}/> </a> </div> <div id="header_right" class="col-lg-9 col-md-9"> {if isset($HOOK_TOP)}{$HOOK_TOP}{/if} </div> </div> </div> </div> </section> </header> {if isset($HOOK_TOPNAVIGATION)&&!empty($HOOK_TOPNAVIGATION)} <div id="topnavigation" class="clearfix"> <div class="container"> {$HOOK_TOPNAVIGATION} </div> </div> {/if} {if isset($HOOK_SLIDESHOW)&& !empty($HOOK_SLIDESHOW)} <section id="slideshow" class="clearfix"> <div class="container"> <div class="row"> {$HOOK_SLIDESHOW} </div> </div> </section> {/if} <!-- Content --> <section id="columns" class="columns-container"> <div class="container"> <div class="row"> <div id="top_column" class="center_column col-xs-12 col-sm-12 col-md-12"> {hook h="displayTopColumn"} </div> </div> <div class="row"> {if !isset($LEO_LAYOUT_DIRECTION)} {assign var="LEO_LAYOUT_DIRECTION" value="default" scope='global'} {/if} {include file="$tpl_dir./layout/{$LEO_LAYOUT_DIRECTION}/header.tpl"} {/if} Link to comment Share on other sites More sharing options...
razaro Posted March 31, 2015 Share Posted March 31, 2015 You see {$LEO_THEMENAME} variable, that is missing. And that variable is defined in module Leo Theme Control Panel. So you are probably need to have that module installed. 1 Link to comment Share on other sites More sharing options...
zod Posted October 30, 2015 Share Posted October 30, 2015 I had the same problem, but the Leo Theme Control Panel was installed. Everything was fine in my theme, the problem happended when i installed the module "Ship2Pay", for an unknown reason it was doing errors and it was messing up with {$LEO_THEMENAME} variable. After i unistalled it, the theme was running well again.So be careful with extra modules and try to uninstall them. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now