Division by zero error in server logs...

I get these occasionally...

Here's the details...

Code:
ErrorException: Division by zero - library/Arcade/ControllerPublic/ArcadeUgly.php:63
Generated By: HIDDEN, Today at 1:54 AM
 
Stack Trace
#0 /*/library/Arcade/ControllerPublic/ArcadeUgly.php(63): XenForo_Application::handlePhpError(2, 'Division by zer...', '/*/p...', 63, Array)
#1 /*/library/XenForo/FrontController.php(310): Arcade_ControllerPublic_ArcadeUgly->actionCorePermRequest()
#2 /*/library/XenForo/FrontController.php(132): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#3 /index.php(13): XenForo_FrontController->run()
#4 {main}
Request State
array(3) {
  ["url"] => string(32) "http://forums.wtf.com/arcade.php"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(6) {
    ["note"] => string(1) "0"
    ["sessdo"] => string(11) "permrequest"
    ["id"] => string(4) "1393"
    ["score"] => string(0) ""
    ["fakekey"] => string(1) "7"
    ["gametime"] => string(10) "1364536429"
  }
}
 
Do you guys happen to know if you have any v3A games installed and, if so, which ones? I'm not seeing any errors in the log file here but from the error it looks like it may be related to a score being submitted for a v3A game.
 
Do you guys happen to know if you have any v3A games installed and, if so, which ones? I'm not seeing any errors in the log file here but from the error it looks like it may be related to a score being submitted for a v3A game.

Games installed:
  • Asteroids
  • Chopper
  • Frogger
  • Frogit
  • Monster Memory
  • PacMan
  • Snake
  • Spaceinvaders
  • 123 Maze
    Alchemy
    Hexxagon
  • Swap
  • Tetris
  • Autobahn
  • Karts
  • RocketMX
  • AirFox
  • Altex
  • Gunman
  • Starship Legend
  • 100 Men
    Ants
  • Arkanoid
  • Breakout
  • Curveball
  • Graveyard
  • Homers Beer Run
  • Q-Manoids
  • Streaker
  • 2-Hand Poker

Code:
ErrorException: Division by zero - library/Arcade/ControllerPublic/ArcadeUgly.php:63
Generated By: Road Crew, Yesterday at 9:39 AM
Code:
#0 /home/*/public_html/forums/library/Arcade/ControllerPublic/ArcadeUgly.php(63): XenForo_Application::handlePhpError()
#1 /home/*/public_html/forums/library/XenForo/FrontController.php(310): Arcade_ControllerPublic_ArcadeUgly->actionCorePermRequest(Object(XenForo_RouteMatch))
#2 /home/*/public_html/forums/library/XenForo/FrontController.php(132): XenForo_FrontController->dispatch()
#3 /home/*/public_html/forums/index.php(13): XenForo_FrontController->run()
#4 {main}
Code:
array(3) {
  ["url"] => string(43) "http://www.dodgeboard.com/forums/arcade.php"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(6) {
    ["note"] => string(1) "0"
    ["sessdo"] => string(11) "permrequest"
    ["id"] => string(4) "7139"
    ["score"] => string(0) ""
    ["fakekey"] => string(1) "6"
    ["gametime"] => string(10) "1364567682"
  }
}
 
"Core" games installed (non IPB):

Tetris
City Jumper
Metal Slug
Arkanoid
Breakout
Burger Time
Chopper
Kaboom
Moon Patrol
Ms Pac-Man
Simon
Snake
Spy Hunter
Super Mario Mushroom
Canyon Glider

...and a whole bunch more. ;)
 
The short answer is that, at least in the example Dodgeboard posted, the score value is blank which is then causing an error with a bit of code in /library/Arcade/ControllerPublic/ArcadeUgly.php that checks the values submitted.

It needs to be changed to a bit to take no score being submitted for v3A games. To be frank... more people use IPB games than v3A games so this is likely something that was missed during testing since the emphasis was on testing IPB compatibility. :X3:
 
Back
Top