Jump to content

Fatal error after updating from PS. 1.7.7.x to 8.1.2 EmployeeSession->date_add


dvd74

Recommended Posts

Hello,

after updating from PS. 1.7.7.x to 8.1.2 I receive the following errors:

Backoffice:

the propriety EmployeeSession->date_add it is not valid

in /classes/ObjectModel.php (line 1104)

                }
                $message = $this->validateField($field, $this->$field);
                if ($message !== true) {
                    if ($die) {
                        throw new PrestaShopException($message);
                    }
                    return $error_return ? $message : false;
                }
            }
Quote

at /home/miosito/classes/ObjectModel.php:1104
  at ObjectModelCore->validateFields()
     (/home/miosito/classes/ObjectModel.php:319)
  at ObjectModelCore->getFields()
     (/home/miosito/classes/ObjectModel.php:804)
  at ObjectModelCore->update(false)
     (/home/miosito/classes/ObjectModel.php:576)
  at ObjectModelCore->save()
     (/home/miosito/classes/Cookie.php:574)
  at CookieCore->getSession('3252')
     (/home/miosito/classes/Cookie.php:542)
  at CookieCore->isSessionAlive()
     (/home/miosito/classes/Employee.php:468)
  at EmployeeCore->isLoggedBack()
     (/home/miosito/classes/controller/AdminController.php:2904)
  at AdminControllerCore->initShopContext()
     (/home/miosito/classes/controller/AdminController.php:558)
  at AdminControllerCore->__construct()
     (/home/miosito/src/Adapter/LegacyContext.php:86)
  at PrestaShop\PrestaShop\Adapter\LegacyContext->getContext()
     (/home/miosito/src/PrestaShopBundle/EventListener/UserLocaleListener.php:54)
  at PrestaShopBundle\EventListener\UserLocaleListener->__construct(object(LegacyContext), object(Configuration), object(LangRepository))
     (/home/miosito/var/cache/dev/ContainerONL2B1g/appAppKernelDevDebugContainer.php:3738)
  at ContainerONL2B1g\appAppKernelDevDebugContainer->getPrestashop_UserLocale_ListenerService()
     (/home/miosito/var/cache/dev/ContainerONL2B1g/appAppKernelDevDebugContainer.php:2741)
  at ContainerONL2B1g\appAppKernelDevDebugContainer->ContainerONL2B1g\{closure}()
     (/home/miosito/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:279)
  at Symfony\Component\EventDispatcher\EventDispatcher->sortListeners('kernel.request')
     (/home/miosito/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:90)
  at Symfony\Component\EventDispatcher\EventDispatcher->getListeners('kernel.request')
     (/home/miosito/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php:334)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->preProcess('kernel.request')
     (/home/miosito/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php:162)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object(RequestEvent), 'kernel.request')
     (/home/miosito/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:145)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (/home/miosito/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:81)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, false)
     (/home/miosito/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:201)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request), 1, false)
     (/home/miosito/admin453yazmtv/index.php:84)                

Frontoffice:

 

Quote

Fatal error: Uncaught PrestaShopDatabaseException: Duplicate entry '169-10-1' for key 'PRIMARY'<br /><br /><pre>INSERT INTO `ps_hook_module` (`id_module`, `id_hook`, `id_shop`, `position`) VALUES ('169', '10', '1', '63')</pre> in /home/miosito/classes/db/Db.php:773 Stack trace: #0 /home/miosito/classes/db/Db.php(385): DbCore->displayError('INSERT INTO `ps...') #1 /home/miosito/tools/profiling/Db.php(102): DbCore->query('INSERT INTO `ps...') #2 /home/miosito/classes/db/Db.php(744): Db->query('INSERT INTO `ps...') #3 /home/miosito/classes/db/Db.php(477): DbCore->q('INSERT INTO `ps...', true) #4 /home/miosito/classes/Hook.php(619): DbCore->insert('ps_hook_module', Array) #5 /home/miosito/classes/module/Module.php(1061): HookCore::registerHook(Object(VATNumberCleaner), 'header', Array) #6 /home/miosito/modules/vatnumbercl in /home/miosito/classes/Hook.php on line 431miosito/

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...