Hello, the bug reappear, there is no problem of space on my server, even if I rebboot the server, the problem is the same. I create a little news system :
public function news()
{
$crud = $this->_getGroceryCrudEnterprise();
// Configurer Grocery CRUD
$crud->setTable('news');
$crud->setSubject('News');
$crud->displayAs('video', 'Vidéo');
$crud->setTexteditor(['texte']);
$crud->setTheme('bootstrap-v4');
$crud->fieldType('la_date', 'date');
$crud->requiredFields(['titre']);
$uploadValidations = [
'maxUploadSize' => '20M', // 20 Mega Bytes
'minUploadSize' => '1K', // 1 Kilo Byte
'allowedFileTypes' => [
'gif', 'jpeg', 'jpg', 'png'
]
];
$crud->setFieldUpload('photo','assets/news/photos/', base_url() . '/assets/news/photos/', $uploadValidations);
$crud->callbackAfterUpload(function ($result) {
$fileName = $result->uploadResult;
$fullPath = $result->uploadPath . $fileName;
$fullPath2=base_url() . '/assets/news/miniatures/';
$image = new ImageResize($fullPath);
$image->resizeToBestFit(1200, 800);
$image->save($fullPath);
$image2 = new ImageResize($fullPath);
$image2->resizeToBestFit(400, 300);
$image2->save($fullPath2);
return $result;
});
// Afficher la liste des enregistrements
$output = $crud->render();
return $this->_superadmin_output($output);
}
my table
CREATE TABLE news (
id int(11) NOT NULL,
la_date date NOT NULL DEFAULT ‘2023-08-15’,
titre varchar(255) NOT NULL,
texte mediumtext NOT NULL,
photo varchar(255) NOT NULL,
video mediumtext NOT NULL,
afficher enum(‘oui’,‘non’) NOT NULL DEFAULT ‘oui’
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
All work fine exept the field date, the field not appear in edit or add form. It’s strange the field appear correctly in columns, with the correct previous entered date. Note I know that delete miniature file not yet implemented.
And the other table where appear the problem initially, have the problem too again, even I do no modification in the controller.
I’m a little desesparate.