Hello,
If you’re encountering the following error:
Cannot declare class WP_Async_Request, because the name is already in use
You can resolve it by updating the content of two specific files in the SecuPress plugin. Follow these steps:
- File 1: Replace the content of the file:
wp-content/plugins/secupress/free/classes/admin/class-secupress-admin-wp-async-request.php
with the content of:
wp-content/plugins/secupress/free/classes/admin/__class-secupress-admin-wp-async-request.php
- File 2: Similarly, replace the content of:
wp-content/plugins/secupress/free/classes/admin/class-secupress-admin-wp-background-process.php
with the content of:
wp-content/plugins/secupress/free/classes/admin/__class-secupress-admin-wp-background-process.php
Once these files are updated, the error should be resolved, and your site should work properly.
I have notified the plugin developers, and there will likely be a proper fix soon if they approve the correction.
Let me know if this works for you!
Hello, thank you for the fix, but this is not correct, by doing this, you go back in time instead of updating the class.
Also, and of course, my bad, I forgot a class_exists -_-‘
v2.3.1 is available now, thank you for your patience
Thank you for your responsiveness !
haaaaaa the shame version numbeeeer
2.3.1.1 available -_-‘
Yes I did the new update and it works.