-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Labels
Description
Short description of the issue
$page->filesManager->getFile('some_image.jpg')
If the database entry for "some_image.jpg" has a created-datetime like "1970-01-01 01:00:10", it does not pass the validation and won’t get selected, even if the image itself would be perfectly okay to handle.
Expected behavior
Image gets selected and can be used as an image object.
Actual behavior
Return is NULL
Steps to reproduce the issue
- Upload an image within CK editor (see image upload via CK Edit popup –> wrong datetime in database #41)
- in the template, try $page->filesManager->getFile('some_image.jpg')
- You get NULL as a result
Setup/Environment
- ProcessWire version: 3.0.35
- (Optional) PHP version: 5.6.25
- (Optional) MySQL version: 5.6.28