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

olegas1

  • Новичок
  • 4
  • 0 / 0
после того как я попробовал добавить в шаблоне youretro код Google analytics, появилась такая ошибка и половина шаблона не отображается.
Warning: explode() expects parameter 2 to be string, array given in /sata1/home/users/olegaspho/www/www.olegasphoto.com.ua/templates/youretro/layouts/grids/yjsg1.php on line 21 Warning: explode() expects parameter 2 to be string, array given in /sata1/home/users/olegaspho/www/www.olegasphoto.com.ua/templates/youretro/layouts/grids/yjsg2.php on line 21

сайт: http://olegasphoto.com.ua/

пробовал залить с бекапа файлы шаблона - не помогло. может быть в базе данных дело...
*

aspidy

  • Завсегдатай
  • 1008
  • 55 / 1
  • Миграция joomla 1.0-1.5-2.5
Дело в шаблоне, если добавили код по дороге стерли некоторые символы. Проверьте все, что записывали до и после.
Мелкий ремонт. skype poisk-plus
*

olegas1

  • Новичок
  • 4
  • 0 / 0
я изменения делал из под админки сайта, и потом все сбилось. когда в той же админке их убрал - не помогло. кроме того, я заливал старый бекап на фтп всех файлов сайта - не помогло((
*

olegas1

  • Новичок
  • 4
  • 0 / 0
похоже, буду заново шаблон ставить. попробовал просто другой поставить - ошибка исчезла...
*

aspidy

  • Завсегдатай
  • 1008
  • 55 / 1
  • Миграция joomla 1.0-1.5-2.5
похоже, буду заново шаблон ставить. попробовал просто другой поставить - ошибка исчезла...
Потому, что ошибка в самом шаблоне. При удалении проверьте чтобы удалялись все файлы. Часть файлов шаблона могут сохранятся
Мелкий ремонт. skype poisk-plus
*

olegas1

  • Новичок
  • 4
  • 0 / 0
обновил Joomla с 2.5.1 до 2.5.6 вроде помогло, только часть изображений некорректно отображаются
*

terr

  • Давно я тут
  • 824
  • 14 / 6
  • Ученик html-я
Что за ошибка?
"Warning: htmlentities() expects parameter 1 to be string, array given in /home/www/templates/youshopper/settings.php on line 213"
Появилась после установки router.php лдя vm
http://awesome-design.com/joomla/chpu-dlya-virteumart-a-routerphp.html

Хелпаните

Строка 213

Код
$my_url .= htmlentities($col)."=".htmlentities($val). "&";

Полностью код

Код
<?php
/*----------------------------------------------------------------------
# FOR YOUJOOMLA LLC COPYRIGHT REMOVAL VISIT THIS PAGE
# http://www.youjoomla.com/faq/view/you-joomla-templates-club/can-i-remove-youjoomla.com-copyright/78
# Youjoomla Default Index -
# Licensed to - Lorenzo Vergel - YJ License - 74460-YI781275
# ---This file may not be redistributed in whole or significant part---
# Copyright (C) 2007 - 2009 YOUJOOMLA LLC . All Rights Reserved.
# @license - Copyrighted Commercial Software
# Author: YOUJOOMLA LLC
# Website: http://www.youjoomla.com
------------------------------------------------------------------------*/
defined( '_JEXEC' ) or die( 'Restricted index access' );
$yj_site = JURI::base()."templates/".$this->template;
$yj_base = JURI::base();

require( TEMPLATEPATH.DS."links.php");


$default_color = $this->params->get("defaultcolor", "blue"); // set the default yellow | blue | red | green
$default_font  = $this->params->get("fontsize", "medium"); // SMALL | MEDIUM | BIG
$default_width = $this->params->get("sitewidth", "wide"); // WIDE | NARROW  


//TOOLS CONTROL
$showfont = $this->params->get("showfont", "1"); // SHOW FONT SWITCH = 1 | HIDE FONT SWITCH = 0
$showcolor = $this->params->get("showcolor", "1");// SHOW COLOR SWITCH = 1 | HIDE COLOR SWITCH = 0
$showwidth = $this->params->get("showwidth", "0"); // SHOW WIDTH SWITCH = 1 | HIDE WIDTH SWITCH = 0

// SUCKERFISH  MENU SWITCH //
$menu_name = $this->params->get("menuName", "mainmenu");// mainmenu by default, can be any Joomla! menu name

//MENU STYLE SWITCH//
$menustyle = $this->params->get("menustyle", "2");  //  1 = Standard Dropdown (Suckerfish)  | 2  = SMooth Dropdown | 3  = Split Menu



// USE SERVER SIDE SCRIPT AND CSS COMPRESSION FOR FASTER PAGE LOAD
// mod_gzip module  MUST BE ENABELED IN PHP.INI
// IF YOU ARE NOT SUER WHAT THIS IS LEAVE THIS SETTING 0
$compress = $this->params->get("compress", "0"); // 1 = TURN COMPRESSION ON  |  0 = TURN COMPRESSION OFF
// SEO SECTION //
$seo                    = $this->params->get ("seo", "Number 1 Joomla Templates Club");                      # JUST FOLOW THE TEXT
$tags                   = $this->params->get ("tags", "Joomla Templates by Youjoomla, Joomla Template Club, Youjoomla");# JUST FOLOW THE TEXT
$ie6notice  = $this->params->get("ie6notice", "0"); // 1 = ON | 0 = OFF  
// ADVISE VISITORS THAT THIR JAVASCRIPT IS DISABLED
$nonscript  = $this->params->get("nonscript", "0"); // 1 = ON | 0 = OFF
#DO NOT EDIT BELOW THIS LINE//////////////////////////////////////////////////////////////////////////

// SLIDE SHELF OPTIONS//  

$slide_type                     = $this->params->get ("slide_type", "scroll");  // fade | scroll | scrollfade
$slide_pageload                 = $this->params->get ("slide_pageload", "forward");  //  forward | stop   |  Start slide on page load  | forward = yes  |  stop = no
$slide_time                     = $this->params->get ("slide_time", "3000");     //   pause between slides  1000 = 1sec
$slide_duration                 = $this->params->get ("slide_duration", "500");     //    slide transition speed

require( TEMPLATEPATH.DS."styleswitcher.php");



//START COLLAPSING THAT MODULE:)
$left = $this->countModules( 'left' );
$right = $this->countModules( 'right' );
if ( $left  &&  $right  ) {

$leftblock  = '28%';
$midblock = '48%';
$rightblock  = '24%';
$wrap    = 'wrap';
    $insidewrap='insidewrap';

}elseif ( $left) {
$midblock = '65%';
$leftblock  = '35%';
$wrap    = 'wrapblank';
$insidewrap='insidewrapblank';

}elseif ( $right) {
$midblock = '65%';
$rightblock  = '35%';
$wrap    = 'wrap';
$insidewrap='insidewrapblank';

} else {
    $midblock = '100%';
$wrap    = 'wrapblank';
$insidewrap='insidewrapblank';
}



//START COLLAPSING

$botm2 = 0;
if ($this->countModules('user4')) $botm2++;
if ($this->countModules('user5')) $botm2++;
if ( $botm2 == 2 ) {
$user4_width = '40%';
$user5_width = '60%';
} else if ($botm2 == 1) {
$user4_width = '100%';
$user5_width = '100%';
}


$bottom3 = 0;
if ($this->countModules('user6')) $bottom3++;
if ($this->countModules('user7')) $bottom3++;
if ($this->countModules('user8')) $bottom3++;
if ( $bottom3 == 3 ) {
$bottomwidth = '33.3%';}
elseif ( $bottom3 == 2 ) {
$bottomwidth = '50%';
} else if ($bottom3 == 1) {
$bottomwidth = '100%';
}


$bottom4 = 0;
if ($this->countModules('user9')) $bottom4++;
if ($this->countModules('user10')) $bottom4++;
if ($this->countModules('user11')) $bottom4++;
if ($this->countModules('user12')) $bottom4++;
if ( $bottom4 == 4) {
//$bottom4width = '24.9%';
$bottom4width9 = '22%';
$bottom4width10 = '22%';
$bottom4width11 = '22%';
$bottom4width12 = '33.5%';
}
elseif ( $bottom4 == 3 ) {
//$bottom4width = '33.3%';}
$bottom4width9 = '33.3%';
$bottom4width10 = '33.3%';
$bottom4width11 = '33.3%';
$bottom4width12 = '33.3%';
}elseif ( $bottom4 == 2 ) {
//$bottom4width = '50%';
$bottom4width9 = '50%';
$bottom4width10 = '50%';
$bottom4width11 = '50%';
$bottom4width12 = '50%';
} else if ($bottom4 == 1) {
//$bottom4width = '100%';
$bottom4width9 = '100%';
$bottom4width10 = '100%';
$bottom4width11 = '100%';
$bottom4width12 = '100%';

}

$advert1 = 0;
$users = 0;
if ($this->countModules('advert1')) $advert1++;
if ($this->countModules('user1')) $users++;
if ($this->countModules('user2')) $users++;
if ($this->countModules('user3')) $users++;

if ($advert1 && $users){
$advert1_w = '71%';
$advert2_w = '27%';
}elseif($users){
$advert1_w = '100%';
}else if($advert1){
$advert2_w = '100%';
}



$SlideBox_m ="99%";



$adverts_show = 0;
$users_show = 0;
if ($this->countModules('advert1')) $adverts_show++;
if ($this->countModules('user1')) $users_show++;
if ($this->countModules('user2')) $users_show++;
if ($this->countModules('user3')) $users_show++;

if ($default_width == "wide" && $adverts_show && $users_show){
$SlideBox_w ="590px";
$slideshow_w ="590px";
$SlideBox_bw ="580px";
$SlideBox_f ="1770px";
}elseif ($default_width == "wide" && $users_show){
$SlideBox_w ="850px";
$slideshow_w ="850px";
$SlideBox_bw ="840px";
$SlideBox_f ="2250px";
}elseif($default_width == "narrow" && $adverts_show && $users_show){
$SlideBox_w ="465px";
$slideshow_w ="465px";
$SlideBox_bw ="455px";
$SlideBox_f ="1395px";
}elseif($default_width == "narrow" && $users_show){
$SlideBox_w ="680px";
$slideshow_w ="680px";
$SlideBox_bw ="670px";
$SlideBox_f ="2040px";
}



// -- figure out what URL to use for prefix
// -- Loop through existing prefix to get all of the variables
$my_vars = $_GET;
$my_url = "";
if(!empty($my_vars)) {
// -- Loop through the vars that are passed and make sure they are not any of the reserved ones
foreach($my_vars as $col => $val) {
if($col != "change_font" && $col != "change_width" && $col != "change_css") {
$my_url .= htmlentities($col)."=".htmlentities($val). "&amp;";
}
}
$my_request = $_SERVER["PHP_SELF"]."?".strip_tags(substr($my_url, 0, -5),"&amp;")."&amp;"; // -- Add some more
}else{
$my_request = $_SERVER["PHP_SELF"]."?"; // -- All alone
}
function getCurrentURL(){
$cururl = JRequest::getURI();
if(($pos = strpos($cururl, "index.php"))!== false){
$cururl = substr($cururl,$pos);
}
$cururl = JRoute::_($cururl);
$cururl = ampReplace($cururl);
return $cururl;
}

if ($compress == 1){
$jsextens ='php';
$cssextens ='php';
}else{
$jsextens ='js';
$cssextens ='css';
}


Закоментировал строку ошибка пропала, где косяк всплыветкоментировать не вариант?
*

passer

  • Завсегдатай
  • 1013
  • 75 / 3
Ну посмотрите что у вас там в $val, почему массив передается.
Код: php
foreach($my_vars as $col => $val) {
var_dump($val);
...
*

passer

  • Завсегдатай
  • 1013
  • 75 / 3
# @license - Copyrighted Commercial Software
кстати. Шаблон платный, может проще у разработчиков спросить.
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Дорогие Джумловеды, помогите

Автор clareo

Ответов: 2
Просмотров: 3107
Последний ответ 09.07.2018, 14:03:59
от blik
Решено: Помогите, навернулся шаблон(

Автор konstantingun

Ответов: 7
Просмотров: 1130
Последний ответ 03.11.2016, 19:01:48
от konstantingun
Помогите с темой Youmagazine (новости на главной)

Автор qwik

Ответов: 3
Просмотров: 2296
Последний ответ 14.04.2014, 16:53:44
от LolyCryu
Помогите с toppanel, которая выезжает сверху.

Автор veydaanton

Ответов: 3
Просмотров: 3040
Последний ответ 31.01.2014, 00:49:53
от rusol
Задний фон шаблона: "Ablaze_free" помогите

Автор lgortl

Ответов: 1
Просмотров: 1061
Последний ответ 19.02.2013, 02:04:16
от lgortl