Gangster-Legends-V2 icon indicating copy to clipboard operation
Gangster-Legends-V2 copied to clipboard

Several errors

Open zooool opened this issue 1 year ago • 0 comments

When loading the admin page (with debugging enabled):

There was an error!

File: /var/www/html/modules/installed/glCore/glCore.hooks.php
Line: 62
Error: Undefined index: content
Type: E_RECOVERABLE_ERROR
There was an error!

File: /var/www/html/modules/installed/glCore/glCore.hooks.php
Line: 62
Error: Trying to access array offset on value of type null
Type: E_RECOVERABLE_ERROR


PDOException when editing cars/thefts/crimes:

When entering a too high value:

File: /var/www/html/class/db.php
Line: 16
Error: Uncaught PDOException: SQLSTATE[22003]: Numeric value out of range: 1264 Out of range value for column 'CA_theftChance' at row 1 in /var/www/html/class/db.php:16 Stack trace: #0 /var/www/html/class/db.php(16): PDOStatement->execute() #1 /var/www/html/class/db.php(22): glPDO->runQuery() #2 /var/www/html/modules/installed/cars/cars.admin.php(100): glPDO->update() #3 /var/www/html/modules/installed/admin/admin.inc.php(100): adminModule->method_edit() #4 /var/www/html/modules/installed/admin/admin.inc.php(30): admin->viewModule() #5 /var/www/html/class/module.php(34): admin->constructModule() #6 /var/www/html/class/page.php(159): module->__construct() #7 /var/www/html/class/page.php(76): page->load() #8 /var/www/html/init.php(86): page->loadPage() #9 /var/www/html/index.php(5): require('/var/www/html/i...') #10 {main} thrown
Type: E_RECOVERABLE_ERROR

I deleted all cars but 1, then when I attempt a car theft, these errors happen:

There was an error!

File: /var/www/html/modules/installed/theft/theft.inc.php
Line: 92
Error: mt_rand(): max(0) is smaller than min(1)
Type: E_RECOVERABLE_ERROR
There was an error!

File: /var/www/html/modules/installed/theft/theft.inc.php
Line: 126
Error: Undefined variable: carName
Type: E_RECOVERABLE_ERROR
There was an error!

File: /var/www/html/class/db.php
Line: 16
Error: Uncaught PDOException: SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: '' for column `mafia`.`garage`.`GA_car` at row 1 in /var/www/html/class/db.php:16 Stack trace: #0 /var/www/html/class/db.php(16): PDOStatement->execute() #1 /var/www/html/class/db.php(30): glPDO->runQuery() #2 /var/www/html/modules/installed/theft/theft.inc.php(136): glPDO->insert() #3 /var/www/html/class/module.php(29): theft->method_commit() #4 /var/www/html/class/page.php(159): module->__construct() #5 /var/www/html/class/page.php(76): page->load() #6 /var/www/html/init.php(86): page->loadPage() #7 /var/www/html/index.php(5): require('/var/www/html/i...') #8 {main} thrown
Type: E_RECOVERABLE_ERROR
There was an error!

File: /var/www/html/class/db.php
Line: 16
Error: Uncaught PDOException: SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: '' for column `mafia`.`garage`.`GA_car` at row 1 in /var/www/html/class/db.php:16 Stack trace: #0 /var/www/html/class/db.php(16): PDOStatement->execute() #1 /var/www/html/class/db.php(30): glPDO->runQuery() #2 /var/www/html/modules/installed/theft/theft.inc.php(136): glPDO->insert() #3 /var/www/html/class/module.php(29): theft->method_commit() #4 /var/www/html/class/page.php(159): module->__construct() #5 /var/www/html/class/page.php(76): page->load() #6 /var/www/html/init.php(86): page->loadPage() #7 /var/www/html/index.php(5): require('/var/www/html/i...') #8 {main} thrown
Type: E_RECOVERABLE_ERROR

zooool avatar Sep 02 '23 22:09 zooool