Skip to content

Receive code 500 when adding lineup (but lineup added) #68

@garybuhrmaster

Description

@garybuhrmaster

While testing some code to add/delete lineups, it may be that I have exceeded the number of allowed changes, but rather than returning an error (expected) it appears the the BIGINT UNSIGNED value of -1 causes difficulty (changedRemaining = -1? for an unsigned value?). Interestingly the lineup does get added.

Not the most important thing in the world, but server errors are never good....

HTTP response code: 500

HTTP Error message:

`Slim Application Error
The application could not run because of the following error:

Details

Type: PDOException
Code: 22003
Message: SQLSTATE[22003]: Numeric value out of range: 1690 BIGINT UNSIGNED value is out of range in '(API20141201.user.changesRemaining - 1)'
File: /var/www/html/functions/func.20141201.php
Line: 1313
Trace
#0 /var/www/html/functions/func.20141201.php(1313): PDOStatement->execute(Array)
#1 /var/www/html/functions/func.20141201.php(1976): heUpdateCounter('1417')
#2 /var/www/html/index.php(336): addLineupToUserAccount('1417', 'USA-DITV-DEFAUL...', 255)
#3 [internal function]: {closure}('USA-DITV-DEFAUL...')
#4 /var/www/html/vendor/slim/slim/Slim/Route.php(468): call_user_func_array(Object(Closure), Array)
#5 /var/www/html/vendor/slim/slim/Slim/Slim.php(1357): Slim\Route->dispatch()
#6 /var/www/html/vendor/slim/slim/Slim/Middleware/Flash.php(85): Slim\Slim->call()
#7 /var/www/html/vendor/slim/slim/Slim/Middleware/MethodOverride.php(92): Slim\Middleware\Flash->call()
#8 /var/www/html/vendor/slim/slim/Slim/Middleware/PrettyExceptions.php(67): Slim\Middleware\MethodOverride->call()
#9 /var/www/html/vendor/slim/slim/Slim/Slim.php(1302): Slim\Middleware\PrettyExceptions->call()
#10 /var/www/html/index.php(1011): Slim\Slim->run()
#11 {main}`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions