WillyXJ / facileManager

A modular suite of web apps built with the sysadmin in mind.
www.facilemanager.com
GNU General Public License v2.0
84 stars 37 forks source link

Deprecated: preg_replace() #582

Closed sergor75 closed 4 months ago

sergor75 commented 1 year ago

[OTHER]

Ubuntu 22.04.2 fM Version : 4.5.0 fmDNS Version : 5.3.3

When i click zone reload the following message is generated - Deprecated: preg_replace(): Passing null to parameter #2 ($replacement) of type array|string is deprecated in /var/www/html/facileManager/fm-modules/fmDNS/classes/class_zones.php on line 1473

See attaced pics fM_4.5.0_1.png и fM_4.5.0_2.jpg fM_4 5 0_2 fM_4 5 0_1

Also in the apache log, I see entries for each user login

-- /var/log/apache2/error.log

[Wed Jul 05 12:46:36.394528 2023] [php:warn] [pid 38753] [client 10.232.9.86:56393] PHP Warning: Undefined property: fmdb::$last_result in /var/www/html/facileManager/fm-modules/facileManager/classes/class_logins.php on line 265, referer: https://nsmgr.XXX.YYYY.ru/facileManager/server/

sergor75 commented 1 year ago

I forgot to mention that in my settings (config-server-groups ) there is a server group in which there are two master servers and no slave servers

WillyXJ commented 1 year ago

What PHP version are you using?

sergor75 commented 12 months ago

lsb_release -sd

Ubuntu 22.04.2 LTS

php -v

PHP 8.1.2-1ubuntu2.10 (cli) (built: Jan 16 2023 15:19:49) (NTS) Copyright (c) The PHP Group Zend Engine v4.1.2, Copyright (c) Zend Technologies with Zend OPcache v8.1.2-1ubuntu2.10, Copyright (c), by Zend Technologies

WillyXJ commented 4 months ago

This is now fixed in fmDNS 6.0.0, fmFirewall 3.0.0, and fmWifi 0.5.0.