php 8 and email piping error

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
plc
Posts: 89
Joined: Wed Jun 20, 2012 2:09 pm

php 8 and email piping error

Post 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.
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Re: php 8 and email piping error

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
plc
Posts: 89
Joined: Wed Jun 20, 2012 2:09 pm

Re: php 8 and email piping error

Post 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.
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Re: php 8 and email piping error

Post 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
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
plc
Posts: 89
Joined: Wed Jun 20, 2012 2:09 pm

Re: php 8 and email piping error

Post 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.
Post Reply