- Issue created by @BLB76
- πΊπΈUnited States jrockowitz Brooklyn, NY
?>
I have been successfully using the following twig to calculate totals on a Webform. {{(+data.2501231530 +data.2501240900 +data.5012410001 +data.5112410002 +data.5012411151 +data.5012411152 +data.5012314451 +data.5012410002 +data.5012411153)|number_format(2,'.',',')}} hr(s). Unfortunately, I am now getting "An exception has been thrown during the rendering of a template ("Unsupported operand types: float + string") in "_string_template_926c51c68ffeb4e7506fcba55c66eadb" at line 1. The issue began after updating to Drupal 10.4.0, PHP 8.3.15 DB 10.11.6-MariaDB
Since I am not a programmer and, in an effort, to try to resolve the issue, I begin removing elements to try to determine the problem. What I have found is that adding conditions to some elements (not all) seems to cause the problem. When I remove the conditions to certain elements the issue goes away.
If I have posted this in the wrong location, I sincerely apologize and would appreciate any assistance ensuring it is moved or updated as necessary. Any assistance would be GREATLY APPRECIATED
Active
6.3
Code