How do I access the attachments once uploaded?

This topic contains 39 replies, has 10 voices, and was last updated by  MillaN 1 year, 6 months ago.

Viewing 20 posts - 21 through 40 (of 40 total)
Author Posts
Author Posts
October 11, 2011 at 10:38 #10186

MillaN

I said before, upload is handled by WordPress, plugin is not having own upload code that is different from that. If you have limits in place with WordPress media library and upload, they will be used here also.

So far for most people upload not working was actually working but they tried to upload file bigger than allowed or something like that.

If you have an error log that can help, please upload it here. Otherwise, you will need to wait for the next version that will have upload logging.

October 15, 2011 at 04:07 #10410

bizwizkid

I’ve been trying everything I can and by changing the ‘New Default User Role’ in the /settings/general’ section of the WP panel to ‘Subscriber’… even for an existing bbp user… I’m now able to upload attachments.

I’ve tried many things and believe this is what triggered the fix as I had it set to ‘Forum Participant’ and could not get anything to upload.

Hope this helps narrow things down.

October 15, 2011 at 09:57 #10411

MillaN

Thanks. User roles can be the problem if not set right, that’s why plugin has options to select roles that are allowed to upload.

November 1, 2011 at 18:40 #10861

dnalgar

Any idea why the uploaded file does not inherit the parent folders’ security permissions? We’re getting the ubiquitous (and meaningless) “500 – Internal server error.” error message when clicking on the file icon. Once we tweak security at a parent folder level and the security settings cascade down to the uploaded file, everything is OK, but not until then. This is a Windows 2008 VM running IIS.

November 1, 2011 at 19:28 #10862

MillaN

Attachments are handled by WordPress not the plugin. So, same rules apply for files upload with plugin as with the WordPress. Also, 500 is not meaningless, it says that there is an error and that error is logged into server error log. Get the log, and we can try to find out what is going on. But if your changes to folder security are working, than your access to upload folder is not set right. If it is not working for this plugin, it will not work for WordPress.

November 1, 2011 at 20:38 #10868

dnalgar

You are right. We discovered that the same problem exists when uploaded directly from the “Media Library” section. Seems to be a common Windows/IIS, but the solution is uncommonly elusive. Thanks for writing back.

November 2, 2011 at 03:11 #10869

MillaN

Yes, IIS can be a bit stubborn to be set up properly with things like this.

November 7, 2011 at 17:17 #11019

woolffan

I have just installed this plugin and had this same upload issue but then discovered I could attach on “new” topics and replys only and not on the “Edits” of topics and replys. I am using Admin account. This can’t be by design because the offer to attach is displayed on the edit forms. Appreciate any help you can give.

November 7, 2011 at 21:52 #11043

MillaN

Edit form is not supported yet. This is on the plans list for 1.3 version, hopefully to be released in about week or two.

November 11, 2011 at 22:31 #11231

shift

I’m having the same troubles everyone else is claiming. I’m trying to upload as the Administrator. So I don’t see how my problem could be a permissions/user role issue. No file is uploaded on new topics or replies. I can, however, upload a file from the WP admin and thus, shows up as an attachment on the topic. But that defeats the purpose. The file I’m uploading is a simply jpg that is 10k in size.

A few observations here between your forum here and the plugin by default, running on a default Twenty-Ten theme or Twenty-Eleven theme.

On the upload form below, clicking “add another file” adds the 2nd, 3rd, 4th input. By default on my setup, the javascript for this doesn’t work. It simply #’s the url and doesn’t add the additional fields. In the plugin settings, I have js and css both checked and saved. I have the “Maximum files to upload” set to 4. So it should so more than that.

So I suspect that if the javascript portion isn’t working right out of the box, then something else must be going on to where it’s not just “install and activate the plugin and it’s ready to go”.

November 12, 2011 at 02:42 #11250

MillaN

Plugin doesn’t require anything special to work. What you need in WordPress to make upload of images work (Media Library), is used here. When file needs to be uploaded with this plugin, it will use WordPress media library. If your media library in WP is not working, this plugin will not work also. Usually, media library uploads files in wp-content/uploads folder.

November 13, 2011 at 03:33 #11254

shift

The Media Library works just fine every site I’ve tested this on. The plugin just doesn’t upload anything. I’m able to upload images from the WP-admin side with no problem. The images just don’t upload from the attachment input in the forum (the plugin).

And again as I mentioned, the javascript to “add another file” doesn’t work. The attachment upload and javascript on this site may work, but it doesn’t work “by default” on any other theme, such as Twenty-Ten or Twenty-Eleven. By saying that you can make yours work is fine, but doens’t solve the problem of everyone else. How about testing it yourself on a brand new install of WordPress, with the Twenty-Ten theme and the same plugin that you can download from the WP plugin site. Basically, testing it the same way the rest of us have to work with it.

Sorry for the tone here, but just think it needs further testing that matches a scenario that the rest of the world would use. The plugin’s concept is top-notch, just needs more QA.

November 13, 2011 at 09:47 #11255

MillaN

If it is not working for you, there must be a reason. And that usually means error on the server side or client side. Add another file not working points to JavaScript error. So, get me that error (Firebug or something similar) and I will see what the problem is. Not uploading files, can point to an error on the server side, and that also should be in the server error log.

And than again, it might be only that you try to upload something that is not allow or falls outside the limits of file size set for the plugin or extensions allowed by the WordPress.

November 13, 2011 at 19:19 #11280

shift

Thanks for your patience Millan. Your assistance is greatly appreciated. I do again want to say that the concept of this plugin is fantastic. That’s why I want it to work for me so much.

Here is what I’ve found .. which maybe you can answer on.

In a brand new install of WordPress and the BBP 2 plugin (Your plugin is not installed yet); Upon page load, Firebug displays an error stating: ajaxurl is not defined

When I remove the BBPress 2 plugin, the error goes away.

Now, when I view your site here with Firebug, you’re not getting the “ajaxurl is not defined” error. Is there something set up in your theme to fix this error?

So I’m suspecting that maybe something about that error with the BBPress plugin itself that is keeping your plugin for working correctly, since it shows up on a brand new install of everything (without your plugin being installed).

Also, I’m not seeing anything show up in the server logs. I’m also trying to upload a 7kb jpg file as the admin user.

November 13, 2011 at 19:41 #11281

shift

Hey Milan .. I figured out what the trouble is. I got the plugin working in the Twenty-Eleven theme. But here is what the problem is. By default, the Twenty-Ten and Twenty-Eleven theme, does not init the jQuery library at all.

So my mistake for thinking WordPress would have jQuery in their themes by default. HAHA! So in short, your plugin has a prerequisite of jQuery in order to work. I wouldn’t have caught this on any of my themes as I always use jQuery.

But again, you have created a fantastic plugin here Millan. Thanks for providing this to the community!

November 13, 2011 at 19:46 #11282

MillaN

I have some 15 demo installations of bbPress with different themes and plugins, and I have zero issues with it. Something in your case is breaking it, and same thing maybe is causing problems with upload. ajaxurl is required for bbPress for ajax calls to work, and I am sure that bbPress attempts to add that. If it is missing, something is causing that. I can’t help you much with that anyway. But, once you get all that to work, my plugin should be working. As I said, on very different setups I have no problems.

And I can’t reproduce upload problems you have. So far there were 3-4 reports about upload problems, and all of them were related to plugin settings limits or with problems with upload in WordPress.

In anycase, next version will have error logging to see why upload fails.

November 13, 2011 at 21:01 #11291

shift

Well no, like I mentioned, I got it working. The only problem was that the Twenty-Ten and Twenty-Eleven themes do not have jQuery installed in them. All I had to do was add https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js to header.php. After that, the plugin was able to upload and everything works great!

November 13, 2011 at 22:12 #11299

MillaN

There you go, problem solved. I will add FAQ entry for users that might also experience issues with missing jQuery.

November 22, 2011 at 13:17 #11530

tosteri

I had similar problems as people writing to this thread. Mainly that files seemed not to be uploading at all and the message was displayed, but not the attachments. After several tests and trial/errors to see where the problem lied, I seemed to find a solution. Just as a note, I am not a seasoned WP user.

First of, what I thought was the plugin not working correctly, were restrictions set by the Media Library. As I first tested with random files with very random filetypes and received NO error messages, I thought that the plugin was not functioning. After several tests, I found out that you have to comply with the filetypes allowed by the Media Library and the file size set by the plugin. At first, this issue was hard to locate, as there were no error messages describing why my files would not upload. So no error message if the filetype or filesize are wrong. Simple google-search allowed me to add more filetypes to the list of allowed filetypes.

Secondly (and this is an actual case of plugin not functioning correctly) I had my forum set up on a WP page using bbPress shortcode ““. This helped me to easily set up the appearance of my forum page to my liking. By using this shortcode, it effectively stopped the attach functionality and also the “add new file” button stopped working. I could not attach files to topics, but I could do that in replies, as I had not shortcoded the topics pages. So here the solution was just to stop using the shortcoded page and refer to the actual forum page.

So hopefully this message helps some people trying to figure out the same problems I had. I would like to see the plugin work on the shortcoded forum page also, as it would be a lot easier to modify the front page.

November 23, 2011 at 09:58 #11542

MillaN

Thanks for your post. I will be including some of these things into FAQ for the plugin, and most importantly, next version (1.3) will have error logging to see why the upload failed when it does.

Viewing 20 posts - 21 through 40 (of 40 total)

You must be logged in to reply to this topic.

  • Support Activity

    Our support team is currently online and active. During this period, we will respond to all your questions or bug reports very quickly. Details at Support Policy page.
  • Read Before Posting

    Before posting new question or bug report for any product, please check the Frequently asked questions for it and then the forums. Solved questions will be removed without notice.
  • Useful Tutorials

    Some of the common issues are resolved in tutorials. Check them out before posting:

Follow us on Twitter

Search Topics

Latest activity topics

Date Archives