Code: Select all
set_error_handler( function( $errno, $errstr, $errfile, $errline, array $errcontext ) {
JError::raiseWarning( 0, "$errstr (no. $errno) in $errfile (line: $errline)" );
} );
One of the errors is about checking-out items. My component uses a database table without columns 'checked_out' and 'checked_out_time'. It gives me an error no. 8 when I choose 'Save' (= task 'apply', not 'Save & close') to store an item that is put into this table.
Cause: JControllerForm::save() calls $model->checkout() on line 749, without checking if the table has a property 'checked_out', like it is done on line 714.
Same case in JController::edit() on line 461.