-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
Send A Test Email stops working under PHP 7.3 #2523
Comments
I'm voting for a PHP preg bug, but who knows. |
I tested the preg_match here and also found this bug report on PHP website. |
hello, I am using version 1.2.2 from Debian and I have the same problem. I have gone up to 1.2.3 from GIT and I get the same error line: functions.php [3637]: split_emaildetail (), / lib / functions .php [3683]: preg_match (), CactiErrorHandler ()) etc, |
This is a bug in PHP 7.3 and not in Cacti. I would suggest that you open a Debian bug. |
Hello thank you, I have disabled 7.3 to use 7.0 in Apache, Regards! ... |
I'm going to keep this open for others. No need to close for now. |
I will be testing this soon as I'm going to run a 1.3 development server on 7.3 to see what issues I get. |
hi ! I fixed this issue replacing regexp
with
it works on Debian/Sid php7.3 ::: Before replace REGEXP: 2019/04/16 15:02:41 - CMDPHP PHP ERROR WARNING Backtrace: (/settings.php[254]:email_test(), /lib/functions.php[3837]:send_mail(), /lib/functions.php[3263]:mailer(), /lib/functions.php[3418]:parse_email_details(), /lib/functions.php[3637]:split_emaildetail(), /lib/functions.php[3683]:preg_match(), CactiErrorHandler()) ::after 2019/04/16 15:08:39 - MAILER INFO: Mail successfully sent via Función Mail() de PHP from 'emx --- oberon@unixmexico.org', to 'oberon@unixmexico.org', cc '', Subject 'Mensaje de prueba de Cact |
Okay, your corrected syntax is right. |
Works on my side, thanks ! If you want me to close this one, let me know. |
Describe the bug
I'm using cacti 1.2.2.
With PHP 7.1 and 7.2, the test email works perfectly, but as soon as I upgraded it to PHP 7.3 it stopped working ( log section above )
Tried clean installs with PHP 7.1, 7.2 and 7.3, it only failed with PHP 7.3.
( btw, tried all mail services, the results are the same)
To Reproduce
Steps to reproduce the behavior ( with PHP 7.3 ):
Expected behavior
Desktop (please complete the following information):
Additional context
The problem might start somewhere in the function 'parse_email_details', I'll investigate a bit more as well.
The text was updated successfully, but these errors were encountered: