• Resolved williamwps

    (@williamwps)


    Not support with latest version of WooCommerce.

    It’s error with below code when I try to click on edit product in WC.

    Error:

    There has been a critical error on this website. Please check your site admin email inbox for instructions.

    Learn more about troubleshooting WordPress.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter williamwps

    (@williamwps)

    [21-Jun-2022 12:50:20 UTC] PHP Warning: Undefined array key “value” in /bitnami/wordpress/wp-content/plugins/woocommerce/src/Internal/Admin/Settings.php on line 162

    [21-Jun-2022 12:50:22 UTC] PHP Fatal error: Uncaught TypeError: array_intersect_key(): Argument #1 ($array) must be of type array, string given in /bitnami/wordpress/wp-content/plugins/capability-manager-enhanced/includes/features/restrict-editor-features.php:232

    Stack trace:
    #0 /bitnami/wordpress/wp-content/plugins/capability-manager-enhanced/includes/features/restrict-editor-features.php(232): array_intersect_key()

    #1 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(307): PP_Capabilities_Post_Features::applyRestrictionsClassic()
    #2 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
    #3 /opt/bitnami/wordpress/wp-includes/plugin.php(476): WP_Hook->do_action()
    #4 /opt/bitnami/wordpress/wp-admin/admin-header.php(163): do_action()
    #5 /opt/bitnami/wordpress/wp-admin/edit-form-advanced.php(425): require_once('...')
    #6 /opt/bitnami/wordpress/wp-admin/post.php(206): require('...')
    #7 {main}
      thrown in /bitnami/wordpress/wp-content/plugins/capability-manager-enhanced/includes/features/restrict-editor-features.php on line 232
    • This reply was modified 2 years, 9 months ago by williamwps.
    Plugin Author Steve Burge

    (@stevejburge)

    Hi @williamwps

    Thanks for reporting this.

    I’m not able to see the issue in our testing. But I did see you also sent an error message. Is this correct?

    PHP Fatal error: Uncaught TypeError: array_intersect_key(): Argument #1 ($array) must be of type array, string given in /bitnami/wordpress/wp-content/plugins/capability-manager-enhanced/includes/features/restrict-editor-features.php:232

    Thread Starter williamwps

    (@williamwps)

    PHP Fatal error: Uncaught TypeError: array_intersect_key(): Argument #1 ($array) must be of type array, string given in /bitnami/wordpress/wp-content/plugins/capability-manager-enhanced/includes/features/restrict-editor-features.php:232

    Yes correct, I try to get this log for you easy to understand.

    I remove PublishPress Capabilities then re-install then it error with Woocommerce on product edit and when I click on each products it cause error.

    Thread Starter williamwps

    (@williamwps)

    #1 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(307): PP_Capabilities_Post_Features::applyRestrictionsClassic()
    #2 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
    #3 /opt/bitnami/wordpress/wp-includes/plugin.php(476): WP_Hook->do_action()
    #4 /opt/bitnami/wordpress/wp-admin/admin-header.php(163): do_action()
    #5 /opt/bitnami/wordpress/wp-admin/edit-form-advanced.php(425): require_once(‘…’)
    #6 /opt/bitnami/wordpress/wp-admin/post.php(206): require(‘…’)
    #7 {main}
    thrown in /bitnami/wordpress/wp-content/plugins/capability-manager-enhanced/includes/features/restrict-editor-features.php on line 232

    Plugin Author Olawale Adesina

    (@olatechpro)

    Hi @williamwps, thanks for providing the requested information.

    Kindly be informed this is not a conflict with woocommerce latest version as earlier suggested but an option key returning unexpected data.

    The issue has been noted and will be fix in the next update but before then, you can get a quick fix so everything could be back to normal by deleting “capsman_feature_restrict_classic_product” in wp_option table as it contain invalid data or alternatively, simply go to Editor features via ‘/wp-admin/admin.php?page=pp-capabilities-editor-features’ and update the settings for affected roles.

    Regards.

    Thread Starter williamwps

    (@williamwps)

    Hello @olatechpro,

    Thank so much for quick help.

    Before fix quick story:

    I populate error in my dev environment and delete all user and role and just reinstall Capabilities plugin then try to click on some product in Woocommerce it got error, not yet apply any role with use, it mean even admin account got error.

    Quick solution:

    As your advice to delete capsman_feature_restrict_classic_product in wp_option table it’s work normal now without do anything or to update role ‘/wp-admin/admin.php?page=pp-capabilities-editor-features’

    Thanks,

    Thread Starter williamwps

    (@williamwps)

    One more, it working by doing this for only Woocomemerce product but now same error for Elementor when I click on edit page with elementor page builder but if disable your plug in it work normal.

    What solution?

    I’m using wordpress v6 and latest woocommerce version.

    Plugin Author Olawale Adesina

    (@olatechpro)

    Hi @williamwps we’ve added consideration for issue reported and made a fix which will be available in the next release but before the, download the version that contain the fix in the link below pending the time we’ll make a release.

    https://drive.google.com/file/d/17y4ygkUsUVW8CBdARMZapcJtljN9Jzr2/view?usp=sharing

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Not support for Woocommerce latest version’ is closed to new replies.