CMSB v3.60 *BETA 2* - Enhanced Server Management & Error Tracking

7 posts by 3 authors in: Forums > CMS Builder
Last Post: July 12, 2023   (RSS)

By Dave - July 7, 2023 - edited: July 10, 2023

Hi everyone, 

BETA 2 Update! We've now released Beta 2, thanks to everyone for your feedback so far.  Please post any further comments on this thread.

We're pleased to announce the arrival of v3.60 Beta 1. This release brings significant improvements to server management and error detection. Here are the key highlights:

  • Admin > General > Server Info (Admin Panel): Our upgraded Server Info section now offers more details about your server, including server IP, the user PHP is running as, and many more details for a faster diagnosis when potential issues come up.

  • Admin > General > Recent Changes (Admin Panel): This feature tracks all recent server changes, including updates to the Content Delivery Network, Operating System, Server Name, Server IP, Web Server, Control Panel, Database Server, Database Details, PHP Version, PHP User, and CMS Version. This feature aims to help you identify when external factors might have caused problems or are affecting your system's performance.

  • Filepath Report (Developer Log): A new addition that groups errors by filepath, highlighting the affected lines. This streamlines your workflow, reducing the need to wade through all the errors.

  • Enhanced Error Reporting (Developer Log): We have refined error reporting to display more relevant information. You will now see fewer irrelevant details and more useful data such as the filepath and line numbers of the website specific code associated with the issues.

Here's the complete changelog:

*** July 7, 2023 - Version 3.60 (Enhanced Server Management & Error Tracking)

SERVER REQUIREMENTS
- This software version REQUIRES: PHP 8.0+ and MySQL 5.5+

NEW FEATURES
- Server Info: "Admin > General > Server" now show some additional details about the current server
- Server Changes: "Admin > General > Server" now shows change history for server components (PHP, etc)
- Developer Log: New "Filepath Report" groups errors by filepath for easier debugging
- Developer Log: Improved detection of source filepath and line num of errors

BUG FIXES
- Error reporting: Fixed issue where @ silenced variables will still returning errors
- Default Data Files: Updated defaults to: ENGINE=InnoDB CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- mysql_escape now properly escapes backslashes ("\") so they match in searches
- Misc Code and other minor improvements.

You can download the latest beta here:  https://www.interactivetools.com/order/download.php

Please post any feedback, questions, or bugs you find! 

Thanks! :) 

Dave Edis - Senior Developer
interactivetools.com

CMSB v3.60 Beta 1 - Enhanced Server Management & Error Tracking

By Deborah - July 7, 2023

Hey, Dave. Glad to see the new beta!

I uploaded v3.60 Beta 1 over v3.59 Beta and the admin.php page is unstyled and showing an error.

The page HTML ends here with:
Call to undefined function shell_exec()in /home/tstbdgweb/public_html/cmsbeta/lib/serverInfo_functions.php on line 159. Fatal error: Uncaught Error: Call to undefined function shell_exec() in /home/tstbdgweb/public_html/cmsbeta/lib/serverInfo_functions.php:159Stack trace:#0 /home/tstbdgweb/public_html/cmsbeta/lib/serverInfo_functions.php(24): serverInfo_serverName()#1 [internal function]: updateServerChangeLog()#2 {main} thrown in /home/tstbdgweb/public_html/cmsbeta/lib/serverInfo_functions.php on line 159

---------------------

CMSB Error Log:

Backtrace:
Error: Call to undefined function shell_exec()
at serverInfo_serverName [serverInfo_functions.php:159]
at __serverInfo_operatingSystem [general.php:874]
at _getContent [general.php:667]
at ob_capture [common.php:407]
at include [general.php:22]
at showInterface [admin_functions.php:393]
at admin_dispatchAction [actionHandler.php:27]
at include [actionHandler.php:20]
at _redirectForCustomMenus [actionHandler.php:147]
at include [actionHandler.php:31]
at (main) [admin.php:46]

---

Raw Log Data:
Array
(
[logType] => exception
[errno] => UNCAUGHT_EXCEPTION
[errstr] => Call to undefined function shell_exec()
[errfile] => /home/tstbdgweb/public_html/cmsbeta/lib/serverInfo_functions.php
[errline] => 159
[exceptionObj] => *** in backtrace field above ***
)

----------------------

This site uses PHP 8.2. In PHP "disable_functions" I always disallow shell_exec, but tested enabling that and it didn't help.

Any suggestions? Should I try a fresh install?

Thanks!
Deborah

CMSB v3.60 Beta 1 - Enhanced Server Management & Error Tracking

By Dave - July 7, 2023

Hi Deborah, 

Great feedback, thank you!  We are relying on shell_exec for some of the new functionality, but I can put in some fallback functions and code to detect when it's not available.

If you can send me FTP and CMS details either direct to dave@interactivetools.com or via the support form here https://www.interactivetools.com/support/request/ I can take a look a debug it directly.

Thanks! :-)

Dave Edis - Senior Developer
interactivetools.com

By Dave - July 10, 2023 - edited: July 10, 2023

Hey All, 

We've released BETA 2 with the following updates: 

  • Added new library with shellCommand() function.  This function will try all the available PHP commands to execute shell commands and then fail gracefully if it can't find anything.
  • Replaced all CMSB shell commands with shellFunction() so it works on servers with those disabled (thanks to Deborah for providing the test server for debugging this) 
  • Admin > General > ServerInfo: Improved cPanel detection by checking for known dirs
  • Misc code cleanup, text edits, HTML/CSS attributes (thanks to Jeff) and UI improvements.
  • Improved errors messages, stack traces, relevant error path/line num detection

Once you install this new beta you should be able to see the change automatically detected under: "Admin > General > Server Info" like this: 

Recent Changes - This section is automatically updated every time you load this page.

a few seconds ago: CMS Version changed from v3.60 (Build: 2347) to v3.60 (Build: 2350)

Thanks everyone for your help so far.  Let us know any further feedback!  :-)

Dave Edis - Senior Developer
interactivetools.com

By kitsguru - July 11, 2023

Have you considered using github or another service like bitbucket so we can contribute changes directly. Bitbucket has a free private package and you could only allow some select people to do pull requests.

Jeff Shields

By Dave - July 12, 2023

Hi Jeff, 

It's a good idea and we may slowly move towards that.  In the meantime if you have any changes you'd like feel free to send over the files and I can review and manually diff and merge if needed.

Thanks!

Dave Edis - Senior Developer
interactivetools.com