Page 1 of 1

php 8 and email piping error

Posted: Tue Nov 21, 2023 3:29 pm
by plc
Hesk 3.4.3
PHP version 8.0.30 (MySQLi)
MySQL version 8.0.35

I just upgraded from php 7.x and now I'm getting an error in the email piping cron job per below.

WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.

Re: php 8 and email piping error

Posted: Tue Nov 21, 2023 6:24 pm
by Klemen
Hesk never sets "MYSQL_OPT_RECONNECT"

I presume this happens only in CLI mode? Most likely, it is an underlying library issue; I would update all the server-side MySQL-related libraries.

Re: php 8 and email piping error

Posted: Tue Nov 21, 2023 6:50 pm
by plc
I'll check with the host. I'm not certain what you mean about CLI mode, this error is being generated by the cron job set in cPanel per the email piping instructions.

Re: php 8 and email piping error

Posted: Tue Nov 21, 2023 7:17 pm
by Klemen
Yes, that's the "CLI" (command line interface) mode of PHP.

I was searching around and most reports of this error were around the same use scenario. Some people reported success when updating MySQL libraries.

You can try adding this to the end of your cron job to see if it makes a difference:

Code: Select all

 >/dev/null 2>&1

Re: php 8 and email piping error

Posted: Tue Nov 21, 2023 10:17 pm
by plc
Yeah I already sent the log to dev/null. Was wondering if there was a way to suppress the error from occuring in the first please.