Forum

Ask, reply and learn. Join the community of Akaunting.

New Discussion

Error after update fron v1.1.6 to 1.2.16

Angel Cabrera   ( User )

Commented 6 years ago

After press the update button inside panel, i get this error log:


 


 








(3/3) QueryException

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1-99' for key 'PRIMARY' (SQL: insert into `ak26_role_permissions` (`permission_id`, `role_id`) values (99, 1))







in Connection.php line 647


at Connection->runQueryCallback('insert into `ak26_role_permissions` (`permission_id`, `role_id`) values (?, ?)', array(99, 1), object(Closure))in Connection.php line 607


at Connection->run('insert into `ak26_role_permissions` (`permission_id`, `role_id`) values (?, ?)', array(99, 1), object(Closure))in Connection.php line 450


at Connection->statement('insert into `ak26_role_permissions` (`permission_id`, `role_id`) values (?, ?)', array(99, 1))in Connection.php line 404


at Connection->insert('insert into `ak26_role_permissions` (`permission_id`, `role_id`) values (?, ?)', array(99, 1))in Builder.php line 2116


at Builder->insert(array(array('permission_id' => 99, 'role_id' => 1)))in InteractsWithPivotTable.php line 214


at BelongsToMany->attach(99)in LaratrustRoleTrait.php line 162


at Role->attachPermission(object(Permission))in Version120.php line 74


at Version120->updatePermissions()in Version120.php line 35


at Version120->handle(object(UpdateFinished))


at call_user_func_array(array(object(Version120), 'handle'), array(object(UpdateFinished)))in Dispatcher.php line 367


at Dispatcher->Illuminate\Events\{closure}('App\\Events\\UpdateFinished', array(object(UpdateFinished)))in Dispatcher.php line 199


at Dispatcher->dispatch('App\\Events\\UpdateFinished')in helpers.php line 446


at event(object(UpdateFinished))in Updates.php line 114


at Updates->post('core', '1.1.6', '1.2.16')


at call_user_func_array(array(object(Updates), 'post'), array('alias' => 'core', 'old' => '1.1.6', 'new' => '1.2.16'))in Controller.php line 55


at Controller->callAction('post', array('alias' => 'core', 'old' => '1.1.6', 'new' => '1.2.16'))in ControllerDispatcher.php line 44


at ControllerDispatcher->dispatch(object(Route), object(Updates), 'post')in Route.php line 203


at Route->runController()in Route.php line 160


at Route->run()in Router.php line 572


at Router->Illuminate\Routing\{closure}(object(Request))in Pipeline.php line 30


at Pipeline->Illuminate\Routing\{closure}(object(Request))in LaratrustPermission.php line 56


at LaratrustPermission->handle(object(Request), object(Closure), array('read-admin-panel'))in Pipeline.php line 148


at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53


at Pipeline->Illuminate\Routing\{closure}(object(Request))in AdminMenu.php line 205


at AdminMenu->handle(object(Request), object(Closure))in Pipeline.php line 148


at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53


at Pipeline->Illuminate\Routing\{closure}(object(Request))in SetLocale.php line 94


at SetLocale->handle(object(Request), object(Closure))in Pipeline.php line 148


at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53


at Pipeline->Illuminate\Routing\{closure}(object(Request))in LoadCurrencies.php line 22


at LoadCurrencies->handle(object(Request), object(Closure))in Pipeline.php line 148


at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53


at Pipeline->Illuminate\Routing\{closure}(object(Request))in LoadSettings.php line 22


at LoadSettings->handle(object(Request), object(Closure))in Pipeline.php line 148


at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53


at Pipeline->Illuminate\Routing\{closure}(object(Request))in AddXHeader.php line 18


at AddXHeader->handle(object(Request), object(Closure))in Pipeline.php line 148


at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53


at Pipeline->Illuminate\Routing\{closure}(object(Request))in RedirectIfNotInstalled.php line 21


at RedirectIfNotInstalled->handle(object(Request), object(Closure))in Pipeline.php line 148


at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53


at Pipeline->Illuminate\Routing\{closure}(object(Request))in SubstituteBindings.php line 41


at SubstituteBindings->handle(object(Request), object(Closure))in Pipeline.php line 148


at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53


at Pipeline->Illuminate\Routing\{closure}(object(Request))in Authenticate.php line 43


at Authenticate->handle(object(Request), object(Closure))in Pipeline.php line 148


at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53


at Pipeline->Illuminate\Routing\{closure}(object(Request))in VerifyCsrfToken.php line 65


at VerifyCsrfToken->handle(object(Request), object(Closure))in Pipeline.php line 148


at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53


at Pipeline->Illuminate\Routing\{closure}(object(Request))in ShareErrorsFromSession.php line 49


at ShareErrorsFromSession->handle(object(Request), object(Closure))in Pipeline.php line 148


at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53


at Pipeline->Illuminate\Routing\{closure}(object(Request))in StartSession.php line 64


at StartSession->handle(object(Request), object(Closure))in Pipeline.php line 148


at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53


at Pipeline->Illuminate\Routing\{closure}(object(Request))in AddQueuedCookiesToResponse.php line 37


at AddQueuedCookiesToResponse->handle(object(Request), object(Closure))in Pipeline.php line 148


at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53


at Pipeline->Illuminate\Routing\{closure}(object(Request))in EncryptCookies.php line 59


at EncryptCookies->handle(object(Request), object(Closure))in Pipeline.php line 148


at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53


at Pipeline->Illuminate\Routing\{closure}(object(Request))in Pipeline.php line 102


at Pipeline->then(object(Closure))in Router.php line 574


at Router->runRouteWithinStack(object(Route), object(Request))in Router.php line 533


at Router->dispatchToRoute(object(Request))in Router.php line 511


at Router->dispatch(object(Request))in Kernel.php line 176


at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))in Pipeline.php line 30


at Pipeline->Illuminate\Routing\{closure}(object(Request))in Debugbar.php line 51


at Debugbar->handle(object(Request), object(Closure))in Pipeline.php line 148


at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53


at Pipeline->Illuminate\Routing\{closure}(object(Request))in TrustProxies.php line 56


at TrustProxies->handle(object(Request), object(Closure))in Pipeline.php line 148


at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53


at Pipeline->Illuminate\Routing\{closure}(object(Request))in TransformsRequest.php line 30


at TransformsRequest->handle(object(Request), object(Closure))in Pipeline.php line 148


at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53


at Pipeline->Illuminate\Routing\{closure}(object(Request))in TransformsRequest.php line 30


at TransformsRequest->handle(object(Request), object(Closure))in Pipeline.php line 148


at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53


at Pipeline->Illuminate\Routing\{closure}(object(Request))in ValidatePostSize.php line 27


at ValidatePostSize->handle(object(Request), object(Closure))in Pipeline.php line 148


at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53


at Pipeline->Illuminate\Routing\{closure}(object(Request))in CheckForMaintenanceMode.php line 46


at CheckForMaintenanceMode->handle(object(Request), object(Closure))in Pipeline.php line 148


at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53


at Pipeline->Illuminate\Routing\{closure}(object(Request))in Request.php line 111


at Request->handle(object(Request), object(Closure))in Pipeline.php line 148


at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53


at Pipeline->Illuminate\Routing\{closure}(object(Request))in Pipeline.php line 102


at Pipeline->then(object(Closure))in Kernel.php line 151


at Kernel->sendRequestThroughRouter(object(Request))in Kernel.php line 116


at Kernel->handle(object(Request))in index.php line 27









(2/3) PDOException

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1-99' for key 'PRIMARY'







in PDOStatement.php line 107


at PDOStatement->execute()in Connection.php line 449


at Connection->Illuminate\Database\{closure}('insert into `ak26_role_permissions` (`permission_id`, `role_id`) values (?, ?)', array(99, 1))in Connection.php line 640


at Connection->runQueryCallback('insert into `ak26_role_permissions` (`permission_id`, `role_id`) values (?, ?)', array(99, 1), object(Closure))in Connection.php line 607


at Connection->run('insert into `ak26_role_permissions` (`permission_id`, `role_id`) values (?, ?)', array(99, 1), object(Closure))in Connection.php line 450


at Connection->statement('insert into `ak26_role_permissions` (`permission_id`, `role_id`) values (?, ?)', array(99, 1))in Connection.php line 404


at Connection->insert('insert into `ak26_role_permissions` (`permission_id`, `role_id`) values (?, ?)', array(99, 1))in Builder.php line 2116


at Builder->insert(array(array('permission_id' => 99, 'role_id' => 1)))in InteractsWithPivotTable.php line 214


at BelongsToMany->attach(99)in LaratrustRoleTrait.php line 162


at Role->attachPermission(object(Permission))in Version120.php line 74


at Version120->updatePermissions()in Version120.php line 35


at Version120->handle(object(UpdateFinished))


at call_user_func_array(array(object(Version120), 'handle'), array(object(UpdateFinished)))in Dispatcher.php line 367


at Dispatcher->Illuminate\Events\{closure}('App\\Events\\UpdateFinished', array(object(UpdateFinished)))in Dispatcher.php line 199


at Dispatcher->dispatch('App\\Events\\UpdateFinished')in helpers.php line 446


at event(object(UpdateFinished))in Updates.php line 114


at Updates->post('core', '1.1.6', '1.2.16')


at call_user_func_array(array(object(Updates), 'post'), array('alias' => 'core', 'old' => '1.1.6', 'new' => '1.2.16'))in Controller.php line 55


at Controller->callAction('post', array('alias' => 'core', 'old' => '1.1.6', 'new' => '1.2.16'))in ControllerDispatcher.php line 44


at ControllerDispatcher->dispatch(object(Route), object(Updates), 'post')in Route.php line 203


at Route->runController()in Route.php line 160


at Route->run()in Router.php line 572


at Router->Illuminate\Routing\{closure}(object(Request))in Pipeline.php line 30


at Pipeline->Illuminate\Routing\{closure}(object(Request))in LaratrustPermission.php line 56


at LaratrustPermission->handle(object(Request), object(Closure), array('read-admin-panel'))in Pipeline.php line 148


at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pip
 

 


 


 




 




 






Please login or register to leave a response.

Showing 1 to 1 of 1 discussions