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

Participant View not displaying under PHP8. #146

Open
lostcarpark opened this issue Dec 12, 2021 · 0 comments · May be fixed by #147
Open

Participant View not displaying under PHP8. #146

lostcarpark opened this issue Dec 12, 2021 · 0 comments · May be fixed by #147

Comments

@lostcarpark
Copy link

When displaying participant view on PHP8 webserver, a blank page is displayed.

The following error is logged:

PHP message: PHP Fatal error: Uncaught ValueError: XSLTProcessor::setParameter(): Argument #3 ($value) cannot be null when argument #2 ($name) is a string in /var/www/vhosts/reclamation2022.co.uk/zambia/webpages/RenderXSLT.php:22

It would seem that RenderXSLT is trying to set a parameter with a null value. This is not allowed in PHP8.

A simple solution is to add a check to RenderXSLT to only set the parameter if the value is not null.

It might also be worth checking the XML templates to verify that parameters are getting set correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant