WebsiteBaker Community Forum

WebsiteBaker Support (2.13.x) => General Help & Support => Topic started by: CodeALot on January 17, 2025, 10:02:34 AM

Title: FIX for error in Filepermissions in module SYSINFO
Post by: CodeALot on January 17, 2025, 10:02:34 AM
Check line 157 in /modules/sysinfo/funcs/permissions.php

Original line:
Code: [Select]
$str =(array_key_exists(octdec($t),$ts))?$ts[octdec($t)]{0}:'u';
Corrected line for PHP 8.3.x:
Code: [Select]
$str = (array_key_exists(octdec($t), $ts)) ? $ts[octdec($t)][0] : 'u';
Title: Re: FIX for error in Filepermissions in module SYSINFO
Post by: dbs on January 17, 2025, 10:21:32 AM
This is v0.4.1 right?
Had this fixed for me in
0.4.2 - 02.Apr.2021
  - fixed curly braces message in permission.php

Ruud, its time for an update.   ;D
Title: Re: FIX for error in Filepermissions in module SYSINFO
Post by: CodeALot on January 17, 2025, 10:24:52 AM
You're right. The version on Ruud's page is 0.4.1, and that was this fix is for.
Never mind me, sorry to interrupt :)
Title: Re: FIX for error in Filepermissions in module SYSINFO
Post by: sternchen8875 on January 17, 2025, 05:11:24 PM
one more... in modules/sysinfo/funcs/mysqlinfo.php in Ln 23

since PHP 8.1.0:  Calling mysqli_get_client_i nfo() with the mysql argument has been deprecated

Original from v0.4.1
Code: [Select]
$client_info = mysqli_get_client_info($database->DbHandle);
change to
Code: [Select]
$client_info = mysqli_get_client_info();
Title: Re: FIX for error in Filepermissions in module SYSINFO
Post by: dbs on January 17, 2025, 05:56:19 PM
had this done for me in 2023. but not written in the info.php  :(

Seems the WebsiteBaker News tab needs some help:
 
 Failed loading XML
 - Start tag expected, '<' not found