Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mp3 Upload Failure - ownCloud 4.5.7 and PostgreSQL 9.2.3 #2100

Closed
DPStokes opened this issue Mar 5, 2013 · 1 comment
Closed

mp3 Upload Failure - ownCloud 4.5.7 and PostgreSQL 9.2.3 #2100

DPStokes opened this issue Mar 5, 2013 · 1 comment

Comments

@DPStokes
Copy link

DPStokes commented Mar 5, 2013

I have just created a clean installation of ownCloud 4.5.7 (from tarball) with PostgreSQL 9.2.3 on Fedora 18 with Apache 2.4.3 and PHP 5.4.11 (PHP added as edit).

I am unable to upload mp3 files and the following error (cleansed to protect the innocent) is displayed in the Apache error log:
[Tue Mar 05 13:15:40.052830 2013] [:error] [pid 10562] [client xxx.xxxx.xxx.203:57945] PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: "\x06"' in /xxxxxx/owncloud-4.5.7/lib/db.php:745
Stack trace:
#0 /xxxxxx/owncloud-4.5.7/lib/db.php(745): PDOStatement->execute(Array)
#1 /xxxxxx/owncloud-4.5.7/apps/media/lib_collection.php(289): PDOStatementWrapper->execute(Array)
#2 /xxxxxx/owncloud-4.5.7/apps/media/lib_scanner.php(125): OC_MEDIA_COLLECTION::addSong('Who Wants to Li...', '/Song.mp3', 1, 1, 317, '?', 5078014)
#3 /xxxxxx/owncloud-4.5.7/apps/media/lib_media.php(55): OC_MEDIA_SCANNER::scanFile('/Song.mp3')
#4 [internal function]: OC_MEDIA::updateFile(Array)
#5 /xxxxxx/owncloud-4.5.7/lib/hook.php(62): call_user_func(Array, Array)
#6 /xxxxxx/owncloud-4.5.7/lib/filesystemview.php(306): OC_Hook::emit('OC_Filesystem', 'post_write', Array)
#7 /xxxxxx/owncloud-4.5.7/lib/filesystemview.php(534): OC_FilesystemView->file_put_contents('/Song.mp3', Reso in /xxxxxx/owncloud-4.5.7/lib/db.php on line 745, referer: https://xxxxxx.xxxxxx.xxx/owncloud/?app=files

Image files upload fine as do wav files (although wav files don't display in the Music tab).

@DPStokes DPStokes closed this as completed Mar 5, 2013
@DPStokes
Copy link
Author

DPStokes commented Mar 5, 2013

Ignore.... set PHP value post_max_size (perviously only 256K) to match upload_max_filesize

@lock lock bot locked as resolved and limited conversation to collaborators Aug 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant