News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Error Message for one...

Started by Boylie, September 05, 2005, 07:29:00 PM

Previous topic - Next topic

Boylie

One of my Members keeps getting an error message every time they post the post dont show and it says

2: Division by zero
File: /home/eponnox/public_html/forum/Sources/Display.php
Line: 956

can any one help?

Chris Cromer

What version of SMF do you have installed? Do you have any mods installed that affect the displaying of posts?
Chris Cromer

"I was here, here I was, was I here, sure I was" - The little voice in my head.

Boylie

1.0.5 no mods that affect posting

its only one member and everyone eles is ok

Chris Cromer

Well I am looking in the 1.0.5 source... and it ends on line 917. But that error you gave me is coming from line 956 which doesn't exist. So either that Display.php is not from 1.0.5, or you have a mod installed that that modified Display.php.

Could you paste here what line 956 is in Display.php.
Chris Cromer

"I was here, here I was, was I here, sure I was" - The little voice in my head.

Boylie

here thanks for your help

      $bar_exp = round(sprintf(($bar_post / $bar_nextlevel) * 100),2);

Chris Cromer

Alrigth that's definatly not a part of SMF's default code. It looks like some sort of experience or rpg mod? If so you should ask the author of the mod about this since it's a problem with his code.
Chris Cromer

"I was here, here I was, was I here, sure I was" - The little voice in my head.

Boylie

thanks for your help

your a true support member

Isaac

Quote from: Eponnox on September 05, 2005, 07:54:40 PM
here thanks for your help

      $bar_exp = round(sprintf(($bar_post / $bar_nextlevel) * 100),2);
That looks like you have the Expierence Bar MOD installed.

Advertisement: