Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#32838 closed defect (bug) (invalid)

HTTP error on upload MP3 files

Reported by: zanzipanzi's profile ZanziPanzi Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Media Keywords:
Focuses: Cc:

Description

In module:

wp-admin\includes\media.php

We have string 2945:

require( ABSPATH . WPINC . '/ID3/getid3.php' );

But we have folder "/Id3/" on default wordpress installation (lower case "d" letter). So xNix servers don't see the folder "/ID3/" (because of case sensetive folder name) and while uploading MP3 files we get "HTTP error" with PHP-error in logs:

[Tue Jun 30 16:25:27 2015] [error] [client 178.150.98.48] PHP Warning:  require(/wp-includes/ID3/getid3.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /wp-admin/includes/media.php on line 3000, referer: /wp-admin/post.php?post=3&action=edit

[Tue Jun 30 16:25:27 2015] [error] [client 178.150.98.48] PHP Fatal error:  require() [<a href='function.require'>function.require</a>]: Failed opening required '/wp-includes/ID3/getid3.php' (include_path='.:/opt/alt/php53/usr/share/pear:/opt/alt/php53/usr/share/php') in /wp-admin/includes/media.php on line 3000, referer: /wp-admin/post.php?post=3&action=edit

Solution:

  1. Rename folder to "ID3"

or

  1. Edit string 2945 in media.php and change folder name to "Id3"

Change History (4)

#1 follow-up: @kraftbj
9 years ago

  • Keywords reporter-feedback added
  • Version 4.2.2 deleted

Hi @ZanziPanzi,

Where are you seeing "Id3" as the folder name? On both the develop and build repos, it is ID3 ( http://core.svn.wordpress.org/trunk/wp-includes/ ) and a fresh download via wordpress.org has it capitalized as well.

#2 in reply to: ↑ 1 ; follow-up: @ZanziPanzi
9 years ago

  • Resolution set to invalid
  • Status changed from new to closed

Replying to kraftbj:

Hi @ZanziPanzi,

Where are you seeing "Id3" as the folder name? On both the develop and build repos, it is ID3 ( http://core.svn.wordpress.org/trunk/wp-includes/ ) and a fresh download via wordpress.org has it capitalized as well.

Hello kraftbj. Just checked archive - you are right, here is folder "ID3" in both archives. When I unrar it with winrar under explorer - all ok, but when I unrar it with winrar under total commander - folder become "Id3"...

Some bug or setup with total commander :(

Sorry and anyway - thank you!

#3 @ocean90
9 years ago

  • Keywords reporter-feedback removed
  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.