WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#29382 closed defect (bug) (invalid)

Unable to import media or attach media.

Reported by: kstrassman Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.9.2
Component: Media Keywords: close
Focuses: Cc:

Description

Hello,

I am currently working with wordpress to create an e-commerce store. it appears that whenever I try to upload an image or attach an image the popup window will time out or fail to load.

I have tried DE-activating all of the plugins but I was still unlucky. I made sure that all of my plugins were up to date as well but still no luck.

I have attached some screenshots with the hopes that i can find some help or help others,
Thanks!

Import Media Page
http://i.imgur.com/gOejZIo.png
just sits there like this for a long time ( I believe I left it open in another tab for over an hour)

import new media
http://imgur.com/49AfHAl.png

Attach to post
http://imgur.com/6LlYw6r.png
will load the error right away.

Change History (8)

#1 @Ipstenu
5 years ago

  • Keywords close added
  • Resolution set to invalid
  • Status changed from new to closed

I'm sorry you're having this issue, but it's probably not an actual bug with WP, but one with your server/system.

Please make a post in the WordPress support forums: http://wordpress.org/support

#2 follow-up: @qdinar
5 years ago

  • Resolution invalid deleted
  • Status changed from closed to reopened

i approve this bug for wp 3.8.1.
i have seen the second form/view: http://i.imgur.com/49AfHAl.png .
it works , uploads for admin but do not work for any other role. and this happens on the page that is outside of /wp-admin/ with "wp_editor( $postdata->post_content, 'contentarea', $args );" . when same user with enough rights opens http://neteryaika.ru/wp-admin/post-new.php upload works (ie not only for admin).

#3 follow-ups: @Ipstenu
5 years ago

  • Resolution set to invalid
  • Status changed from reopened to closed

qdinar - You also need to post in the forums if you need help with this, but if it was a widespread error as of 3.8.x then we'd really know, and the odds are really against this being a CORE bug.

and this happens on the page that is outside of /wp-admin/

Well... THAT sounds like a plugin having an issue. By default, you can't upload outside wp-admin.

#4 in reply to: ↑ 2 @SergeyBiryukov
5 years ago

Replying to qdinar:

it works , uploads for admin but do not work for any other role.

Related: #19817, #19834.

#5 @SergeyBiryukov
5 years ago

  • Component changed from General to Media

#6 @SergeyBiryukov
5 years ago

  • Milestone Awaiting Review deleted

#7 in reply to: ↑ 3 @qdinar
5 years ago

Replying to SergeyBiryukov:

Related: #19817, #19834.

it is about edit_posts right. it is true.

adding following rights has helped.
edit_others_posts
edit_private_posts
edit_others_pages
edit_private_pages
edit_pages
edit_published_pages

also commenting out following lines helped:
wp admin / includes / ajax actions php - line 1650 / function wp_ajax_upload_attachment :

if ( ! current_user_can( 'edit_post', $post_id ) )
wp_die();

#8 in reply to: ↑ 3 @qdinar
5 years ago

Replying to Ipstenu:

Well... THAT sounds like a plugin having an issue. By default, you can't upload outside wp-admin.

what do you mean by saying "by default" ? i had understood it as wp core does not allow it outside wp-admin anybody except admin ... , if any theme or plugin tries to use that. but now i have discovered this is not so , because after adding some rights to user it started to work (even outside wp-admin and with non-admin user). it is another bug , #19817 , but in my case i see that probably there is another error in code is implicated , because with some set of rights it works while uploader window is opened inside wp-admin and does not work when it is in a front page .
if you meant that wp with default themes does not have editor outside wp-admin , i do not think that it is not core bug (just because of that), because wp should work/behave correctly with different plugins and themes.

Note: See TracTickets for help on using tickets.