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 17 years 11 months ago
    • did you try implementing this:
      quick fix, replace that line 62 you just added with:
       
      error_reporting(0);
  • Re: Warning: Division by zero in rt_splitmenu.php

    Posted 17 years 11 months ago
    • Oh yes,
      and it works. :)

      Just wanted to let you know why it didn't show before - and suddenly came...

      It's most probably that it doesn't show on PHP 5 but on PHP 5.2.0 ;)
  • Re: Warning: Division by zero in rt_splitmenu.php

    Posted 17 years 11 months ago
    • Got the same problem and thanks for the quuick fix. :)
  • Re: Warning: Division by zero in rt_splitmenu.php

    Posted 17 years 9 months ago
    • Preben Olsen Sangvik wrote:
      Oh yes,
      and it works. :)

      Just wanted to let you know why it didn't show before - and suddenly came...

      It's most probably that it doesn't show on PHP 5 but on PHP 5.2.0 ;)

      to be right cause have the same problem (server upgrade 5 to 5.2) and it appears... i use error reporting off and it works, but is this the final solution?
    • Dimitri's Avatar
    • Dimitri
    • Newbie
    • Posts: 9
    • Thanks: 0

    Re: Warning: Division by zero in rt_splitmenu.php

    Posted 17 years 9 months ago
    • Any real solution on this error?
    • Ako's Avatar
    • Ako
    • Newbie
    • Posts: 13
    • Thanks: 0

    Re: Warning: Division by zero in rt_splitmenu.php

    Posted 17 years 8 months ago
    • Andy Miller wrote:
      quick fix, replace that line 62 you just added with:

      error_reporting(0);

      All of a sudden, out of the blue, I got the same error message on one of my sites. A quick search in this forum and I got the error message to vanish again. Thanks for the solution, Andy :)
  • Re: Warning: Division by zero in rt_splitmenu.php

    Posted 17 years 7 months ago
    • I just got this error as well, bluehost.com must have done the same php update. For me it is in the extermities template. Thanks for quick fix.
    • Whoey's Avatar
    • Whoey
    • Sr. Rocketeer
    • Posts: 108
    • Thanks: 1

    Re: Warning: Division by zero in rt_splitmenu.php

    Posted 17 years 1 month ago
    • hi, just testing an old site on a new server with PHP5.x and got this error... quick fix stopped the errors but broke other things... such as SIFR and some other blocks...

      this solved it: www.joomlaportal.de/joomla-templates/895...ler-im-template.html

      the skinny is: look at the code in post 5... add the line 62+ code and replace the original line 80 with the appropriate 80+ code... solved.

      Just thought I'd share!
    • I'm an Individual, just like everyone else...
    • Beev Yarr's Avatar

    Re: Warning: Division by zero in rt_splitmenu.php

    Posted 17 years 1 month ago
    • Good Call.

      This worked for me as well. http://www.joomlaportal.de/joomla-templates/89527-fehler-im-template.html .

      Of course I thought I'd have to translate it first, but the fix is actually pretty simple to follow. Translated from Google:
      If the number of elements in the array containing 0,Then an element in the array. Here is 0, so that the array contains an element and it will not be through Zero divided.

      Line: 62 (Add)
      PHP code:
      if( count($tab_colors)==0 ) {
          $tab_colors = array(0);
      } 

      Now, however, a 0 at the beginning of the string of active menu item and
      As a class name of the other classes on board.
      Since numbers do not at the beginning of a CSS class are allowed and
      All classes without value in the array of class = "" be spent if
      We leglich remove the zero, we all figures in the early
      CSS class, and also set the class only if it is something out there.

      Line: 80 (substitute)
      $ Id = 'class = "'. $ Id. ' "';

      by:
      if( is_numeric( $id{0} ) ) {
          $id = substr( $id, 1, strlen($id)-1 );
      }
      $id = !empty($id) ? ' class="' . $id . '"' : '';


      Gruß
      Ec
  • Re: Warning: Division by zero in rt_splitmenu.php

    Posted 17 years 1 week ago
    • cant fix this problem by put error reporting 0 on line 62 :(

Time to create page: 0.066 seconds