Forms with blob images raise php error

A simple form, with a longblob image field and a string field.

If you try to modify an existing record the operation fails with the following error:

PHP Fatal error: Uncaught Error: Object of class form_DOC_commesse_formulari_smaltimento_ini could not be converted to string

This happens only in production env. In development env everything seems to go right.

In order to work-around the problem, I have deleted a line in the code generated by scriptcase in the apl.php. The line contains the following instruction:

$_SESSION[‘scriptcase’][‘sc_sql_ult_comando’] = “UpdateBlob($this->Ini->nm_tabela, “file_content”, “”, “ID = $this->id”)”;

Without this instruction the app seems to work fine.

Any suggestion?

TIA

PHP Version?

Scriptcase still has problems with php 7.4!

1 Like

PHP 7.4.6 (cli) ( NTS ) running on openSUSE-Leap-15.2

What’s the best version for scriptcase?

Thanks

In Production the host running PHP 7.3.29
In Development enviroment running 7.0.15