0
Welcome Guest! Login
0 items Join Now

Warning: Division by zero in rt_splitmenu.php

    • J.M. Sanders's Avatar

    Warning: Division by zero in rt_splitmenu.php

    Posted 18 years 1 week ago
    • Hello All,

      I use the ModernBusiness template and since a few days my page doesn't load right anymore and I get this messages:

      Warning: Division by zero in D:\www\...\rt_splitmenu.php on line 63

      My host did an update of php to 5.2.

      Does anyone knows how to get rid of the error?

      Much appreciated!

      (I don't know if this is the right forum for this but because the ModernBusiness forum doesn't appear for me, I post this here.)
    • 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 1 week ago
    • do you any items in the menu used by splitmenu? probably main menu?
    • J.M. Sanders's Avatar

    Re: Warning: Division by zero in rt_splitmenu.php

    Posted 18 years 1 week ago
    • Thank you for replying! Yes I use the main menu. Don't know excactly what you mean.
  • Re: Warning: Division by zero in rt_splitmenu.php

    Posted 18 years 1 week ago
    • I also suddenly got the warning:
      Warning: Division by zero in /home/mysite/public_html/templates/rt_modbusiness/rt_splitmenu.php on line 63

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

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

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

      I see it in both FireFox and IE7

      It "suddenly" appeared, and I am pretty sure I didn't see it last time I updated my site.

      If I chose "module" in stead of "splitmenu" in the config for template it (the warning) doesn't show (of cource).

      It doesn't matter wether if I put a "sub-menu item" into the main menu or not.


      How can this be? - What do you believe is the case?
  • Re: Warning: Division by zero in rt_splitmenu.php

    Posted 18 years 1 week ago
    • Now it's all gone - without me changing anything. It might be a server problem(!) ???
    • J.M. Sanders's Avatar

    Re: Warning: Division by zero in rt_splitmenu.php

    Posted 18 years 1 week ago
    • I still have this problem. My site is 'down' because of this error. No solutions?
      Thx in advance.
  • Re: Warning: Division by zero in rt_splitmenu.php

    Posted 18 years 1 week ago
    • Sorry, the problem remains...
      It looked it did work due to a DNS that showed the old site...

      The problems still remains...
  • Re: Warning: Division by zero in rt_splitmenu.php

    Posted 18 years 6 days ago
    • Line 63 says:
      if ($color_index && isset($tab_colors[($tab_index)%count($tab_colors)])) {
                     $id .= $tab_colors[($tab_index)%count($tab_colors)];
                     $tab_index++;
    • 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
    • what value do you have for $tab_colors at the top of the file?
  • Re: Warning: Division by zero in rt_splitmenu.php

    Posted 18 years 6 days ago
    • $tab_color = 'white';
      Line 20

      Is this the one?

Time to create page: 0.052 seconds