Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error whilst creating TANs from the backend #42

Closed
marcuslelle opened this issue Jul 31, 2023 · 0 comments · Fixed by #49
Closed

Error whilst creating TANs from the backend #42

marcuslelle opened this issue Jul 31, 2023 · 0 comments · Fixed by #49
Assignees
Labels
bug Something isn't working

Comments

@marcuslelle
Copy link

Bug description

Creating a number of TANs for one survey through the backend leads to an error message instead:

[2023-07-31T15:24:16.592722+02:00] request.CRITICAL: Uncaught PHP Exception TypeError: "ceil(): Argument #1 ($num) must be of type int|float, string given" at /html/contao413/vendor/pdir/contao-survey/src/Resources/contao/classes/SurveyPINTAN.php line 229 {"exception":"[object] (TypeError(code: 0): ceil(): Argument #1 ($num) must be of type int|float, string given at /html/contao413/vendor/pdir/contao-survey/src/Resources/contao/classes/SurveyPINTAN.php:229)"} []

Steps to reproduce

Choose a survey.
Click on "TAN-Codes erzeugen".
Type in a number of TANs to create, e.g. 5.

Expected behavior

Creating a number of TANs (e.g. 5 as I requested in the form).

Environment

PHP 8.2.5
Contao 4.13.28
contao-survey 3.5.0

@marcuslelle marcuslelle added the bug Something isn't working label Jul 31, 2023
cmette pushed a commit that referenced this issue Aug 16, 2023
cmette pushed a commit that referenced this issue Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants