Compiling Error version 9.10.22(10)

hi,

While compiling the application aftern renam of app I get this error:
Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, bool given in C:\Program Files\NetMake\v9-php81\wwwroot\scriptcase\devel\compat\nm_gera_saida.php:233
Stack trace:
#0 C:\Program Files\NetMake\v9-php81\wwwroot\scriptcase\devel\compat\nm_gera_saida.php(233): fwrite(false, ’ \r\n…’)
#1 C:\Program Files\NetMake\v9-php81\wwwroot\scriptcase\devel\generator\nm_gp_geracao.php(4442): nm_finaliza(false)
#2 C:\Program Files\NetMake\v9-php81\wwwroot\scriptcase\devel\generator\nm_gp_geracao.php(1563): nmgp_gera_htm(‘card.php’)
#3 C:\Program Files\NetMake\v9-php81\wwwroot\scriptcase\devel\generator\nm_gp_geracao.php(2): sg_load(‘68ABBE04C7C5024…’)
#4 {main}
thrown in C:\Program Files\NetMake\v9-php81\wwwroot\scriptcase\devel\compat\nm_gera_saida.php on line 233

Dear @marcosc,

When we carried out some tests by renaming applications and compiling again after the rename, the source code generation occurred successfully without errors.

Could you elaborate on how you are doing this process? Are you using a different character in the name of your application?

Best regards!

the name of the application is card and I simply renamed it

nother application where I didn’t make any changes, just recompiled

Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, bool given in C:\Program Files\NetMake\v9-php81\wwwroot\scriptcase\devel\generator\nm_gp_geracao.php:2920 Stack trace: #0 C:\Program Files\NetMake\v9-php81\wwwroot\scriptcase\devel\generator\nm_gp_geracao.php(2920): fwrite(false, ‘alert("GoJS lib…’) #1 C:\Program Files\NetMake\v9-php81\wwwroot\scriptcase\devel\generator\nm_gp_geracao.php(2): sg_load(‘68ABBE04C7C5024…’) #2 {main} thrown in C:\Program Files\NetMake\v9-php81\wwwroot\scriptcase\devel\generator\nm_gp_geracao.php on line 2920

Thank you for the return.

Could you check in a parallel installation if the problem occurs?

It would be interesting for us to narrow down more about why this error occurs.

Another detail that was also not clear: is the error only displayed in the first generation of the application’s source code, or always? Does it occur with applications of any type, or just a specific type of application? Do those that occur have codes in events or methods?

We await your return.

Best regards!

hi,
it is a blank application.
I tried removing all my code and recompiling but it still gives the same error.
I don’t have any other parallel installation where try.

A similar error related to fwrite() is happening to my project, applications that were perfectly working suddenly stopped working. The following error appears when recompiling:

Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, bool given in D:\wwwroot\apps\scriptcase\devel\compat\nm_gera_saida.php:233 Stack trace: #0 D:\wwwroot\apps\scriptcase\devel\compat\nm_gera_saida.php(233): fwrite(false…

AND

2 = fopen(D:/scriptcase/app/GCE/grid_Summary/index.php): Failed to open stream: Permission denied
D:\scriptcase\devel\generator\nm_gp_consulta.php 1054