Custom Module, image field: When uploading image I get the following error.

Notice: Undefined index: docType in /var/www/clients/client1/web14/web/include/SugarFields/Fields/Image/SugarFieldImage.php on line 96

Notice: Undefined index: in /var/www/clients/client1/web14/web/include/SugarFields/Fields/Image/SugarFieldImage.php on line 96

Any idea why?

Hmm, it seems for some reason the expen_Receipts Module database table was never created. The log shows me…

Mon Jan 22 19:56:49 2018 [9929][1][FATAL] Error inserting into table: expen_receipts: Query Failed: INSERT INTO expen_receipts (id,name,date_entered,date_modified,modified_user_id,created_by,description,deleted,receipt_upload,total,payment_type,transaction_date,city,state,transaction_location)
VALUES (‘abe40965-fafb-7599-9331-5a6696bab884’,’’,‘2018-01-23 01:56:48’,‘2018-01-23 01:56:48’,‘1’,‘1’,‘Test’,0,‘IMG_0011.JPG’,75,‘Debit’,‘2018-01-21’,‘TestCity’,‘MN’,‘Gas N Spirits’): MySQL error 1146: Table ‘c1_sugarcrm_mags.expen_receipts’ doesn’t exist

Any idea why the table has not been created when I deployed the module? I also rebuilt and repaired…

Redeployed and everything works, must have navigated away from the page during deployment.