In the link I sent (notes.html):
Upgrading php-5.4 to >php-7.1 (remi) on CentOS 7 causes QMT web
failures, fixes below. In file /usr/share/toaster/htdocs/mrtg/index.php
(mrtg) lines 23-25 from: eregi($vettore[0] . "(.*)" . $vettore[1] ,
$contents, $buffer); $buffer = ereg_replace("SRC=\"",
"src=\"/stats-toaster/?file=", $buffer[1] ) ; $buffer =
ereg_replace("<HR>", "", $buffer ); to: preg_match("#" . $vettore[0] .
"(.*)" . $vettore[1] . "#s", $contents, $buffer); $buffer =
preg_replace("/SRC=\"/", "src=\"/stats-toaster/?file=", $buffer[1] ) ;
$buffer = preg_replace("/<HR>/", "", $buffer ); In file vi
/usr/share/toaster/include/admin.inc.php (admin-toaster) lines 15 and 16
from: $contents = ereg_replace("\n", "", $contents ) ; $contents =
ereg_replace("\r", "", $contents ) ; to: $contents = preg_replace("\n",
"", $contents ) ; $contents = preg_replace("\r", "", $contents ) ;
On 7/3/2019 10:24 PM, Tahnan Al Anas wrote:
this is latest installation, would you kindly share which file to
change or where to replace?
--
--
Best Regards
Muhammad Tahnan Al Anas
On Thu, Jul 4, 2019 at 3:53 AM Eric Broch <[email protected]
<mailto:[email protected]>> wrote:
https://www.qmailtoaster.org/notes.html
On 7/3/2019 11:26 AM, Jaime Lerner wrote:
ereg_replace has been deprecated. You must have a newer version
of PHP installed.
I'm sure Eric has a more recent version of that particular file
you can replace yours with, but it's an easy fix to use
preg_replace instead of ereg_replace.
From: Tahnan Al Anas <[email protected] <mailto:[email protected]>>
Reply-To: <[email protected]
<mailto:[email protected]>>
Date: Wednesday, July 3, 2019 at 1:12 PM
To: <[email protected]
<mailto:[email protected]>>
Subject: [qmailtoaster] update regarding admin-toaster
Hi Eric,
httpd error log showing following
[Wed Jul 03 23:10:47.285678 2019] [php7:error] [pid 10446]
[client 103.220.205.67:14181 <http://103.220.205.67:14181>] PHP
Fatal error: Uncaught Error: Call to undefined function
ereg_replace() in
/usr/share/toaster/include/admin.inc.php:15\nStack trace:\n#0
/usr/share/toaster/include/admin.inc.php(39):
read_file('/usr/share/toas...')\n#1
/usr/share/toaster/include/admin.inc.php(59):
verify_old_password(NULL)\n#2
/usr/share/toaster/include/admin.inc.php(94):
change_admin_password(NULL, NULL, NULL)\n#3
/usr/share/toaster/htdocs/admin/index.php(79):
print_change_passwd(NULL, NULL, NULL)\n#4 {main}\n thrown in
/usr/share/toaster/include/admin.inc.php on line 15
--
--
Best Regards
Muhammad Tahnan Al Anas