Dieses Forum verwendet Cookies.
Für "Social-Login" gelten weitere AGB die in diesem Forum unter Sonstiges liegen.
Technisch nötwendige finden Sie am Ende der Seite unter "Cookie-Einwilligungseinstellungen". (March 11, 2025) x


Themabewertung:
  • 0 Bewertung(en) - 0 im Durchschnitt
  • 1
  • 2
  • 3
  • 4
  • 5
Anpassung: MyDownloads 3.0.2 - Error uploading without image
#1
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 in


suche 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); }
Zitieren


Gehe zu:


Benutzer, die gerade dieses Thema anschauen: