refer to fix here Uncaught Server Exception TypeError: unsupported operand type(s) for //: 'unicode' and 'int' - #5 by Mandeep_B_C