Hi @hube2,
What is the other plugin creating the issue? This issue doesn’t mean the error comes from the WP Mail SMTP plugin. Please consider isolating the plugins to find the real conflict. The error might still be there without one another or the plugin needs to check if session already exists. You might still need to contact the other plugin support.
I hope this helps!
This should be extremely simple for you to test.
The other plugin is a plugin that I have created for a client that manages a shopping cart, so I can adjust it if you tell me how not to conflict with your plugnin.
All you need to test is to put this into the function.php file of any site that’s running this plugin:
add_action('init', 'my_session_start');
function my_start_session() {
if (!session_id()) {
session_start();
}
}
This will cause your plugin to produce warnings, and yes, it is the code in this plugin that is producing the errors. I have tried to change the priority of my action and this has had no effect whatsoever. I have tried looking at what the code mentioned above does and tried to figure out “WHEN” it is called, but have been unable to do so.
As far as I know I am starting my session exactly as I should be doing it following WP best practices.
Hi @hube2,
Thanks for the details. I am not able to reproduce the issue you’re describing. Probably, you have something already printed on the page. Also, the name of the function ‘my_start_session’ does not match with ‘my_session_start’.
Thanks!
Hi @hube2 – We haven’t heard from you in about a week, so I’m going to go ahead and mark this ticket resolved. If you still have questions, though, please feel welcome to continue the conversation.
Sorry I didn’t get back to this sooner. Yes, this is resolved here. The session conflict appears to be something else. Still working on trying to figure out what.