Fatal error when generating source-code from grid with refined search

Hello everyone,
I created a grid application, and the only change that I applied was selecting one field on the refined search. When I generated the code, I got this error.

**Fatal error** : Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, bool given in /home/sgintegr/scriptcase.sistemagestao.com/scriptcase9/devel/compat/nm_gera_saida.php:233 Stack trace: #0 /home/sgintegr/scriptcase.sistemagestao.com/scriptcase9/devel/compat/nm_gera_saida.php(233): fwrite() #1 /home/sgintegr/scriptcase.sistemagestao.com/scriptcase9/devel/generator/nm_gp_gera_interativ_search.php(2441): nm_finaliza() #2 /home/sgintegr/scriptcase.sistemagestao.com/scriptcase9/devel/generator/nm_gp_gera_interativ_search.php(2092): modal_interativ_search() #3 /home/sgintegr/scriptcase.sistemagestao.com/scriptcase9/devel/generator/nm_gp_consulta_cons.php(7320): proc_interativ_search() #4 /home/sgintegr/scriptcase.sistemagestao.com/scriptcase9/devel/generator/nm_gp_consulta_cons.php(2): sg_load() #5 /home/sgintegr/scriptcase.sistemagestao.com/scriptcase9/devel/generator/nm_gp_consulta.php(1142): require('/home/sgintegr/...') #6 /home/sgintegr/scriptcase.sistemagestao.com/scriptcase9/devel/generator/nm_gp_consulta.php(2): sg_load() #7 /home/sgintegr/scriptcase.sistemagestao.com/scriptcase9/devel/generator/nm_gp_geracao.php(3004): require('/home/sgintegr/...') #8 /home/sgintegr/scriptcase.sistemagestao.com/scriptcase9/devel/generator/nm_gp_geracao.php(2): sg_load() #9 {main} thrown in **/home/sgintegr/scriptcase.sistemagestao.com/scriptcase9/devel/compat/nm_gera_saida.php** on line **233**

I already tried with different types of fields (MEDIUMTEXT, INT) in the refined search, and all get the same error.
Thank you!

Installed version: 9.11.0010

this may be a permission issue, check the folder permission of your scriptcase

Hola
Cando tengo este tipo de problema, voy a aplicacion - codigo fuente y veo la aplicacion en donde marca el numero de linea de error y me informa que tipo de error esta pasando.
En este caso consumte el codigo fuente de nm_gera_saida.php** on line 233