News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

"8: mail(): Hooking into mysql_connect" error

Started by a10, December 05, 2023, 03:56:52 PM

Previous topic - Next topic

a10

The last few days am seeing these errors, nothing done on the forum.
2.0.19 (php 8.0.30, ftm supported by host). Something from server or host?
Seemingly at each mail send. Mail is sent and arrives at recipients.


Examples:

Apply Filter: Only show the error messages of this URL
https://www.*/forum/index.php?scheduled=mailq;ts=1701808946
Apply Filter: Only show the errors with the same message
8: mail(): Hooking into mysql_connect
Apply Filter: Only show the errors from this file
File: /customers/*t/httpd.www/forum/Sources/ScheduledTasks.php
Line: 1010

Line 1010:    
$result = mail(strtr($email['to'], array("\r" => '', "\n" => '')), $email['subject'], $email['body'], $email['headers']);

-------------

Apply Filter: Only show the error messages of this URL
https://www.*/forum/index.php?action=admin;area=viewmembers;sa=approve;type=approve
Apply Filter: Only show the errors with the same message
8: mail(): Hooking into mysql_connect
Apply Filter: Only show the errors from this file
File: /customers/*/httpd.www/forum/Sources/Subs-Post.php
Line: 768

Line 768:    
if (!mail(strtr($to, array("\r" => '', "\n" => '')), $subject, $message, $headers))
2.0.19, php 8.0.30, MariaDB 10.6.18. Mods: Contact Page, Like Posts, Responsive Curve, Search Focus Dropdown, Add Join Date to Post.
Stand with 🇺🇦

Doug Heffernan

Quote from: a10 on December 05, 2023, 03:56:52 PMThe last few days am seeing these errors, nothing done on the forum.
2.0.19 (php 8.0.30, ftm supported by host). Something from server or host?
Seemingly at each mail send. Mail is sent and arrives at recipients.


Examples:

Apply Filter: Only show the error messages of this URL
https://www.*/forum/index.php?scheduled=mailq;ts=1701808946
Apply Filter: Only show the errors with the same message
8: mail(): Hooking into mysql_connect
Apply Filter: Only show the errors from this file
File: /customers/*t/httpd.www/forum/Sources/ScheduledTasks.php
Line: 1010

Line 1010:    
$result = mail(strtr($email['to'], array("\r" => '', "\n" => '')), $email['subject'], $email['body'], $email['headers']);

-------------

Apply Filter: Only show the error messages of this URL
https://www.*/forum/index.php?action=admin;area=viewmembers;sa=approve;type=approve
Apply Filter: Only show the errors with the same message
8: mail(): Hooking into mysql_connect
Apply Filter: Only show the errors from this file
File: /customers/*/httpd.www/forum/Sources/Subs-Post.php
Line: 768

Line 768:    
if (!mail(strtr($to, array("\r" => '', "\n" => '')), $subject, $message, $headers))

mysql_connect() function has been removed in PHP 7.0.0. Are you sure that you are using php 8?

https://www.php.net/manual/en/function.mysql-connect.php


a10

^^^ Mystery... 8.0.30 in both phpinfo & smf, has not changed for a very long time.

Mail PHP default, has worked wo errors\problems 'since the beginning of times'.

Can't see any forum problems, just those mail-triggered log entries appearing out of thin air. Nothing touched regarding forum setup\files.
 
2.0.19, php 8.0.30, MariaDB 10.6.18. Mods: Contact Page, Like Posts, Responsive Curve, Search Focus Dropdown, Add Join Date to Post.
Stand with 🇺🇦


shawnb61

I'd also look in phpinfo to confirm mysqli is available.

2.0 will try to run the very old mysql php adapter if the mysqli adapter is unavailable. 
A question worth asking is born in experience & driven by necessity. - Fripp

a10

Quote from: Doug Heffernan on December 06, 2023, 08:34:46 AMWhat mods do you hae installed?
Listed in my signature

Quote from: shawnb61 on December 06, 2023, 09:42:15 AMI'd also look in phpinfo to confirm mysqli is available.
There's a mysqli dept. in phpinfo.
Examples:
Client API library version mysqlnd 8.0.30 mysqlnd 8.0.30
mysqli.allow_local_infile Off Off
mysqli.allow_persistent   On On
mysqli.default_host no value no value
mysqli.default_port 3306 3306
etc
2.0.19, php 8.0.30, MariaDB 10.6.18. Mods: Contact Page, Like Posts, Responsive Curve, Search Focus Dropdown, Add Join Date to Post.
Stand with 🇺🇦

a10

And just as it appeared, the mail-triggered mysql_connect thing suddenly vanished from error log !?
Email fine, like before, under and after those error entries.

ftm marking solved, the malevolent ghost must have left the server (after the host performed a special php excorsism).
2.0.19, php 8.0.30, MariaDB 10.6.18. Mods: Contact Page, Like Posts, Responsive Curve, Search Focus Dropdown, Add Join Date to Post.
Stand with 🇺🇦

Advertisement: