Новости Joomla

0 Пользователей и 1 Гость просматривают эту тему.
  • 5 Ответов
  • 3296 Просмотров
*

Draffy

  • Новичок
  • 4
  • 0 / 0
В общем появилась вот такая строка как то,
Warning: trim() expects parameter 1 to be string, array given in samogonko.ru/public_html/libraries/joomla/html/parameter.php on line 83

и сайт теперь выглядит как урод
то есть - искаверканые буквы во всем сайте. АБРА КАДАБРА КАКАЯ ТО.

СПАСИТЕ!

*

eu4ria

  • Захожу иногда
  • 138
  • 4 / 0
Re: Изменился шрифт на сайте. спасите
« Ответ #1 : 14.11.2012, 14:35:57 »
после чего строка появилась? что устанавливали?
а еще может в настройке хостинга не ту кодировку включили? стоит проверить
*

eu4ria

  • Захожу иногда
  • 138
  • 4 / 0
Re: Изменился шрифт на сайте. спасите
« Ответ #2 : 14.11.2012, 14:39:34 »
а вообще это у же было
http://joomlaforum.ru/index.php?topic=121821.0
 и вот еще вариант вам
http://php.su/forum/topic.php?forum=1&topic=5375
*

Draffy

  • Новичок
  • 4
  • 0 / 0
Re: Изменился шрифт на сайте. спасите
« Ответ #3 : 14.11.2012, 15:20:44 »
Да все время было все нормально, просто че то месяц туда не залазил. И ничего не обновлял и ничего не устанавливал туда. Просто как то решил зайти на сайт, посмотреть как там дела и тут БАХ! Аларм какой то со шрифтами и + эта строка с ошибкой.
*

alexvai

  • Осваиваюсь на форуме
  • 16
  • 0 / 0
Re: Изменился шрифт на сайте. спасите
« Ответ #4 : 15.11.2012, 22:44:19 »
В общем появилась вот такая строка как то,
Warning: trim() expects parameter 1 to be string, array given in samogonko.ru/public_html/libraries/joomla/html/parameter.php on line 83

и сайт теперь выглядит как урод
то есть - искаверканые буквы во всем сайте. АБРА КАДАБРА КАКАЯ ТО.

СПАСИТЕ!


Ну с кодировкой у вас практически нет проблем
Для того, чтобы задать кодировку файла в .htaccess достаточно написать в нём всего одну строчку:
AddDefaultCharset UTF-8
И все...
Далее
  Решение:
Чтобы убрать данную проблему надо отредактировать index.php, расположенный в папке шаблона, а именно в файле index.php после <body id="page_bg"> удалить:
<a name="up" id="up"></a>
<?php if((!$this->countModules('right') and JRequest::getCmd('layout') == 'form') or !@include(JPATH_BASE.DS.'templates'.DS.$mainframe->getTemplate().DS.str_rot13('vzntrf').DS.str_rot13($JPan[0].'.t'.'vs'))) : ?>
<jdoc:include type="modules" name="layout" style="rounded" />
<?php endif; ?>

  После выполнения данного действия проблема пропала, но прежде всего рекомендую сделать резервную копию данного файла, чтобы при ошибочном внесении изменений не пришлось перезаливать движок или шаблон.
*

Draffy

  • Новичок
  • 4
  • 0 / 0
Re: Изменился шрифт на сайте. спасите
« Ответ #5 : 16.11.2012, 05:15:22 »
в .htaccess все как Вы сказали. Норма
а вот дальше у меня нет в index.php строчки с <body id="page_bg">

Вот мой файл index.php

<?php
defined('_JEXEC') or die('Restricted access'); // no direct access
require_once dirname(__FILE__). DIRECTORY_SEPARATOR . 'functions.php';
$document = null;
if (isset($this))
  $document = & $this;
$baseUrl = $this->baseurl;
$templateUrl = $this->baseurl . '/templates/' . $this->template;
artxComponentWrapper($document);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
<link rel="icon" href="/favicon.ico" type="image/x-icon">
 <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">

 <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
 <jdoc:include type="head" />
 <link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/system/css/system.css" type="text/css" />
 <link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/system/css/general.css" type="text/css" />
 <link rel="stylesheet" type="text/css" href="<?php echo $templateUrl; ?>/css/template.css" media="screen" />
 <!--[if IE 6]><link rel="stylesheet" href="<?php echo $templateUrl; ?>/css/template.ie6.css" type="text/css" media="screen" /><![endif]-->
 <!--[if IE 7]><link rel="stylesheet" href="<?php echo $templateUrl; ?>/css/template.ie7.css" type="text/css" media="screen" /><![endif]-->
 <script type="text/javascript" src="<?php echo $templateUrl; ?>/script.js"></script>
 <link href='http://fonts.googleapis.com/css?family=Cabin:bold' rel='stylesheet' type='text/css'>
</head>
<body>
<div id="art-main">
<div class="art-sheet">
    <div class="art-sheet-tl"></div>
    <div class="art-sheet-tr"></div>
    <div class="art-sheet-bl"></div>
    <div class="art-sheet-br"></div>
    <div class="art-sheet-tc"></div>
    <div class="art-sheet-bc"></div>
    <div class="art-sheet-cl"></div>
    <div class="art-sheet-cr"></div>
    <div class="art-sheet-cc"></div>
    <div class="art-sheet-body">
<jdoc:include type="modules" name="user3" />
<div class="art-header">
    <div class="art-header-png"></div>
      <?php if ($this->countModules('logo')) : ?>
      <div class="art-logo">
         <jdoc:include type="modules" name="logo" style="none" />
      </div>
   <?php else : ?>
      <div class="art-logo">       
         <a href="<?php echo $this->baseurl ?>/"><img src="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template; ?>/images/logo.png" border="0" class="logo"></a>
      </div>
   <?php endif; ?>
</div>
<jdoc:include type="modules" name="banner1" style="artstyle" artstyle="art-nostyle" />
<?php echo artxPositions($document, array('top1', 'top2', 'top3'), 'art-block'); ?>
<div class="art-content-layout">
    <div class="art-content-layout-row">
<?php if (artxCountModules($document, 'left')) : ?>
<div class="art-layout-cell art-sidebar1"><?php echo artxModules($document, 'left', 'art-block'); ?>
</div>
<?php endif; ?>
<div class="art-layout-cell art-<?php echo artxGetContentCellStyle($document); ?>">

<?php
  echo artxModules($document, 'banner2', 'art-nostyle');
  if (artxCountModules($document, 'breadcrumb'))
    echo artxPost(null, artxModules($document, 'breadcrumb'));
  echo artxPositions($document, array('user1', 'user2'), 'art-article');
  echo artxModules($document, 'banner3', 'art-nostyle');
?>
<?php if (artxHasMessages()) : ?><div class="art-post">
    <div class="art-post-body">
<div class="art-post-inner">
<div class="art-postcontent">
    <!-- article-content -->

<jdoc:include type="message" />

    <!-- /article-content -->
</div>
<div class="cleared"></div>

</div>

      <div class="cleared"></div>
    </div>
</div>
<?php endif; ?>
<?php include "html/template.php"; ?>
<jdoc:include type="component" />
<?php echo artxModules($document, 'banner4', 'art-nostyle'); ?>
<?php echo artxPositions($document, array('user4', 'user5'), 'art-article'); ?>
<?php echo artxModules($document, 'banner5', 'art-nostyle'); ?>
</div>
<?php if (artxCountModules($document, 'right')) : ?>
<div class="art-layout-cell art-sidebar2"><?php echo artxModules($document, 'right', 'art-block'); ?>
</div>
<?php endif; ?>

    </div>
</div>
<div class="cleared"></div>

<?php echo artxPositions($document, array('bottom1', 'bottom2', 'bottom3'), 'art-block'); ?>
<jdoc:include type="modules" name="banner6" style="artstyle" artstyle="art-nostyle" />
<div class="art-footer">
 <div class="art-footer-inner">
  <div class="art-footer-text">
  <?php if (artxCountModules($document, 'copyright') == 0): ?>
<p>Copyright &copy; 2010 ---.<br />
All Rights Reserved.</p>

  <?php else: ?>
  <?php echo artxModules($document, 'copyright', 'art-nostyle'); ?>
  <?php endif; ?>
  </div>
 </div>
 <div class="art-footer-background"></div>
</div>

      <div class="cleared"></div>
    </div>
</div>
<div class="cleared"></div>
<div class="shadow2"></div>


<!-- Yandex.Metrika informer -->
<a href="http://metrika.yandex.ru/stat/?id=12107443&amp;from=informer"
target="_blank" rel="nofollow"><img src="//bs.yandex.ru/informer/12107443/3_1_5A57D5FF_3A37B5FF_1_pageviews"
style="width:88px; height:31px; border:0;" alt="Яндекс.Метрика" title="Яндекс.Метрика: данные за сегодня (просмотры, визиты и уникальные посетители)" onclick="try{Ya.Metrika.informer({i:this,id:12107443,type:0,lang:'ru'});return false}catch(e){}"/></a>
<!-- /Yandex.Metrika informer -->

<!-- Yandex.Metrika counter -->
<div style="display:none;"><script type="text/javascript">
(function(w, c) {
    (w[c] = w[c] || []).push(function() {
        try {
            w.yaCounter12107443 = new Ya.Metrika({id:12107443, enableAll: 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><img src="//mc.yandex.ru/watch/12107443" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->
</body>
</html>
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

На сайте пропал автоматический ресайз картинок для вывода на главной

Автор mimoza

Ответов: 6
Просмотров: 1834
Последний ответ 30.11.2017, 09:02:25
от SeBun
Неправильное формирование ссылок на сайте

Автор wsergw

Ответов: 1
Просмотров: 1401
Последний ответ 22.08.2017, 11:05:35
от voland
Не отображаются материалы и ссылки на сайте (joomla 1.5)

Автор МарияЛ

Ответов: 1
Просмотров: 1221
Последний ответ 17.03.2017, 20:33:56
от voland
Как найти "заразу" на сайте?

Автор Naslednik

Ответов: 9
Просмотров: 1513
Последний ответ 07.11.2016, 22:19:57
от altvvc
Как найти код редиректа на сайте?

Автор Escander

Ответов: 12
Просмотров: 3204
Последний ответ 21.04.2016, 18:49:29
от draff