Hello,
I was uploading fine yesterday. Now, today any photo I try to upload generates an big red "Invalid Security Token" message. I also upgraded to the latest version yesterday, but I cannot remember if that was before or after I had successful uploads. Any help would be great!
I rebooted the server, rebooted my WIndows client machine, restarted the browser. Still get the error. I am uploading as admin.
Where are logs? I don't see any anywhere in /var.
Thanks!
Last edited by flyerfocus (2023-06-14 23:40:58)
Offline
Logout from Piwigo, make sure your browser allows cookies for your Piwigo instance, and log back in.
Piwigo's own logs are in Pwigo's _data/logs/
Offline
I've done all that. Even rebooted the server and the client (Win10) machine.
Offline
I'm having the same issue. When I go to add a photo I keep getting the "Invalid Security token" message. Not sure what's changed. I've had this gallery running for almost 5 years with no issues.
Piwigo 13.8.0
Installed on 11 April 2019, 4 years 5 months 4 days ago
Operating system: Linux
PHP: 7.4.33 (Show info) [2023-09-16 19:56:17]
MySQL: 5.5.5-10.4.31-MariaDB [2023-09-16 19:56:17]
Graphics Library: ImageMagick 6.9.10-68
Offline
Hi, I'm having this problem too, how did you solve it?
My piwigo was working normally, and without making any changes to the server or the code it stopped uploading the images.
And it only shows this message "Invalid security token"
Offline
An "invalid security token" means your session becomes invalid sooner than expected. My experience shows that it mainly happens when you change your IP address very often. For example when you're behind a proxy with several IP address. I see that in companies, not often at home.
In Piwigo, the user session is related to a specific IP address. If you change your IP address, your session becomes invalid... and so does your token.
You can tell Piwigo to avoid using the IP address to validate user sessions. In your local configuration local/config/config.inc.php :
<?php $conf['session_use_ip_address'] = false; ?>
Offline