RocketTheme

General => General Discussion => Topic started by: Roger Van Uden on November 26, 2007, 10:47:49 PM



Title: rt_modbusiness menu error
Post by: Roger Van Uden on November 26, 2007, 10:47:49 PM
hi,


Long time ago i purchased a membership abnd one of them templates included was rt_modbusiness

Seems that i have an error on that template now:

Quote
Warning: Division by zero in /home/jouhanne/public_html/templates/rt_modbusiness/rt_splitmenu.php on line 63

site: http://www.wellcareproducts.com

do you guys have any idea what causes this error?

ty in advance

Roger


Title: Re: rt_modbusiness menu error
Post by: James S! on November 27, 2007, 10:59:24 AM
Quote
put this above the line that is causing the error:

error_reporting(0);


Title: Re: rt_modbusiness menu error
Post by: Nickza on January 21, 2008, 12:26:49 AM
Thanks. works 100%...

Why did this happen?


Title: Re: rt_modbusiness menu error
Post by: teknowcat on January 25, 2008, 05:21:06 AM
I ran into the same problem with the same template.  It took me a few minutes to find the offending line, but once isolated, I inserted the line (referenced below) per Muffin Man's instructions -bingo. . . back to normal!  ;D  I'm curious like Nickza -does anyone know why this happened?  In my case I'm running this template on 1.5 RC3, but in legacy mode.  Could that be the issue?

error_reporting(0);
if ($color_index && isset($tab_colors[($tab_index)%count($tab_colors)])) {
                        $id .= $tab_colors[($tab_index)%count($tab_colors)];
                        $tab_index++;


Title: Re: rt_modbusiness menu error
Post by: James S! on January 25, 2008, 10:37:04 AM
I think its a PHP version issue but not really sure.