• Resolved Ordog

    (@ordog)


    I’ve just upgraded to the latest version of Woocommerce (3.4.1) and since then anyone with a role of ‘Shop Manager’ (a role created by Woocommerce) cannot view the orders page (Woocommerce > Orders) because it throws up a 500 error.

    Things I’ve tested:

    • Administrators can still see this page, just effects ‘Shop Managers’
    • I’ve reset the ‘Shop Managers’ role permissions in Advanced Access Manager – same 500 error
    • I’ve created a new role based on ‘Shop Manager’ role and still get a 500 error
    • I’ve created a new role based on ‘Administrator’ and hid all the menus to match the ‘Shop Manager’ role and this works.
    • If I disable the Advanced Access Manager plugin the ‘Shop Manager’ role works.

    From my testing it seems that Advanced Access Manager is causing an issue with the Woocommerce user role. Can you help with this please?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author AAM Plugin

    (@vasyltech)

    Hi @ordog,

    500 means that you have some sort of fatal error. Please check your PHP error log and let me know what you see there.

    Regards,
    Vasyl

    Thread Starter Ordog

    (@ordog)

    Yep I already looked at that, this was the error:

    PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 72 bytes) in /public_html/wp-content/plugins/advanced-access-manager/Application/Core/Object/Cache.php on line 58

    I unrestricted that user and the error still remains.

    As mentioned this only effects users with the shop manager role and nobody else. Disabling advanced access manager fixes the issue.

    Hope this helps

    Thread Starter Ordog

    (@ordog)

    Sorry for the delay with this.

    I tried all of your suggestions @vasyltech but in the end it was @lamary who fixed it for me.

    on “Content Settings” I have disabled “Check Post Visibility”

    Thanks for the help both of you ??

    Plugin Author AAM Plugin

    (@vasyltech)

    Hi @ordog,

    Thank you for the update. Yes, by disabling “Check Post Visibility” you turn off the ability to use LIST or LIST TO OTHERS options. This is the most resource consuming feature as it forces AAM literally check access to each post one-by-one and if you have a lot of posts, it might slow down a website or even crash it if memory is limited (in you case you have 128M memory limit).

    This was known issue with AAM and I’ve been trying to find solutions for it for a long time and finally was able to find one. The latest AAM 5.3.2 release has an experimental solution for this problem.

    Keep me updated if something.

    Regards,
    Vasyl

    Thread Starter Ordog

    (@ordog)

    Thanks @vasyl for the explanation, I understand.

    On the site we have 1,000’s of posts so understandably it will slow it down if it is checking each one individually.

    I will test the new experimental feature when I get some free time but for the time being everything is working and this isn’t a feature that is needed.

    Many thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Causing 500 error in Woocommerce’ is closed to new replies.