Problems when using PHPmailer
-
Hey. Great plugin, but I came across a little problem today.
I have my own plugin that uses PHPmailer and naturally declares that class.
That causes Cerber to throw:PHP Fatal error: Cannot declare class PHPMailer\PHPMailer\PHPMailer, because the name is already in use in /<path-to-file>/PHPMailer.php on line xx
and even worse not do what it says / should do.Since my plugin is loaded before Cerber (name starts with an A), there is not really anything I can do on my side, right? Not sure if loading it with another classname would work?
So maybe Cerber could check for the existance of the class or try{} – or offer an option to use the instance that is already declared?
The topic ‘Problems when using PHPmailer’ is closed to new replies.