Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

WooCommerce 4.6.1 Bug Shop_manager [woocommerce_rest_cannot_view error] #5745

Closed
roykho opened this issue Nov 25, 2020 · 26 comments
Closed

WooCommerce 4.6.1 Bug Shop_manager [woocommerce_rest_cannot_view error] #5745

roykho opened this issue Nov 25, 2020 · 26 comments
Assignees
Labels
priority: high The issue/PR is high priority—it affects lots of customers substantially, but not critically. type: bug The issue is a confirmed bug.

Comments

@roykho
Copy link
Member

roykho commented Nov 25, 2020

@bambootb commented on Sat Oct 24 2020

Already post this issue to Wordpress.org support:
https://wordpress.org/support/topic/woocommerce_rest_cannot_view-error-with-woocommerce-to-4-6-1/#post-13575114

Step to replicate:

  1. Log into a user with role “shop manager”
  2. go to order page or any WooCommerce page
    for example: [yoursite]/wp-admin/edit.php?post_type=shop_order
  3. open inspector tools, then there will show the errors

Please see the screenshot attached:
https://monosnap.com/file/SqYYcIK0cTMDVRldLHliv6ZmGLLf32

Best,
T


@bambootb commented on Tue Oct 27 2020

Any update regarding to the issue? @mikejolley @claudiosanches


@juliaamosova commented on Thu Oct 29 2020

Hi @bambootb,

Thank you for taking the time to report this bug, we really appreciate your help. I can reproduce it on my end.

shop_manager

I think this is rather a high priority issue and something we should fix soonish. However, whoever is going to work on it, feel free to argue.


@bambootb commented on Sat Nov 07 2020

@juliaamosova
Is there any update regarding to the issue.

Thanks,
T


@roykho commented on Wed Nov 25 2020

This is specifically related to WC Admin so I am moving it there.

@adrianduffell adrianduffell added the priority: high The issue/PR is high priority—it affects lots of customers substantially, but not critically. label Nov 30, 2020
@hsingyuc
Copy link
Contributor

hsingyuc commented Apr 8, 2021

I can't reproduce this issue on main but can reproduce it on an older version of WooCommerce Admin. These PR #6577 and #6365 may have fixed the issue.

@dlackovic2
Copy link

I am still experiencing the same issue on latest WooCommerce 5.8.0. Also, user with shop manager role can't make any use of WooCommerce Home dashboard overview (site.com/wp-admin/admin.php?page=wc-admin) because it never loads properly from this errors.

@Uhtredtb
Copy link

Can anyone please take it seriously about this issue??

@vitaminkdesign
Copy link

I've just updated to 5.8.0 and have the same issue. Apart from the error in the console it also appear to be preventing shop mangers from creating virtual / downloadable products (the options on product admin are missing)

@dlackovic2
Copy link

I've just updated to 5.8.0 and have the same issue. Apart from the error in the console it also appear to be preventing shop mangers from creating virtual / downloadable products (the options on product admin are missing)

I can normally create virtual/downloadable product and all options appear when creating new item when I am using user with shop manager role. But, there are also errors in console as in every other WooCommerce dashboard page when using this role. Something is obviously very wrong with that role.

@foosantos
Copy link
Member

@bambootb @vitaminkdesign @dlackovic2 Can you confirm if that works for you if you have the WooCommerce Admin plugin activated on your WordPress installation?

@dlackovic2
Copy link

@bambootb @vitaminkdesign @dlackovic2 Can you confirm if that works for you if you have the WooCommerce Admin plugin activated on your WordPress installation?

I can confirm that having installed and activated WooCommerce Admin plugin doesn't fix the issue for me.

@vitaminkdesign
Copy link

@bambootb @vitaminkdesign @dlackovic2 Can you confirm if that works for you if you have the WooCommerce Admin plugin activated on your WordPress installation?

I've installed and activated the admin plugin and the issue remains for me too.

@Uhtredtb
Copy link

@bambootb @vitaminkdesign @dlackovic2 Can you confirm if that works for you if you have the WooCommerce Admin plugin activated on your WordPress installation?

Same as me here the issue still remains.

@alexflorisca
Copy link
Member

@bambootb @vitaminkdesign @dlackovic2 @felipelousantos any update on when this is likely to get resolved? There is a support ticket related to this that I'm following up on.

@delacruzdesign
Copy link

Fix problem with add capabilty "manage_options" to shop_manager rol.

$role->add_cap( 'manage_options', true );

@dlackovic2
Copy link

Fix problem with add capabilty "manage_options" to shop_manager rol.

$role->add_cap( 'manage_options', true );

I wouldn't call that really a fix. I don't want to add this user this high capability as it is not required for sure.

@delacruzdesign
Copy link

I know it. But this solves the problem of continuous 403 errors.

Also although it is not 100% safe, I use Adminize Plugin. If someone tries to access these areas through the url, Adminize does not allow it.

As long as you use secure passwords for your Store Managers, there should be no problems.

I think it is a solution simply as a preventive measure, until it is corrected. But this problem has been around for a long time and it doesn't seem to be solved.

@ilyasfoo
Copy link
Contributor

I was able to reproduce this in WooCommerce 6.1.1. I think we should fix it soon.

@ilyasfoo ilyasfoo added type: bug The issue is a confirmed bug. cooldown period and removed Needs triage labels Jan 24, 2022
@chihsuan
Copy link
Member

chihsuan commented Feb 9, 2022

Interesting...I was not able to reproduce this with WooCommerce 6.2.0. 🤔

Screen Shot 2022-02-09 at 16 15 46

@dlackovic2
Copy link

I can also confirm that in latest update 6.2.0. I am no longer having this issue. Strange that this wasn't mentioned in change log. Or maybe it was but I couldn't identify this bugfix.

@chihsuan
Copy link
Member

@dlackovic2 Thanks for confirming! I also couldn't find the related change logs.

@roykho It would be great if you can also check this on your site.

I'll close this issue soon if no one is still encountering this with 6.2.0. 🙂

@chihsuan chihsuan self-assigned this Feb 10, 2022
@roykho
Copy link
Member Author

roykho commented Feb 10, 2022

@chihsuan - so this wasn't my report. I just moved the issue here. So I would say if you can't replicate it in latest, go ahead and close it. Perhaps test this back to back with version 6.1.1 of Woo core and see if indeed this is the case.

@chihsuan
Copy link
Member

so this wasn't my report. I just moved the issue here. So I would say if you can't replicate it in latest, go ahead and close it.

@roykho Ah, I didn't notice that. Okay, I'm going to close this. Thanks for the reply!

@dlackovic2
Copy link

@chihsuan It appears that bug wasn't completely fixed unfortunately.
When I visit WC Home (/wp-admin/admin.php?page=wc-admin) as user with shop_manager role I am still getting those errors as you can see in screenshot.
Snimka zaslona 2022-02-11 010223
Not critical as orders and products (which are working fine now), but still there shouldn't be insufficient permissions.

@chihsuan
Copy link
Member

@dlackovic2 We will release woocommerce-admin v3.2.0 soon. Can you try it then and get back to us? I found it's actually the latest WCA fixes this issue. Thanks!

@dlackovic2
Copy link

Sure @chihsuan, will let you know :)

@dlackovic2
Copy link

@dlackovic2 We will release woocommerce-admin v3.2.0 soon. Can you try it then and get back to us? I found it's actually the latest WCA fixes this issue. Thanks!

@chihsuan Just letting you know that I tried woocommerce-admin v3.2.0 and it appears that it finally fixes all those issues I was getting. 👍

@chihsuan
Copy link
Member

@dlackovic2 Awesome. Thanks for letting me know! 😄

@ant0nioli
Copy link

Hi, I'm using the Woocommerce Product Vendors official extension:

and I'm getting these errors when I am logged in as users having one of the followings extension's roles:

  • wc_product_vendors_admin_vendor
  • wc_product_vendors_manager_vendor

The errors shows upp in the Admin's Products List View.

Thank you.

@chihsuan
Copy link
Member

Hi @ant0nioli Thanks for reporting this. It seems that it's an issue with "Woocommerce Product Vendors". Could you contact WooCommerce support or fill a new issue here?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
priority: high The issue/PR is high priority—it affects lots of customers substantially, but not critically. type: bug The issue is a confirmed bug.
Projects
None yet
Development

No branches or pull requests