#32838 closed defect (bug) (invalid)
HTTP error on upload MP3 files
Reported by: | 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:
- Rename folder to "ID3"
or
- Edit string 2945 in media.php and change folder name to "Id3"
Change History (4)
#2
in reply to:
↑ 1
;
follow-up:
↓ 4
@
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!
#4
in reply to:
↑ 2
@
9 years ago
Related: comment:14:ticket:21183
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.