Skip to content
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

Constant STATE already defined #3

Open
simon-pipe opened this issue Jun 6, 2024 · 5 comments
Open

Constant STATE already defined #3

simon-pipe opened this issue Jun 6, 2024 · 5 comments

Comments

@simon-pipe
Copy link

simon-pipe commented Jun 6, 2024

Hi Giovanni

I have installed your plugin and get the following message. Unfortunately I can't find a solution myself. Thank you if you can help me.

Error
Warning: Constant STATE already defined in /var/www/html/system/workers/mailer.php on line 257

Warning: Constant STATE already defined in /var/www/html/system/workers/mailer.php on line 257

Fatal error: Uncaught TypeError: array_walk_recursive(): Argument #1 ($array) must be of type array, null given in /var/www/html/system/workers/mailer.php:447 Stack trace: #0 /var/www/html/system/workers/mailer.php(447): array_walk_recursive(NULL, Object(Closure)) #1 /var/www/html/system/workers/mailer.php(312): YellowMailer->sanitise(Array) #2 /var/www/html/system/workers/mailer.php(209): YellowMailer->send(Array, false, true) #3 /var/www/html/system/workers/core.php(2933): YellowMailer->onMail('contact', Array, 'Du hast eine Na...') #4 /var/www/html/system/workers/contact.php(105): YellowToolbox->mail('contact', Array, 'Du hast eine Na...') #5 /var/www/html/system/workers/contact.php(49): YellowContact->sendMail() #6 /var/www/html/system/workers/core.php(3227): YellowContact->onParsePageLayout(Object(YellowPage), 'contact') #7 /var/www/html/system/workers/core.php(3187): YellowPage->parsePageLayout('contact') #8 /var/www/html/system/workers/core.php(196): YellowPage->parsePage() #9 /var/www/html/system/workers/core.php(142): YellowCore->sendPage('https', 'XXXX', '', '/contact/', 'content/contact...', true, true) #10 /var/www/html/system/workers/core.php(113): YellowCore->processRequest('https', 'XXXX', '', '/contact/', 'content/contact...', true) #11 /var/www/html/yellow.php(9): YellowCore->request() #12 {main} thrown in /var/www/html/system/workers/mailer.php on line 447

yellow-system.ini:
MailerSender: XXXX
MailerTransport: smtp
MailerSendmailPath: /usr/sbin/sendmail
MailerSmtpServer: in-v3.mailjet.com
MailerSmtpSecurity: ssl
MailerSmtpUsername: XXXX
MailerSmtpPassword: XXXX
MailerAttachmentDirectory: media/attachments/

@GiovanniSalmeri
Copy link
Owner

Thank you very much, I will look into this problem as soon as possible.

@GiovanniSalmeri
Copy link
Owner

I have updated the extension, could you try with this new version? Thank you very much!

@simon-pipe
Copy link
Author

The mistake is gone. Thank you very much for the quick answer.

Now there's something wrong with my configuration.

Serverfehler
Etwas ist schief gelaufen. Nachricht konnte nicht versandt werden, versuche es später erneut!

@simon-pipe
Copy link
Author

I can't get the plugin to work. I always get the following error message:

error Mailer: ["headers"]["from"]: Ungültige E-Mail Adresse

But I have set up the same settings for SMTP including port on other devices and there you go. Could it be that the plugin has another error?

I have already checked the Sendmail path.

@GiovanniSalmeri
Copy link
Owner

I will check he plugin as soon as possible. Sorry for the trouble!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants