Recommended Posts

Добрый всем вечер.

Подскажите почему показывает страница с выводом ЖК?

Добавил ЖК, в списке он отображается, при переходе по ссылке выдает ошибку.

Fatal error: Uncaught SmartyCompilerException: Syntax Error in template "/var/www/www-root/data/www/domains/ышеу.com/apps/complex/site/template/complex_view.tpl" on line 400 "{/if}" unexpected closing tag in /var/www/www-root/data/www/domains/ышеу.com/third/smarty/sysplugins/smarty_internal_templatecompilerbase.php:441 Stack trace: #0 /var/www/www-root/data/www/domains/ышеу.com/third/smarty/sysplugins/smarty_internal_compilebase.php(145): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unexpected clos...', 400) #1 /var/www/www-root/data/www/domains/ышеу.com/third/smarty/sysplugins/smarty_internal_compile_if.php(172): Smarty_Internal_CompileBase->_close_tag(Array) #2 /var/www/www-root/data/www/domains/ышеу.com/third/smarty/sysplugins/smarty_internal_templatecompilerbase.php(286): Smarty_Internal_Compile_Ifclose->compile(Array, Object(Smarty_Internal_SmartyTemplateCompiler), Array, NULL, NULL) #3 /var/www/www-root/data/www/domains/ышеу.com/third/smarty/sysplugins/smarty_int in /var/www/www-root/data/www/domains/ышеу.com/third/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 441

Обновление ничего не дало

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах
5 часов назад, rumantic сказал:

Покажите что у вас тут (исходный код)


/apps/complex/site/template/complex_view.tpl

Изначально был код таким:

<script src="{$estate_folder}/apps/system/js/realtymap.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="{$estate_folder}/css/jquery.lightbox-0.5.css" media="screen">
<script type="text/javascript" src="{$estate_folder}/js/jquery.lightbox-0.5.js"></script>
<script>var map_type='{$map_type}';</script>
<script>
var markers_array=[];
</script>
{if $complex.geo.value.lat!='' && $complex.geo.value.lng!=''}
<script>
var mar={};
mar.lat={$complex.geo.value.lat};
mar.lng={$complex.geo.value.lng};

markers_array.push(mar);
</script>
{/if}
{literal}
<style>

.complex-option {
padding: 4px;
font-size: 14px;
}

.complex-option label {
display: inline-block;
font-weight: bold;
margin-bottom: 5px;
}
.complex-option span {
display: inline-block;
margin-left: 10px;
}
.is_developer_price {
margin: 10px auto;
text-align: center;
background-color: white;
padding: 10px;
color: Red;
font-weight: bold;
}
.complex-option-block {
margin: 10px 0 20px 0;
}

#tab-plannings .thumbnails .pldesc {
width: 100%;
color: black;
text-align: center;
margin-top: 5px;
}

.shaded {
background-color: rgba(210, 213, 218, 0.43);
}
#property-map img {
	max-width: none;
}
</style>
<script>
	$(document).ready(function(){
		$('.tabb').not(':first').hide();
		$('.complex-option:odd').addClass('shaded');
		$('.lbgallery').lightBox();
		$('.plgal').lightBox();
		if(markers_array.length>0){
			var RM=new RealtyMap();
			var marker_2=estate_folder + '/template/frontend/agency/img/mapmarker_tealhard.png';
			RM.initSimpleMap('property-map', map_type, markers_array, {defaultZoom: 14, marker_icon: marker_2});
		}		
		
		
		//$("#complexobjs").tablesorter(); 
		
		if($('.carousel.property  .content ul').length>0){
			$('.carousel.property  .content ul').carouFredSel({
				scroll: {
					items: 1
				},
				auto: false,
				next: {
					button: '.carousel.property  .content .carousel-next',
					key: 'right'
				},
				prev: {
					button: '.carousel.property  .content .carousel-prev',
					key: 'left'
				}
			});
			 $('.carousel.property .content li img').on({
		            click: function(e) {
		            	e.preventDefault();
		                var src = $(this).parents('a').eq(0).attr('href');
		                $('#imcounter .cur').text($(this).data('nr'));
		                
		                var img = $(this).closest('.carousel.property').find('.preview img');
		                var img_a = img.parents('a').eq(0);
		                img.attr('src', src);
		                img_a.attr('href', src);
		                $('.carousel.property .content li').each(function() {
		                    $(this).removeClass('active');
		                });
		                $(this).closest('li').addClass('active');
		            }
		        });
		       
			$('.carousel.property  ul li:first').addClass('active');
		}
	});
 

</script>
{/literal}
{if $apps_complex_no_tpl_title==0}
<h1>{$title}</h1>
{/if}
<div class="row-fluid">
	<div class="span8">
		{if $complex.image.type=='uploads'}
			{assign var='photo' value=$complex.image.value}
			{if $complex.image.value|count>0}
			{/if}
		{else}
			{if $complex.image.image_array|count>0}
			{assign var='photo' value=$complex.image.image_array}
			{/if}
		{/if}
		{if $photo|count>0}
		<div class="carousel property ">
			<div class="preview">
				<a href="{$estate_folder}/img/data/{$photo[0].normal}" class="lbgallery" title="Фото" ><img src="{$estate_folder}/img/data/{$photo[0].normal}" alt=""></a>
			</div>
			{if $photo|count>1}
			<div class="content">
				<a class="carousel-prev" href="#">Previous</a>
				<a class="carousel-next" href="#">Next</a>
				<ul>
				{section name=j loop=$photo}
				<li>
				  <a href="{$estate_folder}/img/data/{$photo[j].normal}"><img src="{$estate_folder}/img/data/{$photo[j].preview}" /></a>
				</li>
				{/section}
				</ul>
			</div>
			{/if}
		</div>
		{/if}
		{if $complex.description.value ne ''}		
		<div style="margin-top: 20px;">{$complex.description.value|strip_tags|nl2br}</div>
		{/if}
	</div>
	
	<div class="span4">
		<div class="det-det clearfix">
			<div class="complex-option-block">
			{if $complex.city_id.value!=0}
			<div class="complex-option"><label>{$complex.city_id.title}</label><span>{$complex.city_id.value_string}</span></div>
			{/if}
			{if $complex.district_id.value!=0}
			<div class="complex-option"><label>{$complex.district_id.title}</label><span>{$complex.district_id.value_string}</span></div>
			{/if}
			{if $complex.metro_id.value!=0}
			<div class="complex-option"><label>{$complex.metro_id.title}</label><span>{$complex.metro_id.value_string}</span></div>
			{/if}
			
			{if $complex.street_id.value!=''}
			<div class="complex-option"><label>{$complex.street_id.title}</label><span>{$complex.street_id.value_string}</span></div>
			{/if}
			
			{if isset($complex.built_year) && $complex.built_year.value ne ''}
				{if isset($complex.ready_quarter) && in_array($complex.ready_quarter.value, array('1', '2', '3', '4'))}{$complex.ready_quarter.value} квартал {/if}{$complex.built_year.value}
			{/if}
				
			{if $complex.lexx.value!=''}
			<div class="complex-option"><label>{$complex.lexx.title}</label><span>{$complex.lexx.value}</span></div>
			{/if}
			{if $complex.tip_construct.value!=''}
			<div class="complex-option"><label>{$complex.tip_construct.title}:</label><span>{$complex.tip_construct.value}</span></div>
			{/if}
			{if $complex.floor_count.value!=''}
			<div class="complex-option"><label>{$complex.floor_count.title}:</label><span>{$complex.floor_count.value}</span></div>
			{/if}
			{if $complex.deadline.value!=''}
			<div class="complex-option"><label>{$complex.deadline.title}:</label><span>{if $complex.is_ready.value==1}Сдан: {/if}{$complex.deadline.value}</span></div>
			{/if}
			{if $complex.otdelka.value!=''}
			<div class="complex-option"><label>{$complex.otdelka.title}:</label><span>{$complex.otdelka.value}</span></div>
			{/if}
			
			{if $complex.sales.value!=''}
			<div class="complex-option"><label>Отдел продаж:</label><span>{$complex.sales.value} {$complex.salesname.value}</span></div>
			{/if}
			
			{if isset($complex.price_min.value) && floatval($complex.price_min.value)>0}
			<div class="complex-option"><label>{$complex.price_min.title}:</label><span>{$complex.price_min.value|number_format:0:'':' '}</span></div>
			{/if}
			
			{if isset($complex.price_max.value) && floatval($complex.price_max.value)>0}
			<div class="complex-option"><label>{$complex.price_max.title}:</label><span>{$complex.price_max.value|number_format:0:'':' '}</span></div>
			{/if}
			
			{if isset($complex.square_min.value) && floatval($complex.square_min.value)>0}
			<div class="complex-option"><label>{$complex.square_min.title}:</label><span>{$complex.square_min.value|number_format:0:'':' '}</span></div>
			{/if}
			
			{if isset($complex.square_max.value) && floatval($complex.square_max.value)>0}
			<div class="complex-option"><label>{$complex.square_max.title}:</label><span>{$complex.square_max.value|number_format:0:'':' '}</span></div>
			{/if}
			
			{if isset($complex.price_pm_min.value) && floatval($complex.price_pm_min.value)>0}
			<div class="complex-option"><label>{$complex.price_pm_min.title}:</label><span>{$complex.price_pm_min.value|number_format:0:'':' '}</span></div>
			{/if}
			
			{if isset($complex.price_pm_max.value) && floatval($complex.price_pm_max.value)>0}
			<div class="complex-option"><label>{$complex.price_pm_max.title}:</label><span>{$complex.price_pm_max.value|number_format:0:'':' '}</span></div>
			{/if}
			
			{if isset($complex.view_count.value) && floatval($complex.view_count.value)>0}
			<div class="complex-option"><label>{$complex.view_count.title}:</label><span>{$complex.view_count.value|number_format:0:'':' '}</span></div>
			{/if}
			</div>
			
	
		</div>
	</div>
	
</div>

{if isset($complexobjs) && $complexobjs|count>0}
{* With tablesorter *}{if 1==0}<script type="text/javascript" src="{$estate_folder}/template/frontend/{$current_theme_name}/libraries/tablesorter/jquery.tablesorter.js"></script>{/if}
<h3>{$apps_words.complex.FR_COMPLEX_OBJS}</h3>
{include file=$complexobjs_tpl objs=$complexobjs cols=$complexobjs_comlumns}


{/if}

{if isset($complex_buildings) && $complex_buildings|count>0}
<div class="row-fluid">
	<div class="span12">
		<h3>Дома</h3>
	</div>
</div>
<div class="properties-grid">
    <div class="row">
    {foreach from=$complex_buildings item=complex_building name=i}


        <div class="property span3">
            <div class="image">
                <div class="content">
                    <a href="{$complex_building.href}"></a>
                    {if isset($complex_building.image.value[0])}
                    <img src="{$estate_folder}/img/data/{$complex_building.image.value[0].preview}" class="previewi">
                    {else}
                    <img src="{$estate_folder}/template/frontend/realia/img/no_foto_270x200.png" class="previewi">
                    {/if}
                </div>

            </div>
           
            <div class="title">
                <h2>
                <a href="{$complex_building.href}">{$complex_building.name.value}</a>
                </h2>
            </div>

            <div class="location">{if $grid_items[i].topic_info.$lang_topic_name != ''}{$grid_items[i].topic_info.$lang_topic_name}{else}{$grid_items[i].type_sh}{/if}</div>

        </div>
        {if $smarty.foreach.i.iteration%3==0}
        </div>
        <div class="row">
        {/if}
        {/foreach}
    </div>
</div>

{/if}

<ul class="nav nav-tabs">
  {if isset($complex.description) && $complex.description.value != ''}<li class="active"><a href="#tab-general" data-toggle="tab">О проекте</a></li>{/if}
  {if $grid_items|count>0}<li><a href="#tab-objects" data-toggle="tab">Объекты</a></li>{/if}
  {if isset($complex.plan_flat) && $complex.plan_flat.value|count>0}<li><a href="#tab-plannings" data-toggle="tab">Планировки квартир</a></li>{/if}
  {if isset($complex.sale_condition) && $complex.sale_condition.value != ''}<li><a href="#tab-sale" data-toggle="tab">Условия покупки</a></li>{/if}
  {if isset($complex.ipoteka_desc) && $complex.ipoteka_desc.value != ''}<li><a href="#tab-ipoteca" data-toggle="tab">Ипотека</a></li>{/if}
  {if isset($complex.prices_desc) && $complex.prices_desc.value != ''}<li><a href="#tab-prices" data-toggle="tab">Цены и прайсы</a></li>{/if}
</ul>
 
<div class="tab-content">
{if isset($complex.description) && $complex.description.value != ''}
	<div class="tab-pane active" id="tab-general">
		
		<h3>{$complex.description.title}</h3>
		<div class="property-description">
		  {$complex.description.value}
		</div>
		
	</div>
	{/if}
	{if $grid_items|count>0}
	<div class="tab-pane" id="tab-objects">
		<h3>{$apps_words.complex.FR_COMPLEX_ADVS}</h3>
			<div class="properties-rows">
				<div class="row">
			        {section name=i loop=$grid_items}
			        <div class="property span9{if $grid_items[i].bold_status==1} grid_list_bold{/if}{if $grid_items[i].premium_status==1} grid_list_premium{/if}{if $grid_items[i].vip_status==1} grid_list_vip{/if}">
			            <div class="row">
			                <div class="image span3">
			                    <div class="content">
			                        <a href="{$grid_items[i].href}"></a>
			                        {if $grid_items[i].img != '' }
			                        <img src="{$estate_folder}/img/data/{$grid_items[i].img[0].preview}" class="previewi">
			                        {else}
			                        <img src="{$estate_folder}/template/frontend/realia/img/no_foto_270x200.png" class="previewi">
			                        {/if}
			                    </div><!-- /.content -->
			                </div><!-- /.image -->
			
			                <div class="body span6">
			                    <div class="title-price row">
			                        <div class="title span4">
			                            <h2>
			                            	{if isset($smarty.session.favorites)}
									            {if in_array($grid_items[i].id,$smarty.session.favorites)}
									                <a class="fav-rem" alt="{$grid_items[i].id}" title="{$L_DELETEFROMFAVORITES}" href="#remove_from_favorites"></a>
									            {else}
									                <a class="fav-add" alt="{$grid_items[i].id}" title="{$L_ADDTOFAVORITES}" href="#add_to_favorites"></a>
									            {/if}
									        {else}
									        	<a class="fav-add" alt="{$grid_items[i].id}" title="{$L_ADDTOFAVORITES}" href="#add_to_favorites"></a>
									        {/if}
			                                <a href="{$grid_items[i].href}">
			                                {if $grid_items[i].city ne ''} {$grid_items[i].city}{if
			                    $grid_items[i].street ne ''}, {$grid_items[i].street}{if
			                    $grid_items[i].number ne ''}, {$grid_items[i].number}{/if}{/if}
			                    {else} {if $grid_items[i].street ne ''} {$grid_items[i].street}{if
			                    $grid_items[i].number ne ''}, {$grid_items[i].number}{/if} {/if}
			                    {/if}
			                                </a>
			                            </h2>
			                        </div><!-- /.title -->
			                        {if $grid_items[i].price_discount > 0}
			                        <div class="price">
			                        {$grid_items[i].price_discount|number_format:0:",":" "} {if $grid_items[i].currency_name != ''}{$grid_items[i].currency_name}{/if}
			                        <div class="price_discount_list">{$grid_items[i].price|number_format:0:",":" "} {if $grid_items[i].currency_name != ''}{$grid_items[i].currency_name}{/if}</div>
			                        </div><!-- /.price -->
			                        {else}
			                        <div class="price">{$grid_items[i].price|number_format:0:",":" "} {if $grid_items[i].currency_name != ''}{$grid_items[i].currency_name}{/if}</div>
			                        {/if}
			                    </div><!-- /.title -->
			
			                    <div class="location">{if $grid_items[i].topic_info.$lang_topic_name != ''}{$grid_items[i].topic_info.$lang_topic_name}{else}{$grid_items[i].type_sh}{/if}</div><!-- /.location -->
			                    <p>
			                    {if $grid_items[i].$lang_data_text != ''}
			                    {$grid_items[i].$lang_data_text|strip_tags|truncate:200}
			                    {else}
			                    {$grid_items[i].text|strip_tags|truncate:200}
			                    {/if}
			                    </p>
			                    <div class="area">
			                        <span class="key">{$L_SQUARE} м<sup>2</sup>:</span><!-- /.key -->
			                        <span class="value">{$grid_items[i].square_all}/{$grid_items[i].square_live}/{$grid_items[i].square_kitchen}</span><!-- /.value -->
			                    </div><!-- /.area -->
			                    <div class="area">
			                        <span class="key">{$L_FLOOR}:</span><!-- /.key -->
			                        <span class="value">{$grid_items[i].floor}/{$grid_items[i].floor_count}</span><!-- /.value -->
			                    </div><!-- /.area -->
			               </div><!-- /.body -->
			            </div><!-- /.property -->
			        </div><!-- /.row -->
			        {/section}
			    </div>
			</div>
	</div>
	{/if}
	{if isset($complex.plan_flat) && $complex.plan_flat.value|count>0}
	<div class="tab-pane" id="tab-plannings">
		
				<ul class="thumbnails">
				{foreach from=$complex.plan_flat.value item=presitem}
					<li class="span2">
					<a class="plgal" class="thumbnail" href="{$estate_folder}/img/data/{$presitem.normal}">
					<img src="{$estate_folder}/img/data/{$presitem.preview}" alt="{$presitem.title}">
					</a>
					<div class="pldesc">{$presitem.title}</div>
					</li>
				{/foreach}
				</ul>
				{/if}
				{if $complex.planning_info.value!=''}
				<div>
					{$complex.planning_info.value}
				</div>
				{/if}
	</div>
	{/if}
	{if isset($complex.sale_condition) && $complex.sale_condition.value != ''}
	<div class="tab-pane" id="tab-sale">
		<h3>Покупка</h3>https://mykvartira.com/account/data/?do=new#nav
				{$complex.sale_condition.value}
	</div>
	{/if}
	{if isset($complex.ipoteka_desc) && $complex.ipoteka_desc.value != ''}
	<div class="tab-pane" id="tab-ipoteca">
		<h3>{$complex.ipoteka_desc.title}</h3>
		<div class="property-description">
		{$complex.ipoteka_desc.value}
		</div>
	</div>
	{/if}
	{if isset($complex.prices_desc) && $complex.prices_desc.value != ''}
	<div class="tab-pane" id="tab-prices">
	
			<h3>{$complex.prices_desc.title}</h3>
			<div class="property-description">
			{$complex.prices_desc.value}
			</div>
			{/if}
			{if $price_matrix|count>0}
			<h3>Варианты</h3>
				<table class="table">
				{foreach from=$price_matrix item=price_matrix_item}
				<tr><td>{$price_matrix_item[0]}</td><td>{$price_matrix_item[1]}</td><td>{$price_matrix_item[2]}</td></tr>
				{/foreach}
				</table>
			
	</div>
	{/if}
</div>

{if $complex.geo.value.lat!='' && $complex.geo.value.lng!=''}
<div class="row-fluid">
	<div class="span12">
		<h3>На карте</h3>
		<div id="property-map" style="height: 300px;"></div>
	</div>
</div>
{/if}

Но убрав {/if} на 396 страница с комплексом стало отображаться, но не совсем корректно. https://mykvartira.com/complex/zhiloj-kompleks-borovoe/, скорее всего что-то неправильно с закрытыми-открытыми тегами

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

Создайте аккаунт или войдите для комментирования

Вы должны быть пользователем, чтобы оставить комментарий

Создать аккаунт

Зарегистрируйтесь для получения аккаунта. Это просто!

Зарегистрировать аккаунт

Войти

Уже зарегистрированы? Войдите здесь.

Войти сейчас