Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#47846 closed defect (bug) (duplicate)

cannot upload mp3 - "Could not insert post into the database"

Reported by: deyanpavlov's profile deyanpavlov Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Upload Keywords:
Focuses: Cc:

Description

Hi guys, I have some mp3 that I want to upload to the media library using the WP native "Upload new media" functionality.
I use 5.2.2 version of WP.
I have some mp3 that fail to upload and I will attempt to attach them here, as well as attach images.
Once I hit "Upload" button, after a few seconds another page opens with just one message "Could not insert post into the database".

However, I managed to upload some other mp3, only those that I need fail to upload.

I checked the mp3 that fail to upload if they are correct mp3 files, they were ok.

I found some thread for this error message around here but none was helpful.

If any help or idea what to check can be offered, I will be grateful.

Attachments (4)

01-Campuri auri.mp3 (3.8 MB) - added by deyanpavlov 5 years ago.
this file fails to upload
02-Ein Bischen-Frieden.mp3 (2.5 MB) - added by deyanpavlov 5 years ago.
this file also fails to upload
prepare to upload.png (16.6 KB) - added by deyanpavlov 5 years ago.
native Upload new media UI
could not insert into the database.png (3.0 KB) - added by deyanpavlov 5 years ago.
error page

Change History (7)

@deyanpavlov
5 years ago

this file fails to upload

@deyanpavlov
5 years ago

this file also fails to upload

@deyanpavlov
5 years ago

native Upload new media UI

#1 @knutsp
5 years ago

  • Version 5.2.2 deleted

Hello @deyanpavlov welcome to Trac and thank you for the ticket.

I downloaded you 02-Ein Bischen-Frieden.mp3 file and tried to upload it to my media library, just to see the same error as you. So I can confirm the problem. However, I don't know why. My memory limit (512MB) and uploads size are more than sufficient, I believe.

Confirmed.

Last edited 5 years ago by knutsp (previous) (diff)

#2 @SergeyBiryukov
5 years ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to Future Release

Hi @deyanpavlov, welcome to WordPress Trac! Thanks for the report, I was able to reproduce the issue.

#3 @SergeyBiryukov
5 years ago

  • Keywords needs-patch removed
  • Milestone Future Release deleted
  • Resolution set to duplicate
  • Status changed from new to closed

This appears to be the same issue as in #46800 (MP3 metadata is encoded in ISO-8859-1 and has characters invalid in UTF-8), the patch there works as expected in my testing. Let's continue the discussion there.

Note: See TracTickets for help on using tickets.