CMS MADE SIMPLE FORGE

Frontend Users

 

[#12147] "Invalid datetime in attempt to set expires" error when adding a new FEU user

avatar
Created By: Benoit Rambaud (brambaud)
Date Submitted: Thu Sep 19 04:32:04 -0400 2019

Assigned To: Robert Campbell (calguy1000)
Version: 3.1.4
CMSMS Version: 2.2.11
Severity: Major
Resolution: None
State: Open
Summary:
"Invalid datetime in attempt to set expires" error when adding a new FEU user
Detailed Description:
Hi,

A message error appears when trying to add a new FEU user :
"Invalid datetime in attempt to set expires"

Cms Version: 2.2.11

Installed Modules:

AdminSearch: 1.0.4
CGExtensions: 1.64.8
CGSimpleSmarty: 2.2.1
CMSContentManager: 1.1.8
CmsJobManager: 0.1.3
DesignManager: 1.1.6
FileManager: 1.6.8
FilePicker: 1.0.4.1
FrontEndUsers: 3.1.4
MicroTiny: 2.2.4
ModuleManager: 2.1.7
Navigator: 1.0.9
News: 2.51.6
Search: 1.51.7

Php Information:

phpversion: 7.2.7



History

Comments
avatar
Date: 2019-09-19 05:25
Posted By: Benoit Rambaud (brambaud)


Problems occurs on Windows / WAMP environment PHP 7.2.7

Everything is ok on LINUX envrionment PHP 7.2.12


      
avatar
Date: 2019-10-09 06:42
Posted By: cyrcle (cyrcle)

I just had the same problem on a Linux environment with PHP 7.2.19.
This is a problem related to PHP's max date on 32 bit systems that is: 
2038-01-18 20:14
Like this one : http://dev.cmsmadesimple.org/bug/view/11925

Here you must modify the variable "expireage_months" that is in assets / configs
/ feu_settings.json
to not exceed the year 2038
I had a value of 240, I put 120. Now it works.

      
avatar
Date: 2019-10-09 08:52
Posted By: cyrcle (cyrcle)

Referring to the help of the module, it appears that if the system can not
calculate a date, then PHP_INT_MAX will be used as an expiry date.
Then, a problem would still exist in this function.
      
Updates

Updated: 2019-09-19 05:25
resolution_id: => 5