-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot declare class PHPMailer\PHPMailer\Exceptions, because the name is already in use in C:\Directory\PHPMailer\src\Exception.php on line 23 #2899
Comments
I have developed a secure php oop based login system. For procedural php, it is working fine, but when i started developing using oop it is struck there. Fix it please!! |
Your comment makes no sense. PHPMailer is a class, and you can't really use it in any way that's not "OOP". From the error message, it looks like you've made a mistake related to namespaces, but I can't tell because you have not shown your code, and you're demanding I fix a problem that you created, and have not provided sufficient information about. |
@SohaibKhaliq there is no code to look at, so no way to find out what you are doing here... With no code to go by; I am totally shooting in the dark in what might be wrong on your end...
Maybe providing some code might help here.... |
When i check for the errors i have this: ParseErrorMessagesyntax error, unexpected 'public' (T_PUBLIC), expecting case (T_CASE) or default (T_DEFAULT) or '}' Error atapp/lib/vendor/phpmailer/phpmailer/src/PHPMailer.php, line: 2850 Backtrace
|
@lindiii your report has nothing to do with this issue. That sounds like either you're running a really old version of PHP, or there are errors in the scripts that are loading PHPMailer. PHPMailer itself will not cause this problem. |
Please check these things before submitting your issue:
SMTPDebug = 2
setphpmailer
, but search first!Problem description
Code to reproduce
Debug output
The text was updated successfully, but these errors were encountered: