Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Several errors #85

Open
zooool opened this issue Sep 2, 2023 · 0 comments
Open

Several errors #85

zooool opened this issue Sep 2, 2023 · 0 comments

Comments

@zooool
Copy link

zooool commented Sep 2, 2023

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 zooool changed the title Uncaught PDOException Several errors Sep 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant