Hi @istok,
Thank you for sharing the details about the issues caused by Anti Malware modifying the WooPayments plugin files, which then led to critical errors, even after reinstalling the plugin.
To help resolve this, here are some steps you can try:
1. Restore Plugin Files: If you have a backup, try restoring the WooPayments plugin files from a clean backup prior to any Anti Malware corrections.
2. Fully Remove & Reinstall:
- Deactivate and delete the WooPayments plugin via your WordPress admin.
- Check via FTP or your file manager that the plugin directory
/wp-content/plugins/woocommerce-payments/ no longer exists.
- Download the latest version fresh from WooCommerce.com and install it manually.
3. If your security plugin or Anti Malware tool is modifying WooPayments files, please add /wp-content/plugins/woocommerce-payments/ to its exclusion or whitelist to prevent automatic changes.
4. Temporarily disable other plugins except WooCommerce and WooPayments. Then switch to a default theme like Twenty Twenty-Three and see if the issue persists. This helps identify conflicts.
5. Enable WordPress debug mode by adding these lines to your wp-config.php:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
Reproduce the error and then check the debug log at /wp-content/debug.log for detailed error messages to share with us if you need further help.
If you can provide any error messages from the log or the exact symptoms you face when the critical error occurs, that would be very helpful.
I hope that helps. Let us know if you need anything else.