framadate issueshttps://framagit.org/framasoft/framadate/framadate/-/issues2024-03-11T08:47:49Zhttps://framagit.org/framasoft/framadate/framadate/-/issues/553Creating Date Poll results in "white screen"2024-03-11T08:47:49Zkangaroo72Creating Date Poll results in "white screen"Dear all,
Apologize, but I'm not an expert with these things, but I would be very happy to get it back to work...
I'm running nginx 1.21 on Ubuntu 20.04LTS with PHP 8.0.5.
I can configure the poll, but when I confirm, nginx logs the foll...Dear all,
Apologize, but I'm not an expert with these things, but I would be very happy to get it back to work...
I'm running nginx 1.21 on Ubuntu 20.04LTS with PHP 8.0.5.
I can configure the poll, but when I confirm, nginx logs the following...
`2021/06/27 00:22:13 [error] 2725624#2725624: *12724 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Undefined constant "PHPMailer\PHPMailer\FILTER_FLAG_HOST_REQUIRED" in /var/www/framadate/vendor/phpmailer/phpmailer/src/PHPMailer.php:3599
Stack trace:
#0 /var/www/framadate/vendor/phpmailer/phpmailer/src/PHPMailer.php(3565): PHPMailer\PHPMailer\PHPMailer::isValidHost()
#1 /var/www/framadate/vendor/phpmailer/phpmailer/src/PHPMailer.php(2304): PHPMailer\PHPMailer\PHPMailer->serverHostname()
#2 /var/www/framadate/vendor/phpmailer/phpmailer/src/PHPMailer.php(1421): PHPMailer\PHPMailer\PHPMailer->createHeader()
#3 /var/www/framadate/vendor/phpmailer/phpmailer/src/PHPMailer.php(1316): PHPMailer\PHPMailer\PHPMailer->preSend()
#4 /var/www/framadate/app/classes/Framadate/Services/MailService.php(58): PHPMailer\PHPMailer\PHPMailer->send()
#5 /var/www/framadate/create_date_poll.php(239): Framadate\Services\MailService->send()
#6 {main}
thrown in /var/www/framadate/vendor/phpmailer/phpmailer/src/PHPMailer.php on line 3599" while reading response header from upstream, client: 93.215.83.135, server: date.escher.cc, request: "POST /create_date_poll.php HTTP/2.0", upstream: "fastcgi://unix:/run/php/php8.0-fpm.sock:", host: "date.escher.cc"`
Maybe someone can help me troubleshooting??
Thanks a lothttps://framagit.org/framasoft/framadate/framadate/-/issues/126Problème d'encodage dans les mails2024-02-24T18:15:52ZAyMProblème d'encodage dans les mailsCertains caractères sont affichés comme des entités html et sont mal interprétés notamment dans le sujet du mail : les accents (é à è ù ; pas chez moi mais signalé sur contact.framasoft.org), @, !, /, ?, %, etc.
> [Framadate][Réservé ...Certains caractères sont affichés comme des entités html et sont mal interprétés notamment dans le sujet du mail : les accents (é à è ù ; pas chez moi mais signalé sur contact.framasoft.org), @, !, /, ?, %, etc.
> [Framadate][Réservé à l'auteur] Sondage: Test & à ê ù é è @ ç î ! ? % /1.1.11https://framagit.org/framasoft/framadate/framadate/-/issues/457Bad escapment of e-mail subject2023-03-13T09:11:07ZNils Van ZuijlenBad escapment of e-mail subjectThe date name is HTML-escaped in the mail subject.
For example, I received a message whose subject was
`[Framadate][Pour diffusion aux sondés] Sondage: Réunion bureau BDI`
when it should have been
`[Framadate][Pour diffusion aux ...The date name is HTML-escaped in the mail subject.
For example, I received a message whose subject was
`[Framadate][Pour diffusion aux sondés] Sondage: Réunion bureau BDI`
when it should have been
`[Framadate][Pour diffusion aux sondés] Sondage: Réunion bureau BDI`1.1.20Thomasthomas.citharel@framasoft.orgThomasthomas.citharel@framasoft.orghttps://framagit.org/framasoft/framadate/framadate/-/issues/536Emoji Support2022-10-17T04:43:04ZAndreas KosmowiczEmoji SupportHave you ever tried to enter emojis in your "name" field?
Actually I did try it. At least entering 1 emoji as my name led to a 500 on the system `https://nuudel.digitalcourage.de/`.
Might be a general issue in framadate?Have you ever tried to enter emojis in your "name" field?
Actually I did try it. At least entering 1 emoji as my name led to a 500 on the system `https://nuudel.digitalcourage.de/`.
Might be a general issue in framadate?https://framagit.org/framasoft/framadate/framadate/-/issues/590Undefined array keys2022-09-26T16:18:16Zcdr60Undefined array keysThere is a lot of warning like this :
PHP Warning: Undefined array key "admin_poll_id" in
./tpl_c/_0920244f2281cd9bf30b37879f8cbde183ad42fa_0_________.file.comments_list.tpl.php on line 28
When would you fixe this ?
For information ...There is a lot of warning like this :
PHP Warning: Undefined array key "admin_poll_id" in
./tpl_c/_0920244f2281cd9bf30b37879f8cbde183ad42fa_0_________.file.comments_list.tpl.php on line 28
When would you fixe this ?
For information : I must use Php 8.1 because of other sites in other virtualhost and I don't want to use multiple php version
At least : where can I set log_error php value to False in framadate (without changing phph.ini)https://framagit.org/framasoft/framadate/framadate/-/issues/555erreur d'affichage d'images2022-05-12T21:47:38Zmatthieu3135erreur d'affichage d'images1. **Français**
Bonjour,
Actuellement nous utilisons (l'entreprise où je travaille) la dernière version stable (1.1.16). Après une série de test nous nous sommes aperçus d'un problème avec l'affichage des images dans les sondages cla...1. **Français**
Bonjour,
Actuellement nous utilisons (l'entreprise où je travaille) la dernière version stable (1.1.16). Après une série de test nous nous sommes aperçus d'un problème avec l'affichage des images dans les sondages classiques. Lorsqu'une image fait partie des choix, elle s'affiche dans les choix, mais pas lorsque l'on affiche le graphique ni les meilleurs choix.
![image](/uploads/f029336430195e760ed62d8ef6533ed0/image.png)
Je me permets aussi d'ajouter qu'il est possible de rajouter des choix depuis la page administrateur. cependant, seulement du texte peut être ajouté et non un url ou une image comme on le pouvait lors de la création du sondage.
Pouvez vous me dire comment régler ces deux problèmes, ou m'expliquer comment supprimer la possibilité de mettre un url et une image svp (le fait de supprimer ces options simplifierait le problème et serait plus sécuritaire car cela éviterait les accès depuis l'extérieur de l'entreprise)
Je vous remercie d'avance pour votre temps et votre considération
Matthieu
2. **English**
Hello,
Currently we (the company where I work) are using the latest stable version (1.1.16). After a series of tests we noticed a problem with the display of images in the classic polls. When an image is part of the choices, it is displayed in the choices, but not when displaying the graph or the top choices.
I would also like to add that it is possible to add choices from the admin page. However, only text can be added and not an url or an image as it was possible when creating the poll.
Could you explain me how to fix both points please? Or how to remove the possibility to use an image (or an URL) as a choice please?
Thank you in advance for your time and consideration
best regards,
Matthieuhttps://framagit.org/framasoft/framadate/framadate/-/issues/578Invalid localization of dates in Czech2022-04-28T10:34:03ZJakub FreywaldInvalid localization of dates in CzechI am using an English localization by default, but being situated in the Czech Republic, I have the option to switch to Czech.
I created some options in the timetable in English, but when I switched to Czech, the dates did not translate ...I am using an English localization by default, but being situated in the Czech Republic, I have the option to switch to Czech.
I created some options in the timetable in English, but when I switched to Czech, the dates did not translate properly. (see screenshots) Also month names did not translate at all.
![English](/uploads/519f4b84adfaae3451c6542e38a1e3bb/Screenshot_2022-04-28_at_12.20.15.png)
![Czech](/uploads/21a0391402030193cd1da26c20e9ad43/Screenshot_2022-04-28_at_12.20.52.png)1.1.20https://framagit.org/framasoft/framadate/framadate/-/issues/336Absence de contrôle de la date d'expiration en modification de sondage2022-04-20T10:59:03ZClermontéAbsence de contrôle de la date d'expiration en modification de sondageLors de la création du sondage, le code teste la date saisie par rapport à un minimum et un maximum. Dans create_classic_poll.php, ligne 72 :
```
if ($time < $min_expiry_time) {
$_SESSION['form']->end_date = $min_e...Lors de la création du sondage, le code teste la date saisie par rapport à un minimum et un maximum. Dans create_classic_poll.php, ligne 72 :
```
if ($time < $min_expiry_time) {
$_SESSION['form']->end_date = $min_expiry_time;
} elseif ($max_expiry_time < $time) {
$_SESSION['form']->end_date = $max_expiry_time;
} else {
$_SESSION['form']->end_date = $time;
}
```
Lors de la modification de la date d'expiration après que le sondage soit créé, il n'y a plus ce test. Dans app/classes/Framadate/Service/AdminPollService.php, ligne 37 :
```
function updatePoll($poll) {
global $config;
if ($poll->end_date > $poll->creation_date) {
return $this->pollRepository->update($poll);
} else {
return false;
}
}
```
**Problèmes :**
a) possibilité de mettre une date dans un futur lointain, très lointain… (voir ci-dessus : `if ($poll->end_date > $poll->creation_date) {`) ;
b) possibilité de mettre une date passée alors que factuellement des votes ont pu avoir lieu après cette date.
**Suggestions :**
1) modifier le code pour renforcer le test ;
2) mutualiser le code de test entre create_classic_poll.php, create_date_poll.php et AdminPollService.php.1.2.0https://framagit.org/framasoft/framadate/framadate/-/issues/573Warning: Attempt to read property "value" on null2022-04-14T06:48:54ZHuidae ChoWarning: Attempt to read property "value" on nullI'm using Framadate 1.1.19.
When in the admin mode, viewing an old poll shows this warning at the bottom:
```
Warning: Attempt to read property "value" on null in /home/user/public_html/framadate/tpl_c/d115c226b0501afc289dde584cfc52ee5f...I'm using Framadate 1.1.19.
When in the admin mode, viewing an old poll shows this warning at the bottom:
```
Warning: Attempt to read property "value" on null in /home/user/public_html/framadate/tpl_c/d115c226b0501afc289dde584cfc52ee5f4bf799_0.file.comments_list.tpl.php on line 28
```
In line 27 of that file,
```php
<form action="<?php if ((isset($_smarty_tpl->tpl_vars['admin']->value))) {
```
`$_smarty_tpl->tpl_vars['admin']->value` is set (`isset()` true), but it is empty for some reason (`isset()` still true). **It can be set to a falsy value, so it shouldn't be enough to just check if it is set.** In line 28,
```php
echo smarty_function_poll_url(array('id'=>$_smarty_tpl->tpl_vars['admin_poll_id']->value,'admin'=>true),$_smarty_tpl);
```
`$_smarty_tpl->tpl_vars['admin_poll_id']` is not defined (null) and reading "value" on this null triggers the above warning.
## Version 1.1.10
In version 1.1.10, line 27 was
```php
<form action="<?php if ($_smarty_tpl->tpl_vars['admin']->value) {
```
so a set-but-empty `$_smarty_tpl->tpl_vars['admin']->value` was false and `$_smarty_tpl->tpl_vars['admin_poll_id']` was never evaluated.
## Probably
Line 27 was meant to be
```php
<form action="<?php if (isset($_smarty_tpl->tpl_vars['admin']->value) && $_smarty_tpl->tpl_vars['admin']->value) {
```
or even just like in version 1.1.10
```php
<form action="<?php if ($_smarty_tpl->tpl_vars['admin']->value) {
```1.1.20Thomasthomas.citharel@framasoft.orgThomasthomas.citharel@framasoft.orghttps://framagit.org/framasoft/framadate/framadate/-/issues/571CSV export : some columns are empty2022-04-14T06:45:27ZMarc LangevinCSV export : some columns are emptyIf some choices contain comma(s), the CSV is messed up, because the values rows are correctly quoted, but not the first headers row.If some choices contain comma(s), the CSV is messed up, because the values rows are correctly quoted, but not the first headers row.1.1.20https://framagit.org/framasoft/framadate/framadate/-/issues/465Translate unknown answer in produced CSV2021-12-21T09:55:59ZThomasthomas.citharel@framasoft.orgTranslate unknown answer in produced CSVThe following discussion from !413 should be addressed:
- [ ] @tcit started a [discussion](https://framagit.org/framasoft/framadate/framadate/merge_requests/413#note_468298):
> Needs to be translated as well (and typo fixed).The following discussion from !413 should be addressed:
- [ ] @tcit started a [discussion](https://framagit.org/framasoft/framadate/framadate/merge_requests/413#note_468298):
> Needs to be translated as well (and typo fixed).1.1.18https://framagit.org/framasoft/framadate/framadate/-/issues/562use_sendmail = true gets ignored2021-10-20T17:37:31Zbavramoruse_sendmail = true gets ignoredI'm using parameter 'use_sendmail' => true in /app/inc/config.php og v.1.1.17 but the system ignores it and uses SMTP instead. In older versions it was working fine.I'm using parameter 'use_sendmail' => true in /app/inc/config.php og v.1.1.17 but the system ignores it and uses SMTP instead. In older versions it was working fine.https://framagit.org/framasoft/framadate/framadate/-/issues/343Make sure config.php has correct permissions2021-09-30T10:52:34ZThomasthomas.citharel@framasoft.orgMake sure config.php has correct permissionsSo that external attackers don't get to see database credentials.So that external attackers don't get to see database credentials.1.2.0https://framagit.org/framasoft/framadate/framadate/-/issues/293Fix error 414 - request URI too large when deleting long column name2021-09-30T10:50:32ZThomasthomas.citharel@framasoft.orgFix error 414 - request URI too large when deleting long column nameThis requires using the id of the choice and no longer it's value (why was it like that in the first place /o\ !)This requires using the id of the choice and no longer it's value (why was it like that in the first place /o\ !)1.2.0https://framagit.org/framasoft/framadate/framadate/-/issues/546XSS in markdown parsing in /create_poll.php2021-03-23T02:17:33ZmartgilXSS in markdown parsing in /create_poll.phpThere was an XSS on the current version of the framadate.
Prerequisite:
A local installation of framadate instance is needed.
Markdown Payload :
```
[Click Me](http://onclick=setTimeout`prompt\u0028document.domain\u0029`//)
```
Steps...There was an XSS on the current version of the framadate.
Prerequisite:
A local installation of framadate instance is needed.
Markdown Payload :
```
[Click Me](http://onclick=setTimeout`prompt\u0028document.domain\u0029`//)
```
Steps to reproduce:
1. Visit https://localhost/create_poll.php?type=date
2. Enter payload above.
3. Click on the preview. Then click the text link.
4. Javascript will execute.
Ps; Many websites are suffering with this XSS. I have reach you guys so It could be fixed really soon as It was suggested to me by those websites that are affected.
```
Hey,
- First of all, the website is running open source software that is developed by others, we are just using it. To have the biggest impact with your report, I suggest you notify the developers directly. Their website is at <https://framadate.org/>, their development is done here <https://framagit.org/framasoft/framadate>. This way, your report would be processed at the source of all installations.
Thanks again
```
I hope this could be fixed soon;
Best,1.1.15https://framagit.org/framasoft/framadate/framadate/-/issues/532L'option "il n'est plus possible de voter" provoque une erreur 500 / Error 50...2021-03-08T17:53:39ZspfL'option "il n'est plus possible de voter" provoque une erreur 500 / Error 500 for "Votes and comments are locked"Pour reproduire :
1. créer un Framadate
1. changer l'option de vote pour **Il n'est plus possible de voter**
1. cliquer sur l'icône pour enregistrer le changement
1. erreur 500
Testé sur https://framadate.org/ et https://date.chapril.o...Pour reproduire :
1. créer un Framadate
1. changer l'option de vote pour **Il n'est plus possible de voter**
1. cliquer sur l'icône pour enregistrer le changement
1. erreur 500
Testé sur https://framadate.org/ et https://date.chapril.org/
---
Steps to reproduce:
1. create Framadate
1. change option to **Votes and comments are locked**
1. click icon to save
1. error 500
Tested on https://framadate.org/ and https://date.chapril.org/1.1.13https://framagit.org/framasoft/framadate/framadate/-/issues/437Remove collect_users_mail in 1.1.x versions2020-12-14T17:03:02ZThomasthomas.citharel@framasoft.orgRemove collect_users_mail in 1.1.x versionsWrongly backported from https://framagit.org/framasoft/framadate/framadate/merge_requests/352
Gives
```
PHP Notice: Undefined property: Framadate\Form::$collect_users_mail
```Wrongly backported from https://framagit.org/framasoft/framadate/framadate/merge_requests/352
Gives
```
PHP Notice: Undefined property: Framadate\Form::$collect_users_mail
```1.1.11https://framagit.org/framasoft/framadate/framadate/-/issues/486Fork i18n lib in 1.1.x to fix some issues2020-12-14T17:02:24ZThomasthomas.citharel@framasoft.orgFork i18n lib in 1.1.x to fix some issuesFork it here and patch things like https://github.com/olivierperez/o80-i18n/pull/8Fork it here and patch things like https://github.com/olivierperez/o80-i18n/pull/81.1.11https://framagit.org/framasoft/framadate/framadate/-/issues/474smtp use, error2020-02-05T15:41:00ZDavidsmtp use, errorBonjour,
Mon instance : https://sondage.retzien.fr tourne bien mais j'ai dû désactivé l'utilisation du SMTP. Parce que quand je l'active j'ai une erreur dans les logs :
```
[Thu Nov 21 20:38:00.817072 2019] [proxy_fcgi:error] [pid 475...Bonjour,
Mon instance : https://sondage.retzien.fr tourne bien mais j'ai dû désactivé l'utilisation du SMTP. Parce que quand je l'active j'ai une erreur dans les logs :
```
[Thu Nov 21 20:38:00.817072 2019] [proxy_fcgi:error] [pid 4750] [client 109.190.200.24:53602] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught PHPMailer\\PHPMailer\\Exception: SMTP Error: Could not connect to SMTP host. in /var/www/sondage/vendor/phpmailer/phpmailer/src/PHPMailer.php:1898\nStack trace:\n#0 /var/www/sondage/vendor/phpmailer/phpmailer/src/PHPMailer.php(1725): PHPMailer\\PHPMailer\\PHPMailer->smtpConnect(Array)\n#1 /var/www/sondage/vendor/phpmailer/phpmailer/src/PHPMailer.php(1481): PHPMailer\\PHPMailer\\PHPMailer->smtpSend('Date: Thu, 21 N...', 'This is a multi...')\n#2 /var/www/sondage/vendor/phpmailer/phpmailer/src/PHPMailer.php(1320): PHPMailer\\PHPMailer\\PHPMailer->postSend()\n#3 /var/www/sondage/app/classes/Framadate/Services/MailService.php(58): PHPMailer\\PHPMailer\\PHPMailer->send()\n#4 /var/www/sondage/create_date_poll.php(237): Framadate\\Services\\MailService->send('david@mercereau...', '[Sondage / Rend...', 'Ce message ne d...')\n#5 {main}\n thrown in /var/www/sondage/vendo...\n', referer: https://sondage.retzien.fr/create_date_poll.php
```
Cette erreur se produit à la dernière étape de la création du sondage (après ajout de la date d'expiration) sur la page create_date_poll.php.
Version framadate : 1.1.10
PHP : 7.0
Debian 9
Ma config :
```
$config = [
/* general config */
'use_smtp' => false, // use email for polls creation/modification/responses notification
'smtp_options' => [
'host' => 'localhost', // SMTP server (you could add many servers (main and backup for example) : use ";" like separator
'auth' => false, // Enable SMTP authentication
'username' => '', // SMTP username
'password' => '', // SMTP password
'secure' => '', // Enable encryption (false, tls or ssl)
'port' => 25, // TCP port to connect to
],
```
Je précise que le serveur SMTP fonctionne bien sur le port 25... :
> telnet localhost 25
> Trying ::1...
> Connected to localhost.
> Escape character is '^]'.
> 220 srvweb.retzien.net ESMTP Postfix (Debian/GNU)
Est-ce que vous avez une idée qui me permettrai d'avancé ?
Belle journée,
David
P.S. J'ai testé avec la vesrion 1.2 mais sans plus de succès, je n'ai pas cette erreur mais je ne reçois aucun mail... rien dans les log de mails donc même pas une tentative de connexion... (et j'ai remarqué d'autres bug étrange dans la 1.2, certainement dû au côté Alpha...)https://framagit.org/framasoft/framadate/framadate/-/issues/492Missing input form in create_poll.php when using RemoteUser env var2020-01-30T17:52:51ZPatrickMissing input form in create_poll.php when using RemoteUser env varHello,
I use REMOTE_USER which is correctly set (LOG apache2 show this and a PHP test too) but create pool form is not displayed !
see attached screenshot : [framadate-REMOTE_USER](/uploads/093fce6544e6e53a3c6d79f1028de54f/framadate-...Hello,
I use REMOTE_USER which is correctly set (LOG apache2 show this and a PHP test too) but create pool form is not displayed !
see attached screenshot : [framadate-REMOTE_USER](/uploads/093fce6544e6e53a3c6d79f1028de54f/framadate-REMOTE_USER.PNG)
And I do not understand where env VAR REMOTE_USER is read in the source code, it's just tested once to check it exist, but I do not see anywhere it's used :
`create_poll.php:$useRemoteUser = USE_REMOTE_USER && isset($_SERVER['REMOTE_USER']);`
many thanks for your help