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

Warning: Expiry date cannot have a year greater than #2045

Closed
motorlesha opened this issue Oct 7, 2015 · 4 comments
Closed

Warning: Expiry date cannot have a year greater than #2045

motorlesha opened this issue Oct 7, 2015 · 4 comments
Labels
bug report Component: Customer Issue: Cannot Reproduce Cannot reproduce the issue on the latest `2.4-develop` branch Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development

Comments

@motorlesha
Copy link

I tried to set session time more that 9999

Warning: Expiry date cannot have a year greater than 9999 in /var/www/sources/motorny/magento2/lib/internal/Magento/Framework/Stdlib/Cookie/PhpCookieManager.php on line 124
#0 [internal function]: Magento\Framework\App\ErrorHandler->handler(2, 'Expiry date can...', '/var/www/source...', 124, Array)
#1 /var/www/sources/motorny/magento2/lib/internal/Magento/Framework/Stdlib/Cookie/PhpCookieManager.php(124): setcookie('admin', '8n1gt2hhajjtqu5...', 1001444221846, '/admin', 'magento2.motorn...', false, true)
#2 /var/www/sources/motorny/magento2/lib/internal/Magento/Framework/Stdlib/Cookie/PhpCookieManager.php(96): Magento\Framework\Stdlib\Cookie\PhpCookieManager->setCookie('admin', '8n1gt2hhajjtqu5...', Array)
#3 /var/www/sources/motorny/magento2/app/code/Magento/Backend/Model/Auth/Session.php(192): Magento\Framework\Stdlib\Cookie\PhpCookieManager->setPublicCookie('admin', '8n1gt2hhajjtqu5...', Object(Magento\Framework\Stdlib\Cookie\PublicCookieMetadata))
#4 /var/www/sources/motorny/magento2/app/code/Magento/Backend/App/Action/Plugin/Authentication.php(119): Magento\Backend\Model\Auth\Session->prolong()
#5 [internal function]: Magento\Backend\App\Action\Plugin\Authentication->aroundDispatch(Object(Magento\Config\Controller\Adminhtml\System\Config\Edit\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#6 /var/www/sources/motorny/magento2/lib/internal/Magento/Framework/Interception/Chain/Chain.php(68): call_user_func_array(Array, Array)
#7 /var/www/sources/motorny/magento2/lib/internal/Magento/Framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\Configg...','dispatch', Object(Magento\Config\Controller\Adminhtml\System\Config\Edit\Interceptor), Array, 'designLoader')
#8 /var/www/sources/motorny/magento2/lib/internal/Magento/Framework/App/Action/Plugin/Design.php(39): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain{closure}(Object(Magento\Framework\App\Request\Http))
#9 [internal function]: Magento\Framework\App\Action\Plugin\Design->aroundDispatch(Object(Magento\Config\Controller\Adminhtml\System\Config\Edit\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#10 /var/www/sources/motorny/magento2/lib/internal/Magento/Framework/Interception/Chain/Chain.php(68): call_user_func_array(Array, Array)
#11 /var/www/sources/motorny/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(136): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\Configg...','dispatch', Object(Magento\Config\Controller\Adminhtml\System\Config\Edit\Interceptor), Array, 'adminMassaction...')
#12 /var/www/sources/motorny/magento2/app/code/Magento/Backend/App/Action/Plugin/MassactionKey.php(33): Magento\Config\Controller\Adminhtml\System\Config\Edit\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))
#13 [internal function]: Magento\Backend\App\Action\Plugin\MassactionKey->aroundDispatch(Object(Magento\Config\Controller\Adminhtml\System\Config\Edit\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#14 /var/www/sources/motorny/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(141): call_user_func_array(Array, Array)
#15 /var/www/sources/motorny/magento2/var/generation/Magento/Config/Controller/Adminhtml/System/Config/Edit/Interceptor.php(40): Magento\Config\Controller\Adminhtml\System\Config\Edit\Interceptor->___callPlugins('dispatch', Array, Array)
#16 /var/www/sources/motorny/magento2/lib/internal/Magento/Framework/App/FrontController.php(45): Magento\Config\Controller\Adminhtml\System\Config\Edit\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#17 [internal function]: Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http))
#18 /var/www/sources/motorny/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(74): call_user_func_array(Array, Array)
#19 /var/www/sources/motorny/magento2/lib/internal/Magento/Framework/Interception/Chain/Chain.php(70): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array)
#20 /var/www/sources/motorny/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(136): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\Framewwo..', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'install')
#21 /var/www/sources/motorny/magento2/lib/internal/Magento/Framework/Module/Plugin/DbStatusValidator.php(69): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))
#22 [internal function]: Magento\Framework\Module\Plugin\DbStatusValidator->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#23 /var/www/sources/motorny/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(141): call_user_func_array(Array, Array)
#24 /var/www/sources/motorny/magento2/var/generation/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array)
#25 /var/www/sources/motorny/magento2/lib/internal/Magento/Framework/App/Http.php(115): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#26 /var/www/sources/motorny/magento2/lib/internal/Magento/Framework/App/Bootstrap.php(257): Magento\Framework\App\Http->launch()
#27 /var/www/sources/motorny/magento2/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))

@piotrekkaminski
Copy link
Contributor

internal id MAGETWO-44437

@sidolov
Copy link
Contributor

sidolov commented Oct 22, 2015

Hi @motorlesha, could you provide more information about this issue? (steps to reproduce, git branch, environment setting: php version, etc). I can't reproduce this issue on current develop branch (commit 0be91a5)

@brideo
Copy link
Contributor

brideo commented Feb 22, 2016

Hi @sidolov,

I just came across this issue too, steps to reproduce:

Environment:

  • Make sure PHP Warnings are one
  • Developer mode on
  • My PHP version is: 5.6.17

Steps to reproduce:

  • update core_config_data set value = 9999999 where path = 'admin/security/session_lifetime';

You can set the value in the admin by going to:

  • Configuration > Advanced > Admin > Security > Session Lifetime (Seconds).

Validation needs to be added around this in the admin to prevent store owners being able to cause warnings and errors on their websites, I'm happy to implement if given the thumbs up.

PS I haven't tested this on develop so it may of been fixed.

@ishakhsuvarov ishakhsuvarov added PS Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development labels Feb 22, 2016
@vkorotun vkorotun removed the PS label Aug 4, 2016
@magento-engcom-team magento-engcom-team added Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development bug report Component: Customer Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed labels Sep 11, 2017
@magento-engcom-team magento-engcom-team added Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Cannot Reproduce Cannot reproduce the issue on the latest `2.4-develop` branch labels Sep 19, 2017
@magento-engcom-team
Copy link
Contributor

@motorlesha, thank you for your report.
We were not able to reproduce this issue by following the steps you provided. If you'd like to update it, please reopen the issue.
We tested the issue on 2.1.9

magento-engcom-team pushed a commit that referenced this issue Feb 7, 2018
[arcticfoxes] MAGETWO-72487 [2.3] - Move Signifyd to CE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Component: Customer Issue: Cannot Reproduce Cannot reproduce the issue on the latest `2.4-develop` branch Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development
Projects
None yet
Development

No branches or pull requests

8 participants