Bug in mainbody default.php

Create music content based Joomla website with this professional and cutting edge template created for Joomla 1.5
GK User
Fri Jan 29, 2010 1:49 am
Hi Guys,

Just ran into another bug:

Warning: Division by zero in /home/sites/site64/web/templates/gk_hewahoo/html/com_content/frontpage/default.php on line 39

I got this when disabling most of the modules. No idea what caused it, I disabled whole groups before I checked.

Solutions?

Thanks,
Tom
User avatar
Junior Boarder

teitbite
Fri Jan 29, 2010 12:00 pm
User avatar
Moderator

GK User
Fri Jan 29, 2010 12:34 pm
Hi Teitbite,

Thanks for responding!


That solution is for helper.php in mod_newspro, not gk_hewahoo/html/com_content/frontpage/default.php


The block where it goes wrong is this I think:

Code: Select all
$count   = min($this->params->get('num_intro_articles', 4), ($this->total - $i));
   $rows    = ceil($count / $this->params->get('num_columns', 2));


Any ideas?

site is www.masteryourlife.eu You can see it there.

Thanks,
Tom
User avatar
Junior Boarder

teitbite
Fri Jan 29, 2010 1:11 pm
Hi

I will worke it out but to do this I need Your ftp access data. Could You please send it to me? Mail is in the footer.
User avatar
Moderator

GK User
Fri Jan 29, 2010 1:53 pm
Thanks, email is sent!

Tom
User avatar
Junior Boarder

teitbite
Fri Jan 29, 2010 6:24 pm
Hi

It was rather easy problem. Because if the value is 0 nothing should be printed. So I've put it all into condition.

I someone deals with the same problem here is the corrected file.
User avatar
Moderator

GK User
Fri Jan 29, 2010 7:00 pm
Thanks Teitbite!

I have one other question:

I am searching my *** off why the header height remains, even when nothing is published in header1 and header2.

If I go to any other page, there's a lot of space between the logo and the path, while I cannot detect anything that causes that. Where is that set?

Thanks again!
Tom
User avatar
Junior Boarder

teitbite
Fri Jan 29, 2010 7:11 pm
Hi

Try to change in template.css

Code: Select all
div.blankheader {
margin-top:125px !important;
}


Setting margin to 0 is getting rid of this space. Please report if this change doesn't mess other pages.
User avatar
Moderator

GK User
Fri Jan 29, 2010 7:20 pm
Thanks for your suggestion. Unfortunately it doesn't change anything. Any other suggestions?
User avatar
Junior Boarder

teitbite
Fri Jan 29, 2010 7:25 pm
Hi

Are You sure? Look at the picture:
User avatar
Moderator

teitbite
Fri Jan 29, 2010 7:31 pm
Hi

I've changed it for You. Looks good in FF and IE. Does it or does it not? ( used the solution I gave )
User avatar
Moderator

GK User
Fri Jan 29, 2010 7:31 pm
LOL You are right! I think the upload of the file went wrong, it works now after forcing that file up there :)

Thanks a lot for your help!

Tom

Add: Just read you changed it for me. Thanks!
User avatar
Junior Boarder

teitbite
Fri Jan 29, 2010 7:33 pm
Hi

Glad I could help :)
User avatar
Moderator


cron