Manual Woo Order Update WPSAL Generates E_ERROR
-
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.2I can work around it by deactivating WPSAL to update the orders.
The page I need help with: [log in to see the link]
- The topic ‘Manual Woo Order Update WPSAL Generates E_ERROR’ is closed to new replies.