forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 upload => Topic started by: SquireRob on April 20, 2010, 07:22:59 am

Title: Problem Uploading .wav, .zip, .mp3
Post by: SquireRob on April 20, 2010, 07:22:59 am
Hi, I get this in the debug for any of the subject filetypes. Pics work just fine:

<b>Fatal error</b>:  Call to undefined function mb_strlen() in <b>/home/cuerecordings/cpg153/include/functions.inc.php</b> on line <b>6260</b><br />

This is using with or without flash option. Batch uploads are just fine. Gallery at www.cuerecordings.com
Title: Re: Problem Uploading .wav, .zip, .mp3
Post by: Joachim Müller on April 20, 2010, 07:34:46 am
Title: Re: Problem Uploading .wav, .zip, .mp3
Post by: SquireRob on April 20, 2010, 08:08:57 am
Joachim,
Thanks for quick reply.

I have:

Linux eServer 2.6.30.10-105.2.23.fc11.x86_64 #1 SMP Thu Feb 11 07:06:34 UTC 2010 x86_64

PHP Version 5.2.13

Hope this helps

Robin
Title: Re: Problem Uploading .wav, .zip, .mp3
Post by: phill104 on April 20, 2010, 08:36:24 am
Please read and do everything outlined in the docs Joachim linked to.
Title: Re: Problem Uploading .wav, .zip, .mp3
Post by: Joachim Müller on April 20, 2010, 08:38:31 am
OK, so this answers the first question; sounds hard to believe though, as the function mb_strlen() (http://www.php.net/manual/de/function.mb-strlen.php) is part of PHP5 and I can see no reason why a webhost should disable that function. What about the second part of my question
Upload troubleshooting -> Asking for support on upload issues (http://documentation.coppermine-gallery.net/en/upload_troubleshooting.htm#upload_support)
Title: Re: Problem Uploading .wav, .zip, .mp3
Post by: SquireRob on April 20, 2010, 09:04:30 am
Sorry guys, did not try to ignore instructions, hopefully you have what you need now. Login as test and pswrd test and there is an album called test with a jpg uploaded into it. I tried a large mp3 and got the error. If I need to enable a php function then please let me know what it is, many thanks.
Title: Re: Problem Uploading .wav, .zip, .mp3
Post by: Joachim Müller on April 20, 2010, 09:34:35 am
A test user account is so much more usefull if you have an URL where one can enter that test user account. When clicking on the link you posted in your initial posting all I get is
Quote
Website coming soon please go to our myspace and/or facebook for all information.
(see attached screenshot). Behaving difficult usually makes supporters reluctant to look into your issues.
Taking a second look at the error message you posted, your gallery URL probably is http://www.cuerecordings.com/cpg153/
Regular http uploads work as expected (see http://www.cuerecordings.com/cpg153/displayimage.php?pid=5)
Uploading some of the files you report issues with (mp3, wav, zip) works as expected as well, so I guess you're just uploading files that are too big for http uploads (you run into timeouts). Do as suggested per documentation and use FTP uploads plus batch-add to upload larger files.
Title: Re: Problem Uploading .wav, .zip, .mp3
Post by: SquireRob on April 20, 2010, 09:54:29 am
Joachim,
Thanks for replying and you guessed right for the URL, apologies for that. Ok, that was how I got the files there eventually so we will continue on with that method, thanks again.
Title: Re: Problem Uploading .wav, .zip, .mp3
Post by: Joachim Müller on April 20, 2010, 10:19:34 am
Title: Re: Problem Uploading .wav, .zip, .mp3
Post by: SquireRob on April 20, 2010, 11:39:09 am
Joachim,
I kept going with this and as suggested, for the benefit of others, this has all to do with the php.ini settings, specifically:

post_max_size
upload_max_filesize

I changed these to suite and bounced my web server and away we go.