0
Welcome Guest! Login
0 items Join Now

Warning: Division by zero in rt_splitmenu.php

    • Andy Miller's Avatar
    • Andy Miller
    • Preeminent Rocketeer
    • Posts: 9919
    • Thanks: 96
    • Web Kahuna

    Re: Warning: Division by zero in rt_splitmenu.php

    Posted 18 years 6 days ago
    • actually, probalby best to send me your whole rt_splitmenu.php file to support(a)rockettheme.com
  • Re: Warning: Division by zero in rt_splitmenu.php

    Posted 18 years 6 days ago
    • Email sent... :-)

      I guess it's the original file (can't remember that I have modded this one...)
    • Andy Miller's Avatar
    • Andy Miller
    • Preeminent Rocketeer
    • Posts: 9919
    • Thanks: 96
    • Web Kahuna

    Re: Warning: Division by zero in rt_splitmenu.php

    Posted 18 years 6 days ago
    • the file looks fine.. the only place i can see that a division by zero error would occur is with the modulus operator (%), and that means $tab_color would have to be zero which makes no sense as tab_color is a global here. Only thing i can think of is on line 62 put:

      $tab_color = 'white';
  • Re: Warning: Division by zero in rt_splitmenu.php

    Posted 18 years 6 days ago
    • Do you mean like this: (?)
      $tab_color = 'white';
                if ($color_index && isset($tab_colors[($tab_index)%count($tab_colors)])) {
                     $id .= $tab_colors[($tab_index)%count($tab_colors)];
                     $tab_index++;

      $tab_color = 'white'; / on line 62 ...

      Didn't work. See www.sangvik.com
    • Andy Miller's Avatar
    • Andy Miller
    • Preeminent Rocketeer
    • Posts: 9919
    • Thanks: 96
    • Web Kahuna

    Re: Warning: Division by zero in rt_splitmenu.php

    Posted 18 years 6 days ago
    • quick fix, replace that line 62 you just added with:

      error_reporting(0);
  • Re: Warning: Division by zero in rt_splitmenu.php

    Posted 18 years 6 days ago
    • Quick fix worked. :-)

      Can this error come from server config?
      (Seamed to come after server move: my host upgraded servers...)
    • J.M. Sanders's Avatar

    Re: Warning: Division by zero in rt_splitmenu.php

    Posted 18 years 6 days ago
    • Yes, my host also updated php and changed some things with vars I believe.

      I did some searching and there are other sites out there that use ModernBusiness which have this problem. I didn't find a solution yet.

      I'll try the quick fix. Thanks!
    • Last Edit: 18 years 5 days ago by .
  • Re: Warning: Division by zero in rt_splitmenu.php

    Posted 18 years 6 days ago
    • I will also let you know that I tried a total new install of the template - after the webhotel upgrade - but still didn't work.

      Use the quick fix for now...
    • J.M. Sanders's Avatar

    Re: Warning: Division by zero in rt_splitmenu.php

    Posted 18 years 5 days ago
    • Quick fix works. :)
      Thanks!!
  • Re: Warning: Division by zero in rt_splitmenu.php

    Posted 17 years 11 months ago
    • OK, I now know what couses it:

      My host just, and I mean just, upgraded to PHP 5.2.0 from PHP 5

      that made this warning arrive...

Time to create page: 0.070 seconds