You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I made some tests.
It seems that some arrays are not initialised in variables.inc.php both in the main and in modules.
I tied to correct this by putting something like
if (!@is_array($__FM_CONFIG['logging']['categories'])) $__FM_CONFIG['logging']['categories'] = array();
both in sort() and array_merge() functions.
I have to delete the cookies to get the prompt again, but when I log in I get a blank page with lòo errors in the logs
I got a bit further myself, thanks to a quick note from @gianlucagiacometti , I moved the array declaration to the top of the file. Had to add another declaration in another file, and had to disable strict mode for mysqli with notes found in here: https://php.watch/versions/8.1/mysqli-error-mode. I am not sure if there are cleaner ways to handle these changes.
This is now the new error I am getting, and am too tired to go further. Maybe someone else can tag-team a fix.
My changes below.
[01-Sep-2022 00:04:49 America/Chicago] PHP Fatal error: Uncaught TypeError: mysqli_free_result(): Argument #1 ($result) must be of type mysqli_result, array given in /opt/dnsadmin/fm-modules/facileManager/classes/class_logins.php:313
Stack trace:
#0 /opt/dnsadmin/fm-modules/facileManager/classes/class_logins.php(313): mysqli_free_result()
#1 /opt/dnsadmin/fm-init.php(132): fm_login->checkPassword()
#2 /opt/dnsadmin/index.php(38): require('...')
#3 {main}
thrown in /opt/dnsadmin/fm-modules/facileManager/classes/class_logins.php on line 313
Signed up just to comment. I recently ran into the same issue(s) after upgrading Ubuntu. I am not a php guru, but here are the changes I made that get things back to a somewhat usable state, and fixed some warnings.
I tried downgrading my PHP version to 7.4.33 but still i am getting this issue:
[Sat Dec 24 20:12:40.903743 2022] [proxy_fcgi:error] [pid 9290] [client 10.35.35.16:52315] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught TypeError: sort(): Argument #1 ($array) must be of type array, null given in /var/www/html/dnsadmin/fm-modules/facileManager/variables.inc.php:109\nStack trace:\n#0 /var/www/html/dnsadmin/fm-modules/facileManager/variables.inc.php(109): sort()\n#1 /var/www/html/dnsadmin/fm-modules/facileManager/functions.php(71): include('...')\n#2 /var/www/html/dnsadmin/fm-includes/init.php(30): require_once('...')\n#3 /var/www/html/dnsadmin/fm-install.php(47): require_once('...')\n#4 {main}\n thrown in /var/www/html/dnsadmin/fm-modules/facileManager/variables.inc.php on line 109'
Just hit this problem by upgrading to the latest FreeBSD Ports quarterly branch... since I have zero competence on PHP and programming in general, the only way I guess can contribute with is to sponsor the work of someone. If anyone is interested, you can contact me directly via email. Thanks!
Thank you so much @WillyXJ , I just tried the prerelease in a test lab and the first actions (login, server config rebuild) went OK.
Unfortunately, a problem raised when I tried to modify a zone (changing or adding a RR). It stopped with this output when I click "validate":
Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /usr/local/www/apache24/data/demo/facilemanager/fm-modules/fmDNS/pages/zone-records-validate.php:136 Stack trace: #0 /usr/local/www/apache24/data/demo/facilemanager/fm-modules/fmDNS/pages/zone-records-validate.php(69): createOutput() #1 /usr/local/www/apache24/data/demo/facilemanager/index.php(57): include('...') #2 {main} thrown in /usr/local/www/apache24/data/demo/facilemanager/fm-modules/fmDNS/pages/zone-records-validate.php on line 136
It returns another error when trying to add a new forward zone:
Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /usr/local/www/apache24/data/demo/facilemanager/fm-modules/fmDNS/classes/class_records.php:564 Stack trace: #0 /usr/local/www/apache24/data/demo/facilemanager/fm-modules/fmDNS/classes/class_records.php(564): in_array() #1 /usr/local/www/apache24/data/demo/facilemanager/fm-modules/fmDNS/classes/class_records.php(43): fm_dns_records->getInputForm() #2 /usr/local/www/apache24/data/demo/facilemanager/fm-modules/fmDNS/pages/zone-records.php(180): fm_dns_records->rows() #3 /usr/local/www/apache24/data/demo/facilemanager/index.php(57): include('...') #4 {main} thrown in /usr/local/www/apache24/data/demo/facilemanager/fm-modules/fmDNS/classes/class_records.php on line 564
Sorry, only today I get the chance to try your latest commits. Creating, modifying and deleting forward zones and resource records is OK now: thanks @WillyXJ !
I'll try to test it more in the following days, but as for now it looks like good for production to me (I'm running PHP 8.0).
Activity
[-]Software not working with PHP 8.1[/-][+][ISSUE] Software not working with PHP 8.1[/+]gianlucagiacometti commentedon Jul 1, 2022
I made some tests.
It seems that some arrays are not initialised in variables.inc.php both in the main and in modules.
I tied to correct this by putting something like
if (!@is_array($__FM_CONFIG['logging']['categories'])) $__FM_CONFIG['logging']['categories'] = array();both in sort() and array_merge() functions.
I have to delete the cookies to get the prompt again, but when I log in I get a blank page with lòo errors in the logs
drdelaney commentedon Sep 1, 2022
I got a bit further myself, thanks to a quick note from @gianlucagiacometti , I moved the array declaration to the top of the file. Had to add another declaration in another file, and had to disable strict mode for mysqli with notes found in here: https://php.watch/versions/8.1/mysqli-error-mode. I am not sure if there are cleaner ways to handle these changes.
This is now the new error I am getting, and am too tired to go further. Maybe someone else can tag-team a fix.
My changes below.
The changes I made so far are:
the-mighty-manotaur commentedon Sep 24, 2022
Signed up just to comment. I recently ran into the same issue(s) after upgrading Ubuntu. I am not a php guru, but here are the changes I made that get things back to a somewhat usable state, and fixed some warnings.
sidantaa commentedon Dec 24, 2022
Hi @gianlucagiacometti,
I tried downgrading my PHP version to 7.4.33 but still i am getting this issue:
[Sat Dec 24 20:12:40.903743 2022] [proxy_fcgi:error] [pid 9290] [client 10.35.35.16:52315] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught TypeError: sort(): Argument #1 ($array) must be of type array, null given in /var/www/html/dnsadmin/fm-modules/facileManager/variables.inc.php:109\nStack trace:\n#0 /var/www/html/dnsadmin/fm-modules/facileManager/variables.inc.php(109): sort()\n#1 /var/www/html/dnsadmin/fm-modules/facileManager/functions.php(71): include('...')\n#2 /var/www/html/dnsadmin/fm-includes/init.php(30): require_once('...')\n#3 /var/www/html/dnsadmin/fm-install.php(47): require_once('...')\n#4 {main}\n thrown in /var/www/html/dnsadmin/fm-modules/facileManager/variables.inc.php on line 109'
andrewhotlab commentedon Jan 27, 2023
Just hit this problem by upgrading to the latest FreeBSD Ports quarterly branch... since I have zero competence on PHP and programming in general, the only way I guess can contribute with is to sponsor the work of someone. If anyone is interested, you can contact me directly via email. Thanks!
All - #558 - Added PHP 8.2 support
WillyXJ commentedon Feb 10, 2023
Commit added to the master-prerelease-bugfixes branch for PHP 8.2 support. Use at your own risk or wait until it's included in an official release.
andrewhotlab commentedon Feb 14, 2023
Thank you so much @WillyXJ , I just tried the prerelease in a test lab and the first actions (login, server config rebuild) went OK.
Unfortunately, a problem raised when I tried to modify a zone (changing or adding a RR). It stopped with this output when I click "validate":
It returns another error when trying to add a new forward zone:
Thanks for giving us and maintain facileManager!
gianlucagiacometti commentedon Feb 15, 2023
Thank you @WillyXJ
@sidantaa , I downgraded to 7.4.33, too, and everything went fine with no changing in the released code
fM - #558 - More PHP 8.2 fixes
fmDNS - #558 - More PHP 8 fixes
WillyXJ commentedon Feb 15, 2023
Additional commits have been added to https://github.com/WillyXJ/facileManager/compare/master-prerelease-bugfixes containing more PHP 8 fixes as all modules and functionality is getting regression-tested.
#558 - PHP8 fixes
andrewhotlab commentedon Feb 24, 2023
Sorry, only today I get the chance to try your latest commits. Creating, modifying and deleting forward zones and resource records is OK now: thanks @WillyXJ !
I'll try to test it more in the following days, but as for now it looks like good for production to me (I'm running PHP 8.0).
WillyXJ commentedon Mar 10, 2023
This is now supported in fM 4.4.0 and later.