Home Forums WC Vendors Free Support Upload Permission Issues on Variations

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #8045
    Drew
    Participant

    I have tried disabling all plugins except for the woocommerce and wcvendors but the issue continues.

    The issue we seem to be experiencing has to do with vendors being able to attach images to their products. Media can be added to the description areas but if you try to set a featured image, the gallery or add an image to a variation you’re presented with a “You don’t have permission to attach files to this post.”

    I’ve checked the vendor role and it does have access to upload files. I’m not seeing anything in logs. Any guidance as far as where I can look next to work through this?

    #8047
    WC Vendors Support
    Participant

    Hi Drew,

    All of the Vendor Permissions should be as you see them here:

    https://github.com/wcvendors/wcvendors/blob/master/classes/class-install.php

    on line #66.

    I tested this on our development server with the latest Woo & WC and am able to add product images and featured images no problem.

    Cheers

    Ben

    #8048
    Drew
    Participant

    Thanks. Crosschecked with results below. These are all set to true:
    read, upload_files, assign_product_terms, delete_products, delete_published_products, edit_products, edit_published_products, manage_product, publish_products, read_products

    The only difference is the report access. I did toggle this for the sake of curiosity but no dice.

    Before I start stepping through code do you know if there’s a separate authentication flow happening when uploading an image through the “add media” button and the insert image in the variation editor?

    #8049
    Drew
    Participant

    Something else interesting that does hint at a plugin conflict, which I think we all assumed anyway.

    When the modal for the media selector/uploader shows, there is another modal sitting behind it. The one underneath has a slightly different UI with the button CTA ‘Set variation image’.

    Again, no idea if there is any relevance there but I know any sort of detail can help surface or eliminate the underlining issue. Hope this triggers a thought from someone.

    #8056
    WC Vendors Support
    Participant

    Aah. You are correct. Tested, confirmed it is indeed a bug. I’ve added a GitHub issue to start tracking this bug:

    https://github.com/wcvendors/wcvendors/issues/194

    Only seems to be a specific problem on variation images through the meta box specifically for variations. Most likely something related to how Woo handles Variations since v2.4.x as they were recently changed.

    Thanks very much!

    Ben

    #8057
    Drew
    Participant

    No problem at all.

    Next question, any thought on when this might be resolved? We’re in the beginning stages of our beta program and trying to onboard vendors. I’ve sent out a workaround for them for the time being.

    Thanks in advance!

    #8058
    WC Vendors Support
    Participant

    Just finished digging around to figure out the issue. Install User Role Editor, and assign the “edit_product” capability and update the role. That will allow the uploader to work on variations.

    Note: We already allow the “edit_products” capability. Keep it. You’re adding the singular version, “edit_product” to fix the issue.

    Cheers,

    Ben

    #8059
    Drew
    Participant

    Sweet! Thanks for the info.

    #51788
    Reginaldo Mauro
    Participant

    Hello! Good day. I’m using WC Vendors on the wordpress Rehub theme. When a seller includes a product, he can not send the images. The class-install.php file is configured as per the attachments. Can you help me? Thank you so much.

    #51928
    Anna
    Member

    @reginaldomauro
    Things to try:
    1. go to: wp admin > woocommerce > system status > tools and RESET WC Vendors Roles

    2. If that does not help, please install the REALLY SIMPLE SSL plugin to resolve any SSL discrepancies throughout your site.

    3. Try deactivating all plugins except woocommerce, wc vendors and wc vendors pro to see if there is a plugin conflict.

Viewing 10 posts - 1 through 10 (of 10 total)
  • The forum ‘WC Vendors Free Support’ is closed to new topics and replies.