I have an ‘Image (Database)’ type field ( mySql data type LONG BLOB) - field name is ‘imageBlob’. When I add an image to the row and click save, the app hangs on ‘processing’ (ajax). When I checked the apache2 error.log I found the error at the end of this post. The following is the offending line (generated by SC, within function nm_acessa_banco(), just underneath the set of statements around $this->Db->Execute($comando) which updates the rest of the row):
$_SESSION[‘scriptcase’][‘sc_sql_ult_comando’] = “UpdateBlob($this->Ini->nm_tabela,
\“imageBlob\”, $this->imageblob, \“id = $this->id&\”)”;
This error does not occur in my dev environment (MacOS), but the error does occur when deployed to my 64bit Ubuntu test server (not sure if that makes a difference).
If I edit the file and comment out this line (not sure of the implications of doing this) the row saves successfully.
Happy to be told I am doing something wrong, but it looks like a bug to me.
Regards.
Apache Error Log Entry:
[Fri Aug 21 23:23:05.262410 2020] [php7:error] [pid 979] [client 10.1.1.112:56384] PHP Fatal error: Uncaught Error: Object of class form_member_profile_ini could not be converted to string in /var/www/html/ontrax/prof-form-profile/form_member_profile_apl.php:8521\nStack trace:\n#0 /var/www/html/ontrax/prof-form-profile/form_member_profile_apl.php(1814): form_member_profile_apl->nm_acessa_banco()\n#1 /var/www/html/ontrax/prof-form-profile/index.php(14310): form_member_profile_apl->controle()\n#2 /var/www/html/ontrax/prof-form-profile/form_member_profile_sajax.php(122): ajax_form_member_profile_submit_form()\n#3 /var/www/html/ontrax/prof-form-profile/index.php(13454): sajax_handle_client_request()\n#4 {main}\n thrown in /var/www/html/ontrax/prof-form-profile/form_member_profile_apl.php on line 8521, referer: http://10.1.1.14/ontrax/prof-form-profile/