Problema com Mini Frontpage

  • marcolang
  • Avatar de marcolang Autor do Tópico
  • Offline
  • JCB! Novato
  • JCB! Novato
Mais
12 anos 3 meses atrás #63798 por marcolang
marcolang created the topic: Problema com Mini Frontpage
Olá, pessoal.
Instalei o Mini Frontpage no Joomla 2.5 e estou tendo os seguintes erros:

Warning: Division by zero in C:\wamp\www\site\modules\mod_minifrontpage\helper.php on line 380
Warning: Division by zero in C:\wamp\www\site\modules\mod_minifrontpage\helper.php on line 384


Abaixo segue a linha 380 a 388 do código do helper do Mini Frontpage:
	} else if ( $forcedwidth/$srcx>1 && $forcedheight/$srcy>1) {
		//May not make an image larger!
		$forcedwidth = $srcx;
		$forcedheight = $srcy;
	}	else if ( $forcedwidth/$srcx<1 && $aspect) {
		//$forcedheight = round(($forcedheight * $forcedwidth) /$srcx);
		$forcedheight = round( ($srcy/$srcx) * $forcedwidth );
		$forcedwidth = $forcedwidth;
	}

Como vocês podem ver, o código parece ser referente a geração de thumbnails. Alguém já teve este problema também? Sabem como resolver?

ABRAÇO

Please Entrar ou Registrar to join the conversation.


Mais
12 anos 1 mês atrás #67402 por franzytcha
franzytcha replied the topic: Re: Problema com Mini Frontpage
Olá...eu tive um problema semelhante ao criar uma exibição de artigos estilo BLOG em meu site, e o meu erro foi ter setado, sem querer, o número de colunas igual a 0 (zero) nos parâmetros... <!-- s;) --><img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Piscada" /><!-- s;) -->

Quem sabe ajude
<!-- s:ugeek: --><img src="{SMILIES_PATH}/icon_e_ugeek.gif" alt=":ugeek:" title="Uber Geek" /><!-- s:ugeek: -->

Please Entrar ou Registrar to join the conversation.

  • marcolang
  • Avatar de marcolang Autor do Tópico
  • Offline
  • JCB! Novato
  • JCB! Novato
Mais
12 anos 1 mês atrás #67404 por marcolang
marcolang replied the topic: Re: Problema com Mini Frontpage
Valeu pela dica franzytcha!

ABRAÇO <!-- s:ugeek: --><img src="{SMILIES_PATH}/icon_e_ugeek.gif" alt=":ugeek:" title="Uber Geek" /><!-- s:ugeek: -->

Please Entrar ou Registrar to join the conversation.