![]() |
|
Anpassung: MyDownloads 3.0.2 - Error uploading without image - Druckversion +- Interceptor Forum (https://interceptor.marconitschke.de) +-- Forum: Sonstiges (https://interceptor.marconitschke.de/forum-70.html) +--- Forum: MyBB Plugin (https://interceptor.marconitschke.de/forum-82.html) +--- Thema: Anpassung: MyDownloads 3.0.2 - Error uploading without image (/thread-66.html) |
Anpassung: MyDownloads 3.0.2 - Error uploading without image - nitje - 25-12-2024 Fehler beim Upload ohne Vorschaubild in MyDownloads 3.0.2 Fehler Code: NOTICE: PHP message: PHP Fatal error: Uncaught mysqli_sql_exception: Field 'preview' doesn't have a default value insuche in /inc/plugins/mydownloads.php Code: // add a download to the category's stats
$db->update_query('mydownloads_categories', array('downloads' => $cat['downloads']+1), 'cid='.$cat['cid']);
$id = $db->insert_query("mydownloads_downloads", $insert_array);
}ersetze mit Code: // add a download to the category's stats
$db->update_query('mydownloads_categories', array('downloads' => $cat['downloads']+1), 'cid='.$cat['cid']);
if (!isset($insert_array['preview'])) {
$insert_array['preview'] = '';
}
$id = $db->insert_query("mydownloads_downloads", $insert_array);
} |