It's not a bug, it's a feature.
There's no easy way to simply add an attachment to a non-existent post.
I may try to tackle the problem someday with some kind of temporary storage but it won't be anytime soon.
It's not a bug, it's a feature.
There's no easy way to simply add an attachment to a non-existent post.
I may try to tackle the problem someday with some kind of temporary storage but it won't be anytime soon.
UPDATE: I did find the error, thanks to firebug extension.
The form type (enctype=multipart form data) was not set in the form tag of the page. I don't know from where this strange error crept in. But anyways, thanks.
Thanks for the reply.
It seems I was not clear enough. Sorry.
Actually, file uploads aren't working on my site even with complete configuration.
And I'm running the latest trunk of bbpress.
When I upload an attachment, either via clicking upload button or the send post button. It doesn't get uploaded at all. and neither do I see any error of failed upload.
I'm running on Linux. Can this be a problem? (I don't hope so, btw).
heres the debug link. http://solar.mridkash.com/forums/?bb_attachments_debug
Please help me. Thanks
EDIT: I found that it doesn't even try to upload the file. very strange!
I ran live http headers and it showed no file entry, and the bb-attachments variable was set to 0.
Here's the headers;
http://solar.mridkash.com/forums/bb-post.php
POST /forums/bb-post.php HTTP/1.1
Host: solar.mridkash.com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.5) Gecko/2008121621 Ubuntu/8.04 (hardy) Firefox/3.0.5
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://solar.mridkash.com/forums/topic/test-topic?replies=6
Content-Type: application/x-www-form-urlencoded
Content-Length: 230
post_content=this+is+a+post.&_wpnonce=4f3f727063&_wp_http_referer=%2Fforums%2Ftopic%2Ftest-topic%3Freplies%3D6&topic_id=8&bb_attachments=0&MAX_FILE_SIZE=10485760&bb_attachments%5B%5D=80148-1.jpg&bb_attachments%5B%5D=&upload=Upload
Oh sorry I completely missed your actual problem.
I think I read it too quickly.
The multipart is done via a very tricky and nasty hack for default templates. There is no natural way to do it in bbPress unfortunately.
If you customized your templates somehow, it's possible my hack doesn't work, so you never get the multipart.
Actually, your templates don't look that customized.
What version are you running, maybe the newest alpha are breaking it.
yes, it is the alpha version. Version 1.0-alpha-6
I didn't customize the default theme, just changed the width params in css to match my site.
Also, which file do I edit to add the enctype attribute to the form?
Maybe, I shouldn't have run the alpha version on my site. You might have seen the big red message on top of site, it was due to a plugin (add users) going awry!
Yes I always strongly advise people not to run the alphas on a live site.
However you are not going to be able to downgrade now, it's impossible because it changes the database.
Let me see if there's anything easy I can do to fix it.
I'm aware of the risk of running testing version of softwares. But, I'm just starting off the site, so by the time I gain readership, hopefully the software will get better.
Thanks for your time and effort. The functionality that is causing errors isn't much critical to the site, so take your time. I'd like to see a complete fix to the problem rather than just another 'nasty hack'.
I'm a web dev, so please do tell me where I can help.
Regards
Okay I have fixed it in 0.2.5 which will be on bbpress.org shortly.
RSS feed for this topic