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
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: