v3.78 - general_server_info.php tweak

2 posts by 2 authors in: Forums > CMS Builder
Last Post: July 28, 2025   (RSS)

By runriot - July 11, 2025

Hey,

In /cmsAdmin/lib/menus/general_server_info.php

Line 307:

$dbHaveSSL         = mysql_get_query("SHOW VARIABLES WHERE Variable_name IN ('have_ssl')")['Value']; // Disabled, Yes, No

Can return:

Warning: Trying to access array offset on null

In some infrastructure / networking cases..

I've changed it locally to:

$dbHaveSSLresult = mysql_get_query("SHOW VARIABLES WHERE Variable_name = 'have_ssl'");   

$dbHaveSSL = $dbHaveSSLresult['Value'] ?? null;

to prevent the Warning.

Can it be patched into the next version? :-)

Cheers

By Dave - July 28, 2025

Hi Rob,

Thanks!  We've added a fix for this to the next version.

Appreciate the feedback.

Dave Edis - Senior Developer
interactivetools.com