Announcement

#1 2023-06-14 20:03:29

flyerfocus
Member
2023-01-24
15

Invalid Security Token When Uploading Images

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

 

#2 2023-06-15 18:55:13

erAck
Only trying to help
2015-09-06
2128

Re: Invalid Security Token When Uploading Images

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/


Running Piwigo at https://erack.net/gallery/

Offline

 

#3 2023-06-16 00:25:00

flyerfocus
Member
2023-01-24
15

Re: Invalid Security Token When Uploading Images

I've done all that.  Even rebooted the server and the client (Win10) machine.

Offline

 

#4 2023-09-16 21:58:03

Voxx
Member
2023-09-16
1

Re: Invalid Security Token When Uploading Images

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

 

#5 2023-11-27 14:18:17

tiago
Member
2023-11-27
1

Re: Invalid Security Token When Uploading Images

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

 

#6 2023-11-27 18:27:35

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13821

Re: Invalid Security Token When Uploading Images

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 :

Code:

<?php
$conf['session_use_ip_address'] = false;
?>

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact