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

Uncaught Error strcmp(): Argument #1 ($string1) must be of type string, bool given #66

Closed
arminfrey opened this issue Oct 31, 2023 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@arminfrey
Copy link

Bug description

Uncaught Error: strcmp(): Argument #1 ($string1) must be of type string, bool given {"exception":"[object] (TypeError(code: 0): strcmp(): Argument #1 ($string1) must be of type string, bool given at /var/.../.../.../.../.../vendor/pdir/contao-survey/src/Resources/contao/elements/ContentSurvey.php:948)

Steps to reproduce

Umfrage erstellen, im Frontend Umfrage aufrufen

Expected behavior

Fehler beheben in ContentSurvey.php
if (0 === strcmp($status, 'finished'))
neu if (0 === strcmp(strval($status), 'finished'))

Screenshots

Environment

Contao 4.13.32, contao_survey 3.5.0, PHP 8.1.25

@arminfrey arminfrey added the bug Something isn't working label Oct 31, 2023
@MDevster MDevster added this to the 3.6.0 milestone Jun 4, 2024
@MDevster MDevster self-assigned this Jun 4, 2024
@MDevster
Copy link

MDevster commented Jun 4, 2024

I have added the fix in dev-master. Version 3.6.0 will certainly be released soon.

@arminfrey
Copy link
Author

Bug is fixed in dev-master. My tests were successful.

@MDevster MDevster closed this as completed Jul 4, 2024
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

No branches or pull requests

2 participants