You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running on a Debian Bookworm server with nginx 1.22.1 and php-fpm 8.2. I kept seeing depreciated warnings that were visible in the rendering of the page. I believe these were mostly resolved with the use of this in my php.ini
This resolved me seeing the following explanation box warnings showing as the explanation on this the list page.
It did not fix the main annoyance of the error being automatically generated into the explanation box for multiple choice questions.
Every new answer will have this warning automatically entered into the explanation box until i manually enter some text. Without the php.ini settings it will also be visible in the list section as the text of the explanation.
Note
By following this https://stackoverflow.com/a/71719307 and doing this for all instances of htmlspecialchars in the /admin/code/tce_edit_answer.php and /admin/code/tce_edit_question.php I was able to prevent the warning from populating the explanation box
I don't assume this is an elegant solution because it's not solving the problem of why the text is populated into that box in the first place but resolving the deprecation warnings which is effectively masking the bug and lets me carry on in the meantime.
To Reproduce
Steps to reproduce the behavior:
Install tcexam on linux/debian bookworm with nginx 1.22.1 and php-fpm 8.2
Expected behavior
Not have the answer explanation box text auto populated with the depreciation warning.
Logs
I figure this is not so helpful as we know the warnings are valid, it's just not meant to populate that box?
Environment:
OS: Linux
Version: debian bookworm
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
Running on a Debian Bookworm server with nginx 1.22.1 and php-fpm 8.2. I kept seeing depreciated warnings that were visible in the rendering of the page. I believe these were mostly resolved with the use of this in my
php.ini
error_reporting = E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED & ~E_STRICT & ~E_NOTICE
This resolved me seeing the following explanation box warnings showing as the explanation on this the list page.
It did not fix the main annoyance of the error being automatically generated into the explanation box for multiple choice questions.
Every new answer will have this warning automatically entered into the explanation box until i manually enter some text. Without the
php.ini
settings it will also be visible in the list section as the text of the explanation.Note
By following this https://stackoverflow.com/a/71719307 and doing this for all instances of
htmlspecialchars
in the/admin/code/tce_edit_answer.php
and/admin/code/tce_edit_question.php
I was able to prevent the warning from populating the explanation boxI don't assume this is an elegant solution because it's not solving the problem of why the text is populated into that box in the first place but resolving the deprecation warnings which is effectively masking the bug and lets me carry on in the meantime.
To Reproduce
Steps to reproduce the behavior:
Install tcexam on linux/debian bookworm with nginx 1.22.1 and php-fpm 8.2
Expected behavior
Not have the answer explanation box text auto populated with the depreciation warning.
Logs
I figure this is not so helpful as we know the warnings are valid, it's just not meant to populate that box?
Environment:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: