• I get a fatal error when saving a WooCommerce product post using latest (5.3.1) plugin version:

    Tech details:

    • PHP 8.1
    • WordPress 6.7.2
    • WooCommerce 9.6.2
    • WordPress Activity Log 5.3.1
    ErrorException: Undefined array key "post_title" in file /my-project/site/web/app/plugins/wp-security-audit-log/classes/WPSensors/class-woocommerce-sensor-helper-second.php on line 1585

    #0 /my-project/site/vendor/roots/acorn/src/Roots/Acorn/Bootstrap/HandleExceptions.php(49): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'Undefined array...', '/Users/user/co...', 1585, Array)
    #1 /my-project/site/web/app/plugins/wp-security-audit-log/classes/WPSensors/class-woocommerce-sensor-helper-second.php(1585): Roots\Acorn\Bootstrap\HandleExceptions->handleError(2, 'Undefined array...', '/Users/user/co...', 1585)
    #2 /my-project/site/web/app/plugins/wp-security-audit-log/classes/WPSensors/class-woocommerce-sensor.php(967): WSAL\WP_Sensors_Helpers\WooCommerce_Sensor_Helper_Second::check_download_limit_change(Array)
    #3 /my-project/site/web/app/plugins/wp-security-audit-log/classes/WPSensors/class-woocommerce-sensor.php(836): WSAL\WP_Sensors\WooCommerce_Sensor::event_changed(Object(WP_Post), true)
    #4 /my-project/site/web/wp/wp-includes/class-wp-hook.php(324): WSAL\WP_Sensors\WooCommerce_Sensor::inline_product_changed(Object(WC_Product_Simple))
    #5 /my-project/site/web/wp/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    #6 /my-project/site/web/wp/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #7 /my-project/site/web/app/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php(426): do_action('woocommerce_adm...', Object(WC_Product_Simple))
    #8 /my-project/site/web/wp/wp-includes/class-wp-hook.php(324): WC_Meta_Box_Product_Data::save(83780, Object(WP_Post))
    #9 /my-project/site/web/wp/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    #10 /my-project/site/web/wp/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #11 /my-project/site/web/app/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php(273): do_action('woocommerce_pro...', 83780, Object(WP_Post))
    #12 /my-project/site/web/wp/wp-includes/class-wp-hook.php(326): WC_Admin_Meta_Boxes->save_meta_boxes(83780, Object(WP_Post))
    #13 /my-project/site/web/wp/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    #14 /my-project/site/web/wp/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #15 /my-project/site/web/wp/wp-includes/post.php(5060): do_action('save_post', 83780, Object(WP_Post), true)
    #16 /my-project/site/web/wp/wp-includes/post.php(5162): wp_insert_post(Array, false, true)
    #17 /my-project/site/web/wp/wp-admin/includes/post.php(453): wp_update_post(Array)
    #18 /my-project/site/web/wp/wp-admin/post.php(227): edit_post()
    #19 {main}
Viewing 1 replies (of 1 total)
  • Plugin Support Lucian Padureanu

    (@lucianwpwhite)

    Hello @blydew,

    I’m really sorry to hear about this issue!

    I’ve attempted to reproduce the error based on the details provided, but so far, I haven’t been able to. To better understand the situation, could you share a few additional details?

    • Could you describe the exact steps that led to this error?
    • Was the product edited via the Quick Edit menu or directly from the Product Page?
    • What specific changes were made before publishing?
    • Does this happen consistently, or was it a one-time occurrence?
    • Are you using any custom builders or WooCommerce plugin extensions for managing products or which can modify Product data defaults in any way?
    • Does it cause a complete site crash, affect WooCommerce functionality, or disrupt other parts of the site?

    The more details you can provide, the better! Looking forward to your reply!

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.