wp_mail() already declared error | WP 5.8.1 | Redux 4.3.0
-
Error reported by Postman SMTP:
Postman: wp_mail has been declared by another plugin or theme, so you won't be able to use Postman until the conflict is resolved. More info that may help - /website-folder/public/wp-includes/pluggable.php:182
As suggested in the other threads, commenting out
class-redux-functions-ex.php:587
seems to fix the issue.As we understand it, loading
pluggable.php
early can cause these issues – it should only be loaded after all other plugins have loaded to avoid exactly this type of issue, as it’s intended to provide default functions that are not provided for by other plugins. If it’s loaded too early, it fills these functions – and since PHP doesn’t technically allow for function redeclaration, every other plugin that provides them after this moment will fail to work.We have tested this extensively both on our staging and live sites – the problem only exists (reproducible) when Redux is active. No other plugin causes this issue.
WordPress v5.8.1
Redux v4.3.0
- The topic ‘wp_mail() already declared error | WP 5.8.1 | Redux 4.3.0’ is closed to new replies.