Erro K2/Seblod

  • OGameOver
  • Avatar de OGameOver Autor do Tópico
  • Offline
  • JCB! Novato
  • JCB! Novato
Mais
11 anos 10 meses atrás #74391 por OGameOver
OGameOver created the topic: Erro K2/Seblod
Fala galera, tô com um problema que já me fez perder boas horas.
estou fazendo um site com um tema Gavick/K2/K2Store e preciso dele em multi site depois de dar uma boa fuçada a melhor solução que encontrei foi o Seblod, acontece que depois que criei o segundo site, um modulo do K2, o News Pro GK4 passou a apresentar o seguinte erro:
Notice: Undefined property: NSP_GK4_Layout_Parts::$config in /home/efacil/public_html/pizzaria1/modules/mod_news_pro_gk4/gk_classes/gk.utils.php on line 22
os demos dos site é estes:
(Master) http://efacil.net.br/pizzaria1/
(slave) http://centro.efacil.net.br/
todo o resto parece estar funcionando legal, inclusive o k2Store.

Algum SANTO pra me ajudar?

Valeu!!!

Please Entrar ou Registrar to join the conversation.


Mais
11 anos 10 meses atrás #74405 por Uriel
Uriel replied the topic: Re: Erro K2/Seblod
News Pro Gk4 não é um módulo do K2, é um módulo da Gavick!!

Eu acredito que ele não esteja entendendo o k2 estar repetido, ele não consegue pegar os artigos do K2 de dois lugares,


o que tem na linha 22 do arquivo
gk.utils.php
Tu deveria ter postado para a gente saber !!

Please Entrar ou Registrar to join the conversation.

  • OGameOver
  • Avatar de OGameOver Autor do Tópico
  • Offline
  • JCB! Novato
  • JCB! Novato
Mais
11 anos 10 meses atrás #74433 por OGameOver
OGameOver replied the topic: Re: Erro K2/Seblod
Pra já!! A linbha 22 está destacada.

<?php
/**
* Utils class
* @package News Show Pro GK4
* @Copyright (C) 2009-2011 Gavick.com
* @ All rights reserved
* @ Joomla! is Free Software
* @ Released under GNU/GPL License : http://www.gnu.org/copyleft/gpl.html
* @version $Revision: GK4 1.0 $
**/

// no direct access
defined('_JEXEC') or die('Restricted access');
class NSP_GK4_Utils {
// Method to cut text with specified limit value and type (characters/words)
function cutText($text, $limit_value, $limit_type, $at_end) {
// solved problem from: https://www.gavick.com/support/forums/4 ... 464#p57464
$cck_path = JPATH_BASE . DS . 'components' . DS . 'com_cck';
if (file_exists($cck_path)) {
if(JComponentHelper::isEnabled('com_cck', true)){
// Force parsing plugin if SEBLOD is used
if($this->config == FALSE) {
$text = JHtml::_('content.prepare', $text);
}
$text = trim(substr(strip_tags( $text,"<br /><br><strong></strong><p></p><i></i><b></b><span></span><ul></ul><li></li><blockquote></blockquote>"),0));
}
}
if($limit_type == 'words' && $limit_value > 0){
$temp = explode(' ',$text);

if(count($temp) > $limit_value){
for($i=0; $i<$limit_value; $i++) $cutted[$i] = $temp[$i];
$cutted = implode(' ', $cutted);
$text = $cutted.$at_end;
}
} elseif($limit_type == 'words' && $limit_value == 0) {
return '';
} else {
if(JString::strlen($text) > $limit_value){
$text = JString::substr($text, 0, $limit_value) . $at_end;
}
}
// replace unnecessary entities at end of the cutted text
$toReplace = array('&&', '&a&', '&am&', '&&', '&q&', '&qu&', '&quo&', '"&', '&ap&', '&apo&', '&apos&');
$text = str_replace($toReplace, '&', $text);
//
return $text;
}
// Method to get Gravatar avatar
function avatarURL($email, $size){
return ' www.gravatar.com/avatar/'.md5($email).'?...&default='.urlencode (JURI::root().'modules/mod_news_pro_gk4/interface/images/avatar.png');
}
}
/* EOF */

Please Entrar ou Registrar to join the conversation.