Перейти к публикации
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

PHP Notice: Undefined variable: base in


 Погделиться

Рекомендованные сообещёния

В логах икая запись:

2011-02-17 9:20:08 - PHP Notice:  Undefined variable: base in /home/a/alltohouru/site.mestodetok.net/public_html/catalog/view/theme/alltuts/template/common/footer.tpl on line 60
Сам код footer.tlp

Понять не могу на что именно ругается, ведь в строке 60 переменная

echo $output;

</div><!-- end wrapper -->



    <!-- begin footer -->

    <div id="footer">

      <div id="footerInner">

      	<?php

      	$this->language->load('module/information');

      	$text_information = $this->language->get('heading_title');

      	$text_contact = $this->language->get('text_contact');

				$text_sitemap = $this->language->get('text_sitemap');

      	$this->language->load('common/header');

      	$text_bookmark = $this->language->get('text_bookmark');

      	$text_site_title = $this->document->title;

      	?>

        <div class="boxFooter">

          <h2><?php echo $text_information; ?></h2>

          <ul>

          	<?php

						$this->load->model('tool/seo_url');

						$this->load->model('catalog/information');

						$output = '';

						$results = $this->model_catalog_information->getInformations();

						foreach ($results as $result) {

								$new_path = $result['information_id'];

								$unrewritten = HTTP_SERVER.'index.php?route=information/information&information_id='.$new_path;

								$rewritten = $this->model_tool_seo_url->rewrite($unrewritten);

								$output .= '

									<li><a href="'.str_replace('&', '&', $rewritten).'">'.$result['title'].'</a></li>';

								}

								echo $output;

						?>

          </ul>

        </div>

        <div class="boxFooter">

          <h2>Клиеним</h2>

          <div class="boxFooter">

         		<ul>

							<li><a onclick="bookmark(document.location, '<?php echo addslashes($text_site_title); ?>');"><?php echo $text_bookmark; ?></a></li>

							<li><a href="<?php echo HTTP_SERVER; ?>index.php?route=information/contact"><?php echo $text_contact; ?></a></li>

							<li><a href="<?php echo HTTP_SERVER; ?>index.php?route=information/sitemap"><?php echo $text_sitemap; ?></a></li>

						</ul>

          </div>

        </div>

        <div class="boxFooter">

          <h2>Вкратэто...</h2>

          <div class="textwidget">

            <p>
                +7 (499) 613-85-20
            	<a onclick="window.open('https://');"><img src="" alt="" /></a>

            	<br />

            </p>

          </div>

        </div>

      </div>

    </div>

    <div id="copyright">

      <div id="copyrightInner">

      	<a onclick="window.open('http://mestodetok.net/index.php?route=information/contact');" title="Задать вопрос!">Есть вопросы?</a>

        <div id="site5bottom">

          <a href="<?php echo str_replace('&', '&', $base); ?>" title="Продаём гдетские товары в интернет магазине">Интернет-магазин гдетских товаров «MestoDetok»</a>

        </div>

      </div>

    </div><!-- end footer -->
<!-- Yandex.Metrika counter -->
<div style="display:none;"><script type="text/javascript">
(function(w, c) {
    (w[c] = w[c] || []).push(function() {
        try {
            w.yaCounter3245410 = new Ya.Metrika(3245410);
             yaCounter3245410.clickmap(true);
             yaCounter3245410.trackLinks(true);

        } catch(e) {}
    });
})(window, 'yandex_metrika_callbacks');
</script></div>
<script src="//mc.yandex.ru/metrika/watch.js" type="text/javascript" defer="defer"></script>
<noscript><div style="position:absolute"><img src="//mc.yandex.ru/watch/3245410" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->
<p>
<a onclick="window.open('http://validator.w3.org/check?uri=referer');"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Strict" height="31" width="88" /></a>
<!--LiveInternet counter--><script type="text/javascript"><!--
document.write("<a href='http://www.liveinternet.ru/click' "+
"target=_blank><img src='//counter.yadro.ru/hit?t14.5;r"+
escape(document.referrer)+((typeof(screen)=="undefined")?"":
";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?
screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+
";"+Math.random()+
"' alt='' title='LiveInternet: показано лисло просмотров за 24"+
" часа, посетителей за 24 часа и за сегодня' "+
"border='0' width='88' height='31'><\/a>")
//--></script><!--/LiveInternet-->

<!--Openstat--><span id="openstat2153261"></span><script type="text/javascript">
var openstat = { counter: 2153261, next: openstat }; (function(d, t, p) {
var j = d.createElement(t); j.async = true; j.type = "text/javascript";
j.src = ("https:" == p ? "https:" : "http:") + "//openstat.net/cnt.js";
var s = d.getElementsByTagName(t)[0]; s.parentNode.insertBefore(j, s);
})(document, "script", document.location.protocol);
</script><!--/Openstat-->

<!-- begin of Top100 code -->

<script id="top100Counter" type="text/javascript" src="http://counter.rambler.ru/top100.jcn?2391990"></script>
<!-- end of Top100 code -->

<!-- [email protected] counter -->
<script type="text/javascript">//<![CDATA[
var a='';js=10;d=document;
try{a+=';r='+escape(d.referrer);}catch(e){}try{a+=';j='+navigator.javaEnabled();js=11;}catch(e){}
try{s=screen;a+=';s='+s.width+'*'+s.height;a+=';d='+(s.colorDepth?s.colorDepth:s.pixelDepth);js=12;}catch(e){}
try{if(typeof((new Array).push('t'))==="number")js=13;}catch(e){}
try{d.write('<a href="http://top.mail.ru/jump?from=1982600"><img src="http://d0.c4.be.a1.top.mail.ru/counter?id=1982600;t=218;js='+js+
a+';rand='+Math.random()+'" alt="Рейтинг@Mail.ru" style="border:0;" height="31" width="88" \/><\/a>');}catch(e){}//]]></script>
<!-- //[email protected] counter -->

<!-- HotLog -->
<script type="text/javascript">
hotlog_js="1.0"; hotlog_r=""+Math.random()+"&s=2123917&im=650&r="+
escape(document.referrer)+"&pg="+escape(window.location.href);
</script>
<script type="text/javascript">
hotlog_js="1.1"; hotlog_r+="&j="+(navigator.javaEnabled()?"Y":"N");
</script>
<script type="text/javascript">
hotlog_js="1.2"; hotlog_r+="&wh="+screen.width+"x"+screen.height+"&px="+
(((navigator.appName.substring(0,3)=="Mic"))?screen.colorDepth:screen.pixelDepth);
</script>
<script type="text/javascript">
hotlog_js="1.3";
</script>
<script type="text/javascript">//<![CDATA[
hotlog_r+="&js="+hotlog_js;
document.write('<a href="http://click.hotlog.ru/?2123917"><img '+
'src="http://hit37.hotlog.ru/cgi-bin/hotlog/count?'+
hotlog_r+'" border="0" width="88" height="31" alt="HotLog"><\/a>');//]]>
</script>
<!-- /HotLog -->
</p>

</body>

</html>
Изменено пользователем afwollis
упаковал КОДИЩЕ в spoiler
Ссылка на комменирий
Погделиться на других сайих


  • 3 негдели спустя...

Да какая разница, что им в 60-й строке?

У вас проблема с переменной $base.

Она есть вот тут:

<a href="<?php echo str_replace('&', '&', $base); ?>" title="Продаём гдетские товары в интернет магазине">Интернет-магазин гдетских товаров «MestoDetok»</a>
вот и опрегделите ее в

catalog/controller/common/footer.php
Ссылка на комменирий
Погделиться на других сайих

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

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

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

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

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

Войти

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

Войти сейчас
 Погделиться

×
×
  • Создать...

Важная информация

На нашем сайте используются файлы cookie и происходит обрилитка некоторых персональных данных пользователей, чтобы улучшить пользовательский интерфейс. Чтобы узнать для чего и какие персональные данные мы обрабатываем перейдите по ссылке. Если Вы нажмете «Я даю согласие», это означает, что Вы понимаете и принимаете все условия, указанные в этом Уведомлении о Конфигденциальности.