vendors/users can't upload product images

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM – Groups & Staffs vendors/users can't upload product images

Viewing 19 reply threads
  • Author
    Posts
    • #17985
      info17
      Participant

      hi again:)
      i testing now and i see that my vendors/users cant upload images for product..
      i set this feature “on” in main settings and group settings but when i try to upload a image for product as vendor it says i have no permission to upload photo..
      i disable groups etc and test again, and i check all fields and users have permission but is not working.. when i login as admin its ok i can upload.

    • #17987
      WCFM Forum
      Member

      Hi,

      It’s nothing but capability issue.
      Do you have any plugin like user role editor?

      Thank You

    • #17988
      info17
      Participant

      hi again, no i have no user role plugin.
      i allowed upload in group, and in Capability Settings “wcfm-capability” but cant upload.
      if you like i can send u a login to test.

    • #17989
      info17
      Participant

      also not possible to upload a photo for store/and profile ( no permission)

      Attachments:
      You must be logged in to view attached files.
    • #18013
      WCFM Forum
      Member

      Be sure this is a capability issue.
      Are you getting any error when uploading image/media?

    • #18019
      info17
      Participant

      good morning:)
      yes i get an error, you are not allowed to upload images. see printscreen
      i set all permissions “on”

      Attachments:
      You must be logged in to view attached files.
    • #18032
      WCFM Forum
      Member

      Hi,

      Hope you are getting this error only as Vendor and not as Admin.

      Can you please take a try from wp-admin panel for a vendor user and know me are you getting same error or not!

      Thank You

    • #18033
      info17
      Participant

      hi again:)
      yes as admin i have no problems, front and backend ๐Ÿ™‚
      and yes if i go to backend as vendor i can add photo to product, and when i go back to frontend i get the “no permission” when try to uplad a photo
      hope this helps for you.

    • #18035
      WCFM Forum
      Member

      Hi,

      Opps!! If they able to upload from back-end then it’s not capability issue.

      Just one more clarification, is your vendors has more than one user role? e.g vendor and subscriber

      Thank You

    • #18037
      WCFM Forum
      Member

      Hi,

      Do you have “WP User Avatar” plugin installed?

      I just found this – https://www.wcvendors.com/help/topic/error-in-uploading-image-not-allowed/

      Thank You

    • #18038
      WCFM Forum
      Member

      Hi,

      Can you please add this code and know me is this resolve your issue or not!

      function allow_vendors_media_uploads() {
      $vendor_role = get_role(‘seller’);

      // Ensure Vendors Media Upload Capability
      $vendor_role->add_cap(‘edit_posts’);
      $vendor_role->add_cap(‘edit_post’);
      $vendor_role->add_cap(‘edit_others_posts’);
      $vendor_role->add_cap(‘edit_others_pages’);
      $vendor_role->add_cap(‘edit_published_posts’);
      $vendor_role->add_cap(‘edit_published_pages’);
      $vendor_role->add_cap( ‘upload_files’ );
      }
      add_action( ‘init’, ‘allow_vendors_media_uploads’ );

      I am also not 100% sure with this but if it works then will add this in WCFM next update.

      Please know me is this works for you or not!

      Thank You

    • #18039
      info17
      Participant

      hi again, yes i use โ€œWP User Avatarโ€
      i test your code in functions.php but still not working the upload for vendors.
      thanks anyway..

    • #18040
      WCFM Forum
      Member

      Hi,

      Can you please disable “WP User Avatar” once and take a look.

      Thank You

    • #18041
      info17
      Participant

      yep, you are right.. if i disable โ€œWP User Avatarโ€ its working perfect and vendor can upload images..
      hope this helps. lot of people using plugin.
      thank you

    • #18046
      WCFM Forum
      Member

      Ahhh … that will be really helpful for everyone as “WP User Avatar” is a quite popular plugin.

      Let me now looking for the reason behind this and if there is any possible solution.

      I will update you soon on this.

      Thanks for your cooperation.

    • #18047
      info17
      Participant

      nice, no stress on this for me.. if you fix in future update is nice ๐Ÿ™‚
      ( is not your fault this issue) ๐Ÿ™‚

    • #18093
      WCFM Forum
      Member

      Hi,

      WCFM new version has just released, kindly update yours and take a look.

      Please “Save” WCFM capability once before test.

      Please know me is this resolved for you or not!

      Thank You

    • #18094
      info17
      Participant

      good morning, i will test in few minutes. thank you ๐Ÿ™‚

    • #18096
      info17
      Participant

      nice, working perfect now..your the men !!!! ๐Ÿ™‚ thanks a lot for your effort

    • #18110
      WCFM Forum
      Member

      Woow!! Welcome ๐Ÿ˜€
      That’t really cool. A big issue finally resolved and we have no idea of this ever!

Viewing 19 reply threads
  • The topic ‘vendors/users can't upload product images’ is closed to new replies.