This error occurs when non-permitted files (Flatpress Uploader Blacklist) or incorrect Mime_Types of files are detected when uploading to Flatpress. There are two possible solutions to eliminate this uploader warning.PHP Warning:
Undefined array key "uploaded_files" in .../fp-content/cache/e93fccb09cf8b04111b9595da102f3f4^%%9D^9D6^9D6FBCCD%%default.php on line 21
Solution 1:
file: /admin/panels/uploader/admin.uploader.php
Remove the complete query in line 206:
Code: Select all
if (($mime == "text/x-php") || ($mime == "text/html")) {
$this->smarty->assign('success', $success ? 1 : -1);
sess_add('admin_uploader_files', $uploaded_files);
return -1;
}
file: /admin/panels/uploader/admin.uploader.php
Replace the complete query in line 206 with the following code:
Code: Select all
if (($mime == "text/x-php") || ($mime == "text/html")) {
$this->smarty->assign('success', $success ? 1 : -1);
$notuploaded = "The file " . $name . " is not uploaded!";
$this->smarty->assign('uploaded_files', $notuploaded);
sess_add('admin_uploader_files', $uploaded_files);
return -1;
}