I'm actually having the same error as tom.a in addition to the lack up an upload field on the new post area.
bbPress plugin browser »
bbPress Attachments (0.1.11)
Download
Version: 0.1.11
Last Updated: 2008-9-4
Requires bbPress Version: 0.9 or higher
Compatible up to: trunk
Average Rating





Your Rating
Author: _ck_
-
Posted: 3 months ago #
-
Are either of you using SVN that it would be easy for you to switch to the 0.9 branch and see if the error persists? Or if you get upload fields on new topics? I see the hooks in the public 0.9.0.2 release so I don't understand why you don't see it.
I tried one more fix on 0.1.1 to get the error to stop. I can't reproduce the problem unfortunately so I'm working blind. Try downloading 0.1.1 one more time and see if it goes away.
I don't see why you'd be changing this part, but make sure your
bb-attachments.phphas the line$bb_attachments['upload_on_new']=true;Posted: 3 months ago # -
Hello,
I had the same problem.
I've just downloaded the SVN version, everything seems to work fine know. Strange...Posted: 3 months ago # -
I just tested it briefly and it appears that the headers being sent twice issue is corrected, however I still don't have the option to upload files when creating a new post.
How does one go about downloading the SVN version?
Posted: 3 months ago # -
It's really strange because I see the hooks (pre_post_form, post_form) necessary to upload on a new post in the 0.9.0.2 version currently posted in the download section here but apparently they are not working for (both of) you.
In theory, replacing these dozen files should make your bbPress the very newest 0.9.0.2-SP1 :
http://trac.bbpress.org/changeset?format=zip&new=1547&old=1491&new_path=branches%2F0.9&old_path=branches%2F0.9
but I don't see any code in there that should be affecting this problem. However it will at least make your version of bbPress virtually identical to what I am running on bbShowcase.orgPosted: 3 months ago # -
@_ck_
Updated from svn 0.9 branch and installed your latest version of the plugin and things appear to be running smoothly now.
Thanks!
Posted: 3 months ago # -
Thanks for the report. That kinda bothers me though, I don't know why it works only in 0.9.0.2-SP1 and not just 0.9.0.2
I'll have to go back and study the SP1 changes again.
Posted: 3 months ago # -
Thanks for this plug-in, ck.
Is there a way to display attached images automatically within the post?
Posted: 3 months ago # -
Displaying images inline is on the to-do list.
Sorry I have not had a lot of time to add features recently.Posted: 3 months ago # -
@ ck
I just updated to SP1 and I still don't see the upload files underneath posting a new topic. Should I just destroy the install I have and give it a go from scratch? I can't for the life of me figure out why it's not showing up in just this one place.
Posted: 3 months ago # -
w3designstudios, are you using a custom theme?
What happens if you temporarily switch back to kakumei?Posted: 3 months ago # -
I actually haven't changed anything on the theme at all. I tried switching between the blue and grey and both have the same results. I've been testing on OSX Safari, Firefox, and Windows IE6/IE7. I may see about shooting you a link via your website or email if I can find one, so that you can take a look just to make sure what I'm expecting to see is indeed not showing.
Posted: 3 months ago # -
Well the other browsers were just to test why the other error was occurring which is apparently solved now.
If you are not seeing the upload form on new posts it's very simple, either the bbPress version you are using doesn't have the hook for some reason or you have the wrong setting inside the plugin.
There are two possible places to make a new post, one is the "add new" off the front page, the other is at the bottom of any forum. I assume you are testing this as admin and checking both places and your
bb-attachments.phphas the line$bb_attachments['upload_on_new']=true;?Posted: 3 months ago # -
Alright, I've got the upload fields on the "Add New" off the hompage, but not on the form at the bottom of each forum.
Am testing as admin and upload_on_new is set to true.
I also deleted all filed, updated to trunk and reinstalled everything.
Posted: 3 months ago # -
Oops! I just noticed that's not at the bottom of each forum for me either - and I could have sworn that was not the case. I need to go and look at the code again, sorry.
update: try 0.1.2 when you see it post here.
Should solve the problem. My sincere apologies.Posted: 3 months ago # -
Beautiful. All is good now! No worries at all, you're developing a free plug-in and I've thrilled that you've been this responsive. All looks good now. Thanks!
Posted: 3 months ago # -
Yes! Boy would I like to use this plugin. I can't make a directory above my web root. So I tried custom paths; but no luck. Any ideas on how I can make this plugin work?
By the way; enjoy your other plugins _ck_ !
Posted: 3 months ago # -
Couple of things:
I'm using bbPress 0.9.2 and bb-attachments 0.1.2.
1) I have one thread that has attachments, both on the first and second page of the thread. Clicking to view the second page of the thread kicks back a PHP error pertaining to line 228 of the bb-attachments.php file.
2) Setting the plugin to allow anyone with read ability to the forum to download the attachments also kicks back a PHP error.
Just a couple of items I wanted to point out. It's a good plugin, so I'm looking forward to seeing it develop.
Posted: 3 months ago # -
@ carlnunes, find around line 48 or so
$bb_attachments['path']=dirname($_SERVER['DOCUMENT_ROOT'])."/bb-attachments/";and change it to
$bb_attachments['path']="/your-path-name/";
remember to chmod 777 your directorybut be warned people will be able to trick direct downloads and/or if they somehow bypass security, in theory upload a php file and execute it off your server (very bad) if it's within the web path
@ stitzelj, I need much more specific error messages, the complete messages (you can remove website or username info but I need more details). Line 228 makes no sense since it should never be executed unless it's processing an upload and you are just viewing. Is the error in case #2 the same line?
Posted: 3 months ago # -
1) My bad: I misread the error message. Here's the actual message for the multiple-page thread with attachments problem:
Warning: Cannot modify header information - headers already sent by (output started at /home/opendial/public_html/comic/forum/my-plugins/bb-attachments/bb-attachments.php:490) in /home/opendial/public_html/comic/forum/bb-includes/pluggable.php on line 228
2) I'm not having the same problem with the read-permission download, but it is still generating a set of errors when a non-registered reader tries to download an attachment:
Warning: Cannot modify header information - headers already sent by (output started at /home/opendial/public_html/comic/forum/my-plugins/bb-attachments/bb-attachments.php:490) in /home/opendial/public_html/comic/forum/my-plugins/bb-attachments/bb-attachments.php on line 355
Warning: Cannot modify header information - headers already sent by (output started at /home/opendial/public_html/comic/forum/my-plugins/bb-attachments/bb-attachments.php:490) in /home/opendial/public_html/comic/forum/my-plugins/bb-attachments/bb-attachments.php on line 356
Warning: Cannot modify header information - headers already sent by (output started at /home/opendial/public_html/comic/forum/my-plugins/bb-attachments/bb-attachments.php:490) in /home/opendial/public_html/comic/forum/my-plugins/bb-attachments/bb-attachments.php on line 357
Warning: Cannot modify header information - headers already sent by (output started at /home/opendial/public_html/comic/forum/my-plugins/bb-attachments/bb-attachments.php:490) in /home/opendial/public_html/comic/forum/my-plugins/bb-attachments/bb-attachments.php on line 358
Warning: Cannot modify header information - headers already sent by (output started at /home/opendial/public_html/comic/forum/my-plugins/bb-attachments/bb-attachments.php:490) in /home/opendial/public_html/comic/forum/my-plugins/bb-attachments/bb-attachments.php on line 359
Warning: Cannot modify header information - headers already sent by (output started at /home/opendial/public_html/comic/forum/my-plugins/bb-attachments/bb-attachments.php:490) in /home/opendial/public_html/comic/forum/my-plugins/bb-attachments/bb-attachments.php on line 360
Posted: 3 months ago #
Add a Comment »
You must log in to post.