Problem with Module Top Stories

Professional Business Joomla template for corporate and business websites suitable for showing stock quotes, up to date news, portfolio management resources or international market data.
ulrikjeppesen
Sun Jun 30, 2013 9:53 am
Hi everybody,
I have problems with two modules on my frontpage for http://www.dms-africa.com/
The middle Top Stories-module is empty and the right Top Stories-module is generating an error: Warning: Division by zero in D:\home\dmsafricacomda9r\www\modules\mod_news_pro_gk1\helper.php on line 489

Well - I cannot remember how I get the module to show up in the middle section and I cannot find out how to solve the error for the right section. :blush: :dry:

Can you help me?
User avatar

GK User
Sun Jun 30, 2013 10:47 am
Your site is offline now so I can see it. Attach that file here then I will check the code at line 489 for you, there looks like a problem with it.
User avatar
Platinum Boarder

ulrikjeppesen
Sun Jun 30, 2013 1:58 pm
Hi Don - two attachments, screendump of frontpage and helper.php
User avatar

GK User
Mon Jul 01, 2013 7:53 am
Hi,

Open helper.php, at line 489 you will find:
Code: Select all
if($li_counter % $this->config['links_amount'] == 0) $li_counter = 0;

Change it to:
Code: Select all
if($this->config['links_amount'] && $li_counter % $this->config['links_amount'] == 0) $li_counter = 0;

Then let me know if it works.
User avatar
Platinum Boarder

ulrikjeppesen
Mon Jul 01, 2013 5:32 pm
Hi Don, unfortunately it do not make any difference.
I do not know much about coding, but - with reference to the previously attached screendump of the frontpage - could it be that the middle module block (mod_news_pro_gk1) that do not have an article related to it - generates the error in helper.php?
The middel empty modul block says "Error: Any articles to show"
User avatar

GK User
Tue Jul 02, 2013 8:18 am
Send me a PM to provide admin and FTP accounts then I will debug further for you.
User avatar
Platinum Boarder

GK User
Wed Jul 17, 2013 12:47 pm
The issue is fixed for you now.
User avatar
Platinum Boarder

ulrikjeppesen
Sat Jul 20, 2013 9:51 am
Don, Thank you very much for you help - it is very much appreciated!

Regards,

Ulrik
User avatar


cron