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
EDITI didn't look at stack trace... This error is caused by Twig extension, so I close the report.
Short description of the issue
Accessing an empty Text field inside a Profields Table throws this error:
Look out… Erreur fatale: Uncaught Error: An exception has been thrown during the rendering of a template ("Method TableRow::reason does not exist or is not callable in this context").
#0 src-processwire\vendor\twig\twig\src\Template.php(367): Twig\Template->displayWithErrorHandling(Array, Array) #1 src-processwire\vendor\twig\twig\src\Template.php(379): Twig\Template->display(Array) #2 src-processwire\vendor\twig\twig\src\TemplateWrapper.php(40): Twig\Template->render(Array, Array) #3 src-processwire\vendor\twig\twig\src\Extension\CoreExtension.php(1347): Twig\TemplateWrapper->render(Array) #4 src-processwire\site\assets\cache\TemplateEngineTwig_compile\8a\8a22dcf5304fc7aba24e035ffbf589d2.php(61): twig_include(Object(Twig\Environment), Array, 'fragments/race/...', Array)
If the field has a value, no error is thrown.
Expected behavior
Getting an empty string.
Actual behavior
Getting an error.
Steps to reproduce the issue
Create a Profields Table field with several fields including one Text field,
In the page using this Table, add a row and keep the Text field empty.
In PHP, loop over the Table rows, accessing the Text field value.
Setup/Environment
ProcessWire version: 3.0.228
(Optional) PHP version: 8.1
The text was updated successfully, but these errors were encountered:
hiboudev
changed the title
Profields Table: accessing empty text field throws an error
Profields Table: accessing empty text field throws an error (report cancelled, it's caused by Twig module)
Oct 10, 2023
hiboudev
changed the title
Profields Table: accessing empty text field throws an error (report cancelled, it's caused by Twig module)
Profields Table: accessing empty text field throws an error (report cancelled, error is caused by Twig module)
Oct 10, 2023
EDIT I didn't look at stack trace... This error is caused by Twig extension, so I close the report.
Short description of the issue
Accessing an empty Text field inside a Profields Table throws this error:
If the field has a value, no error is thrown.
Expected behavior
Getting an empty string.
Actual behavior
Getting an error.
Steps to reproduce the issue
Setup/Environment
The text was updated successfully, but these errors were encountered: