Hello/Hi/Greetings,
I received this error "Warning: touch(): Utime failed: Operation not permitted in /var/www/pgphotoclub.com/piwigo/admin/include/pclzip.lib.php on line 3857" but the update says it was successful. What should I do?
Update complete
11.4.0
Current:
Piwigo 11.4.0
Operating system: Linux
PHP: 7.4.15 (Show info) [2021-03-20 18:11:29]
MySQL: 5.7.33 [2021-03-20 18:11:29]
Graphics Library: ImageMagick 6.9.10-68
Upgraded from:
Piwigo 11.3.0
Operating system: Linux
PHP: 7.4.15 (Show info) [2021-03-20 17:59:50]
MySQL: 5.7.33 [2021-03-20 17:59:50]
Graphics Library: ImageMagick 6.9.10-68
Piwigo URL: https://www.pgphotoclub.com/piwigo/
Offline
It's a warning, not an error. Apparently your web server environment doesn't allow a PHP script to touch/change a file's modification time. Code in admin/include/pclzip.lib.php on line 3857 is
touch($p_entry['filename'], $p_entry['mtime']);
Offline
Is this going to cause an issue going forward?
Should I be applying a change to permissions - what?
Offline
It shouldn't harm, it has the consequence that files unpacked from a zip will have the current (when unpacked) datetime instead of the original datetime they were stored with in the zip.
As to why touching a file is disabled in your environment or how that restriction could be removed talk to your hoster.
Offline
OK, thank you erAck, I'll look into getting the setup changed so touch will work in the future.
Offline