Page MenuHomePhabricator

Warning: Uninitialized string offset 96 in includes/PF_FormPrinter.php on line 1041
Closed, DuplicatePublicBUG REPORT

Description

Steps to replicate the issue:

In Special:RunQuery I see the warning below.

What happens?:

Warning: Uninitialized string offset 96 in includes/PF_FormPrinter.php on line 1041

Software version:
PF: 5.8.1 (b3be227) (master)
MW: 139.10
PHP: 8.0.30

Other information:

Form code (page Form:Search):

<noinclude>
Este é o formulário "Busca".

{{#queryformlink:form=Search|link text={{int:searchbutton}}|link type=post button}}

</noinclude><includeonly>{{{info|query form at top|query title={{int:searchbutton}} }}}{{{for template|Search}}}<div style="text-align: center;">{{{field|searchType|input type=dropdown|values=Todos os campos, Título, Autor, Assunto, Editora, Ano de publicação, Idioma, ISBN|default=Todos os campos}}} {{{field|searchString|input type=text|size=50}}} {{{standard input|run query}}}<br />{{SearchList}}</div></includeonly>

Event Timeline

This might be the same sort of bug as T377307 - some newlines in the form definition might be helpful. Or maybe you just need an {{{end template}}} tag?

Yes, adding a newline before

{{{for template

fixed the waning. Thank you.