Missing parameters: pwg_token when adding new users - Piwigo 12.2.0 #1404

Closed
opened 2026-10-05 00:42:23 +02:00 by adam · 18 comments
Owner

I have on premise Piwigo server
My environment is as follows:
Piwigo 12.2.0
Operating system: Linux
PHP: 7.4.26
MySQL: 5.5.5-10.3.28-MariaDB
Graphics Library: ImageMagick 6.9.12-31

Activated plugin list:
Admin Tools
Batch Downloader
Community
Extended Description
Language Switch
Look_like_gbo2
Show Photo Identifier
Tag Access Management
User Mass Register

The issue is on the Manage users page. When adding a user the admin got Missing parameters: pwg_token. I've found that this occurs on interface in Polish language. With English it doesn't occurs. Please see attached screenshots.

piwigo_161
piwigo_160

I have on premise Piwigo server My environment is as follows: Piwigo 12.2.0 Operating system: Linux PHP: 7.4.26 MySQL: 5.5.5-10.3.28-MariaDB Graphics Library: ImageMagick 6.9.12-31 Activated plugin list: Admin Tools Batch Downloader Community Extended Description Language Switch Look_like_gbo2 Show Photo Identifier Tag Access Management User Mass Register The issue is on the Manage users page. When adding a user the admin got Missing parameters: pwg_token. I've found that this occurs on interface in Polish language. With English it doesn't occurs. Please see attached screenshots. ![piwigo_161](https://user-images.githubusercontent.com/82090202/151145496-81675a7c-5306-4411-891c-e8c325753cd5.png) ![piwigo_160](https://user-images.githubusercontent.com/82090202/151145499-3dd8ac4d-4be3-40c5-8a14-b2514948aa9d.png) <!-- github-sync-id:1114852328 -->
adam closed this issue 2026-10-05 00:42:23 +02:00
Author
Owner

I have exactly the same problem. Fresh installation and the same thing.

I have exactly the same problem. Fresh installation and the same thing. <!-- github-comment-id:1030396086 -->
Author
Owner

Same problem, fresh installation, getting "Missing parameters: pwg_token" whenever I try to add a new user. Also, using polish language.

Same problem, fresh installation, getting "Missing parameters: pwg_token" whenever I try to add a new user. Also, using polish language. <!-- github-comment-id:1055398870 -->
Author
Owner

I confirm. With polish language as default its not posible to add, edit or check (tick) a user. In english (UK) its posible. I had to add english package, logout, login in using english. Then everything was ok. But this not good solution.

I confirm. With polish language as default its not posible to add, edit or check (tick) a user. In english (UK) its posible. I had to add english package, logout, login in using english. Then everything was ok. But this not good solution. <!-- github-comment-id:1059134869 -->
Author
Owner

yes the problem does not look for solved!

yes the problem does not look for solved! <!-- github-comment-id:1081238272 -->
Author
Owner

The problem is in translation (language/pl_PL/admin.lang.php file)
Please remove " or add \ to line
$lang['Name field must not be empty'] = 'Pole "nazwa" nie może być puste';

eg
$lang['Name field must not be empty'] = 'Pole \"nazwa\" nie może być puste';

The problem is in translation (language/pl_PL/admin.lang.php file) Please remove " or add \ to line $lang['Name field must not be empty'] = 'Pole "nazwa" nie może być puste'; eg $lang['Name field must not be empty'] = 'Pole \\"nazwa\\" nie może być puste'; <!-- github-comment-id:1086911624 -->
Author
Owner

Ok, there was " " I removed it and now I can add users. THANK You!Mateusz LamparskiWysłano z urządzenia mobilnego przy pomocy aplikacji Android Mail.
-------- Oryginalna wiadomość --------Od: pysiek634 @.> Data: 03.04.2022 19:19 (GMT+01:00) Do: Piwigo/Piwigo @.> DW: revoltown @.>, Comment @.> Temat: Re: [Piwigo/Piwigo] Missing parameters: pwg_token when adding new users - Piwigo 12.2.0 (Issue #1602)

The problem is in translation (language/pl_PL/admin.lang.php file)

Please remove " or add \ to line

$lang['Name field must not be empty'] = 'Pole "nazwa" nie może być puste';

eg

$lang['Name field must not be empty'] = 'Pole "nazwa" nie może być puste';

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

Ok, there was " " I removed it and now I can add users. THANK You!Mateusz LamparskiWysłano z urządzenia mobilnego przy pomocy aplikacji Android Mail. -------- Oryginalna wiadomość --------Od: pysiek634 ***@***.***> Data: 03.04.2022 19:19 (GMT+01:00) Do: Piwigo/Piwigo ***@***.***> DW: revoltown ***@***.***>, Comment ***@***.***> Temat: Re: [Piwigo/Piwigo] Missing parameters: pwg_token when adding new users - Piwigo 12.2.0 (Issue #1602) The problem is in translation (language/pl_PL/admin.lang.php file) Please remove " or add \ to line $lang['Name field must not be empty'] = 'Pole "nazwa" nie może być puste'; eg $lang['Name field must not be empty'] = 'Pole "nazwa" nie może być puste'; —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***> <!-- github-comment-id:1086921627 -->
Author
Owner

There is another issue ...Mateusz LamparskiWysłano z urządzenia mobilnego przy pomocy aplikacji Android Mail.
-------- Oryginalna wiadomość --------Od: pysiek634 @.> Data: 03.04.2022 19:19 (GMT+01:00) Do: Piwigo/Piwigo @.> DW: revoltown @.>, Comment @.> Temat: Re: [Piwigo/Piwigo] Missing parameters: pwg_token when adding new users - Piwigo 12.2.0 (Issue #1602)

The problem is in translation (language/pl_PL/admin.lang.php file)

Please remove " or add \ to line

$lang['Name field must not be empty'] = 'Pole "nazwa" nie może być puste';

eg

$lang['Name field must not be empty'] = 'Pole "nazwa" nie może być puste';

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

There is another issue ...Mateusz LamparskiWysłano z urządzenia mobilnego przy pomocy aplikacji Android Mail. -------- Oryginalna wiadomość --------Od: pysiek634 ***@***.***> Data: 03.04.2022 19:19 (GMT+01:00) Do: Piwigo/Piwigo ***@***.***> DW: revoltown ***@***.***>, Comment ***@***.***> Temat: Re: [Piwigo/Piwigo] Missing parameters: pwg_token when adding new users - Piwigo 12.2.0 (Issue #1602) The problem is in translation (language/pl_PL/admin.lang.php file) Please remove " or add \ to line $lang['Name field must not be empty'] = 'Pole "nazwa" nie może być puste'; eg $lang['Name field must not be empty'] = 'Pole "nazwa" nie może być puste'; —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***> <!-- github-comment-id:1086921654 -->
Author
Owner

Mateusz LamparskiWysłano z urządzenia mobilnego przy pomocy aplikacji Android Mail.
-------- Oryginalna wiadomość --------Od: pysiek634 @.> Data: 03.04.2022 19:19 (GMT+01:00) Do: Piwigo/Piwigo @.> DW: revoltown @.>, Comment @.> Temat: Re: [Piwigo/Piwigo] Missing parameters: pwg_token when adding new users - Piwigo 12.2.0 (Issue #1602)

The problem is in translation (language/pl_PL/admin.lang.php file)

Please remove " or add \ to line

$lang['Name field must not be empty'] = 'Pole "nazwa" nie może być puste';

eg

$lang['Name field must not be empty'] = 'Pole "nazwa" nie może być puste';

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

Mateusz LamparskiWysłano z urządzenia mobilnego przy pomocy aplikacji Android Mail. -------- Oryginalna wiadomość --------Od: pysiek634 ***@***.***> Data: 03.04.2022 19:19 (GMT+01:00) Do: Piwigo/Piwigo ***@***.***> DW: revoltown ***@***.***>, Comment ***@***.***> Temat: Re: [Piwigo/Piwigo] Missing parameters: pwg_token when adding new users - Piwigo 12.2.0 (Issue #1602) The problem is in translation (language/pl_PL/admin.lang.php file) Please remove " or add \ to line $lang['Name field must not be empty'] = 'Pole "nazwa" nie może być puste'; eg $lang['Name field must not be empty'] = 'Pole "nazwa" nie może być puste'; —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***> <!-- github-comment-id:1086921752 -->
Author
Owner

There is another issue , phpmailer is installed on the system...

[https://pasteboard.co/qjmlaOzvryNC.jpg]

There is another issue , phpmailer is installed on the system... [https://pasteboard.co/qjmlaOzvryNC.jpg] <!-- github-comment-id:1086947074 -->
Author
Owner

There is another issue , phpmailer is installed on the system...

[https://pasteboard.co/qjmlaOzvryNC.jpg]

Exception.php is not found in directory. See here if you've got these files and owner / rights are okay.

> There is another issue , phpmailer is installed on the system... > > [https://pasteboard.co/qjmlaOzvryNC.jpg] Exception.php is not found in directory. See [here](https://github.com/Piwigo/Piwigo/tree/master/include/phpmailer) if you've got these files and owner / rights are okay. <!-- github-comment-id:1087323113 -->
Author
Owner

Fatal error : Uncaught Error: Class
'PHPMailer\PHPMailer\Exception' not found in
/mnt/backup_sda1/galeria/include/phpmailer/PHPMailer.php:1917
Stack trace:
#0 /mnt/backup_sda1/galeria/include/phpmailer/PHPMailer.php(1650):
PHPMailer\PHPMailer\PHPMailer->mailSend('Date: Mon, 4 Ap...', 'This
is a multi...')
#1 /mnt/backup_sda1/galeria/include/phpmailer/PHPMailer.php(1486):
PHPMailer\PHPMailer\PHPMailer->postSend()
#2 /mnt/backup_sda1/galeria/include/functions_mail.inc.php(900):
PHPMailer\PHPMailer\PHPMailer->send()
#3
/mnt/backup_sda1/galeria/admin/include/functions_notification_by_mail.inc.php(437):
pwg_mail(Array, Array)
#4
/mnt/backup_sda1/galeria/admin/include/functions_notification_by_mail.inc.php(528):
do_subscribe_unsubscribe_notification_by_mail(true, true, Array)
#5 /mnt/backup_sda1/galeria/admin/notification_by_mail.php(545):
subscribe_notification_by_mail(true, Array)
#6 /mnt/backup_sda1/galeria/admin.php(320):
include('/mnt/backup_sda...')
#7 {main}
thrown in /mnt/backup_sda1/galeria/include/phpmailer/PHPMailer.php on line 1917

    Dnia 4 kwietnia 2022 11:26 Krystian-Szaro-SSA ***@***.***&gt; napisał(a):

There is another issue , phpmailer is installed on the system...
[https://pasteboard.co/qjmlaOzvryNC.jpg]

Exception.php is not found in directory. See github.com here if you've got these files and owner / rights are okay.

— Reply to this email directly, github.com view it on GitHub , or github.com unsubscribe . You are receiving this because you commented. Message ID: <Piwigo/Piwigo/issues/1602/1087323113 @ github . com>

Fatal error : Uncaught Error: Class &#39;PHPMailer\PHPMailer\Exception&#39; not found in /mnt/backup_sda1/galeria/include/phpmailer/PHPMailer.php:1917 Stack trace: #0 /mnt/backup_sda1/galeria/include/phpmailer/PHPMailer.php(1650): PHPMailer\PHPMailer\PHPMailer-&gt;mailSend(&#39;Date: Mon, 4 Ap...&#39;, &#39;This is a multi...&#39;) #1 /mnt/backup_sda1/galeria/include/phpmailer/PHPMailer.php(1486): PHPMailer\PHPMailer\PHPMailer-&gt;postSend() #2 /mnt/backup_sda1/galeria/include/functions_mail.inc.php(900): PHPMailer\PHPMailer\PHPMailer-&gt;send() #3 /mnt/backup_sda1/galeria/admin/include/functions_notification_by_mail.inc.php(437): pwg_mail(Array, Array) #4 /mnt/backup_sda1/galeria/admin/include/functions_notification_by_mail.inc.php(528): do_subscribe_unsubscribe_notification_by_mail(true, true, Array) #5 /mnt/backup_sda1/galeria/admin/notification_by_mail.php(545): subscribe_notification_by_mail(true, Array) #6 /mnt/backup_sda1/galeria/admin.php(320): include(&#39;/mnt/backup_sda...&#39;) #7 {main} thrown in /mnt/backup_sda1/galeria/include/phpmailer/PHPMailer.php on line 1917 Dnia 4 kwietnia 2022 11:26 Krystian-Szaro-SSA ***@***.***&gt; napisał(a): There is another issue , phpmailer is installed on the system... [https://pasteboard.co/qjmlaOzvryNC.jpg] Exception.php is not found in directory. See github.com here if you&#39;ve got these files and owner / rights are okay. — Reply to this email directly, github.com view it on GitHub , or github.com unsubscribe . You are receiving this because you commented. Message ID: &lt;Piwigo/Piwigo/issues/1602/1087323113 @ github . com&gt; <!-- github-comment-id:1087366214 -->
Author
Owner

Files are in the right place there is a symbolic link to the gallery from other drive, it is not a problem all is working fine but that piwigo makes only problems..Mateusz LamparskiWysłano z urządzenia mobilnego przy pomocy aplikacji Android Mail.
-------- Oryginalna wiadomość --------Od: Krystian-Szaro-SSA @.> Data: 04.04.2022 11:26 (GMT+01:00) Do: Piwigo/Piwigo @.> DW: revoltown @.>, Comment @.> Temat: Re: [Piwigo/Piwigo] Missing parameters: pwg_token when adding new users - Piwigo 12.2.0 (Issue #1602)

There is another issue , phpmailer is installed on the system...
[https://pasteboard.co/qjmlaOzvryNC.jpg]

Exception.php is not found in directory. See here if you've got these files and owner / rights are okay.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

Files are in the right place there is a symbolic link to the gallery from other drive, it is not a problem all is working fine but that piwigo makes only problems..Mateusz LamparskiWysłano z urządzenia mobilnego przy pomocy aplikacji Android Mail. -------- Oryginalna wiadomość --------Od: Krystian-Szaro-SSA ***@***.***> Data: 04.04.2022 11:26 (GMT+01:00) Do: Piwigo/Piwigo ***@***.***> DW: revoltown ***@***.***>, Comment ***@***.***> Temat: Re: [Piwigo/Piwigo] Missing parameters: pwg_token when adding new users - Piwigo 12.2.0 (Issue #1602) There is another issue , phpmailer is installed on the system... [https://pasteboard.co/qjmlaOzvryNC.jpg] Exception.php is not found in directory. See here if you've got these files and owner / rights are okay. —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***> <!-- github-comment-id:1087393180 -->
Author
Owner

you have probably problems with smtp configuration. If your config will be correct, there are no errors.
However, is pity there are PHP errors.
If you want to display nice errors
add a few lines to include\functions_mail.inc.php
after line use PHPMailer\PHPMailer\PHPMailer;
add
use PHPMailer\PHPMailer\Exception;

require 'include/phpmailer/Exception.php';
require 'include/phpmailer/PHPMailer.php';

you have probably problems with smtp configuration. If your config will be correct, there are no errors. However, is pity there are PHP errors. If you want to display nice errors add a few lines to include\functions_mail.inc.php after line use PHPMailer\PHPMailer\PHPMailer; add use PHPMailer\PHPMailer\Exception; require 'include/phpmailer/Exception.php'; require 'include/phpmailer/PHPMailer.php'; <!-- github-comment-id:1087440427 -->
Author
Owner

Hi, i dont realy know whats going one , when i add lines You told now i get : pastebin.pl https://pastebin.pl/view/95af5344

    Dnia 4 kwietnia 2022 13:29 pysiek634 ***@***.***&gt; napisał(a):

you have probably problems with smtp configuration. If your config will be correct, there are no errors.
However, is pity there are PHP errors.
If you want to display nice errors
add a few lines to include\functions_mail.inc.php
after line use PHPMailer\PHPMailer\PHPMailer;
add
use PHPMailer\PHPMailer\SMTP;
use PHPMailer\PHPMailer\Exception;
require 'include/phpmailer/Exception.php';
require 'include/phpmailer/PHPMailer.php';
require 'include/phpmailer/SMTP.php';

— Reply to this email directly, github.com view it on GitHub , or github.com unsubscribe . You are receiving this because you commented. Message ID: <Piwigo/Piwigo/issues/1602/1087440427 @ github . com>

Hi, i dont realy know whats going one , when i add lines You told now i get : pastebin.pl https://pastebin.pl/view/95af5344 Dnia 4 kwietnia 2022 13:29 pysiek634 ***@***.***&gt; napisał(a): you have probably problems with smtp configuration. If your config will be correct, there are no errors. However, is pity there are PHP errors. If you want to display nice errors add a few lines to include\functions_mail.inc.php after line use PHPMailer\PHPMailer\PHPMailer; add use PHPMailer\PHPMailer\SMTP; use PHPMailer\PHPMailer\Exception; require &#39;include/phpmailer/Exception.php&#39;; require &#39;include/phpmailer/PHPMailer.php&#39;; require &#39;include/phpmailer/SMTP.php&#39;; — Reply to this email directly, github.com view it on GitHub , or github.com unsubscribe . You are receiving this because you commented. Message ID: &lt;Piwigo/Piwigo/issues/1602/1087440427 @ github . com&gt; <!-- github-comment-id:1087914454 -->
Author
Owner
See f6584f3118b289502b9a2deff88be49a2ba9a143 and 5c84eed08506c116b132dd6a620df2ba0488c7e8 <!-- github-comment-id:1098833353 -->
Author
Owner

I have a problem uploading pics via app more then one 2,3, is ok but when I'm trying upload 20, 30,40 upload is impossible....Mateusz LamparskiWysłano z urządzenia mobilnego przy pomocy aplikacji Android Mail.
-------- Oryginalna wiadomość --------Od: pysiek634 @.> Data: 04.04.2022 13:29 (GMT+01:00) Do: Piwigo/Piwigo @.> DW: revoltown @.>, Comment @.> Temat: Re: [Piwigo/Piwigo] Missing parameters: pwg_token when adding new users - Piwigo 12.2.0 (Issue #1602)
you have probably problems with smtp configuration. If your config will be correct, there are no errors.
However, is pity there are PHP errors.
If you want to display nice errors
add a few lines to include\functions_mail.inc.php
after line use PHPMailer\PHPMailer\PHPMailer;
add
use PHPMailer\PHPMailer\SMTP;
use PHPMailer\PHPMailer\Exception;
require 'include/phpmailer/Exception.php';
require 'include/phpmailer/PHPMailer.php';
require 'include/phpmailer/SMTP.php';

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

I have a problem uploading pics via app more then one 2,3, is ok but when I'm trying upload 20, 30,40 upload is impossible....Mateusz LamparskiWysłano z urządzenia mobilnego przy pomocy aplikacji Android Mail. -------- Oryginalna wiadomość --------Od: pysiek634 ***@***.***> Data: 04.04.2022 13:29 (GMT+01:00) Do: Piwigo/Piwigo ***@***.***> DW: revoltown ***@***.***>, Comment ***@***.***> Temat: Re: [Piwigo/Piwigo] Missing parameters: pwg_token when adding new users - Piwigo 12.2.0 (Issue #1602) you have probably problems with smtp configuration. If your config will be correct, there are no errors. However, is pity there are PHP errors. If you want to display nice errors add a few lines to include\functions_mail.inc.php after line use PHPMailer\PHPMailer\PHPMailer; add use PHPMailer\PHPMailer\SMTP; use PHPMailer\PHPMailer\Exception; require 'include/phpmailer/Exception.php'; require 'include/phpmailer/PHPMailer.php'; require 'include/phpmailer/SMTP.php'; —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***> <!-- github-comment-id:1100933923 -->
Author
Owner

The files are in the place,what right what owner should be there to files or to catalogue ?

    Dnia 4 kwietnia 2022 11:26 Krystian-Szaro-SSA ***@***.***&gt; napisał(a):

There is another issue , phpmailer is installed on the system...
[https://pasteboard.co/qjmlaOzvryNC.jpg]

Exception.php is not found in directory. See github.com here if you've got these files and owner / rights are okay.

— Reply to this email directly, github.com view it on GitHub , or github.com unsubscribe . You are receiving this because you commented. Message ID: <Piwigo/Piwigo/issues/1602/1087323113 @ github . com>

The files are in the place,what right what owner should be there to files or to catalogue ? Dnia 4 kwietnia 2022 11:26 Krystian-Szaro-SSA ***@***.***&gt; napisał(a): There is another issue , phpmailer is installed on the system... [https://pasteboard.co/qjmlaOzvryNC.jpg] Exception.php is not found in directory. See github.com here if you&#39;ve got these files and owner / rights are okay. — Reply to this email directly, github.com view it on GitHub , or github.com unsubscribe . You are receiving this because you commented. Message ID: &lt;Piwigo/Piwigo/issues/1602/1087323113 @ github . com&gt; <!-- github-comment-id:1274295638 -->
Author
Owner

Sorry I can't see the differences...?Mateusz LamparskiWysłano z urządzenia mobilnego przy pomocy aplikacji Android Mail.
-------- Oryginalna wiadomość --------Od: pysiek634 @.> Data: 03.04.2022 19:19 (GMT+01:00) Do: Piwigo/Piwigo @.> DW: revoltown @.>, Comment @.> Temat: Re: [Piwigo/Piwigo] Missing parameters: pwg_token when adding new users - Piwigo 12.2.0 (Issue #1602)

The problem is in translation (language/pl_PL/admin.lang.php file)

Please remove " or add \ to line

$lang['Name field must not be empty'] = 'Pole "nazwa" nie może być puste';

eg

$lang['Name field must not be empty'] = 'Pole "nazwa" nie może być puste';

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

Sorry I can't see the differences...?Mateusz LamparskiWysłano z urządzenia mobilnego przy pomocy aplikacji Android Mail. -------- Oryginalna wiadomość --------Od: pysiek634 ***@***.***> Data: 03.04.2022 19:19 (GMT+01:00) Do: Piwigo/Piwigo ***@***.***> DW: revoltown ***@***.***>, Comment ***@***.***> Temat: Re: [Piwigo/Piwigo] Missing parameters: pwg_token when adding new users - Piwigo 12.2.0 (Issue #1602) The problem is in translation (language/pl_PL/admin.lang.php file) Please remove " or add \ to line $lang['Name field must not be empty'] = 'Pole "nazwa" nie może być puste'; eg $lang['Name field must not be empty'] = 'Pole "nazwa" nie może być puste'; —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***> <!-- github-comment-id:1274389776 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#1404