• Resolved Matt Ryan

    (@rynonet)


    Manually updating a Woo order from Pending to Completed. My site crashes on hitting “Update”. If WPSAL deactivated, order updates as expected.

    Error message details:

    An error of type E_ERROR was caused in line 871 of the file /var/www/capwebsolutions.com/htdocs/wp-content/plugins/wp-security-audit-log/classes/WPSensors/class-wp-content-sensor.php.

    Error message: Uncaught TypeError: WSAL\WP_Sensors\WP_Content_Sensor::fire_lock_change(): Argument #1 ($post_id) must be of type int, string given, called in /var/www/capwebsolutions.com/htdocs/wp-content/plugins/wp-security-audit-log/classes/WPSensors/class-wp-content-sensor.php on line 855 and defined in /var/www/capwebsolutions.com/htdocs/wp-content/plugins/wp-security-audit-log/classes/WPSensors/class-wp-content-sensor.php:871

    Stack trace:
    0 /var/www/capwebsolutions.com/htdocs/wp-content/plugins/wp-security-audit-log/classes/WPSensors/class-wp-content-sensor.php(855): WSAL\WP_Sensors\WP_Content_Sensor::fire_lock_change()
    1 /var/www/capwebsolutions.com/htdocs/wp-includes/class-wp-hook.php(324): WSAL\WP_Sensors\WP_Content_Sensor::before_changing_meta()
    2 /var/www/capwebsolutions.com/htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    3 /var/www/capwebsolutions.com/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action()
    4 /var/www/capwebsolutions.com/htdocs/wp-includes/meta.php(941): do_action()
    5 /var/www/capwebsolutions.com/htdocs/wp-admin/includes/post.php(1116): update_metadata_by_mid()
    6 /var/www/capwebsolutions.com/htdocs/wp-admin/includes/post.php(394): update_meta()
    7 /var/www/capwebsolutions.com/htdocs/wp-admin/post.php(227): edit_post()
    8 {main}

    Plugin v 4.6.1
    PHP 8.2
    Woo 8.4.0
    WP 6.4.2

    I can work around it by deactivating WPSAL to update the orders.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support robertabela

    (@robert681)

    Thank you for using our plugin Matt. I am sorry to read about your issue.

    After looking at the error, this should not be an issue when using update 4.6.2 of the plugin, which is the latest update.

    Can you please update the plugin and advise if the issue persists? If it does persist, can you please send us the System Information file (from the plugin’s Help & Contact Us section via email at [email protected]? Please do not share such file on these forums because it contains technical information about your setup.

    Looking forward to hearing from you.

    Thread Starter Matt Ryan

    (@rynonet)

    Hi Folks,

    Excellent work. Update to latest version fixed the issue. Missed that latest update.

    Be well. Happy New Year

    Plugin Support robertabela

    (@robert681)

    I am glad to read that Matt.

    Please do not forget to spare a minute to rate our plugin and support. These ratings are really helpful.

    Have a great weekend.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Manual Woo Order Update WPSAL Generates E_ERROR’ is closed to new replies.