Bug #14218
Updated by Chris W about 2 years ago
The 1. Install the shellcmd package from System > Package Manager. 2. Services > shellcmd > Command: <pre>touch /tmp/file.txt</pre> Shellcmd Type: shellcmd Click Save 3. Save again. 4. Now trying to delete that entry results in the browser showing: <pre> Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/shellcmd.inc:44 Stack trace: #0 /usr/local/www/pkg.php(142) : eval()'d code(1): shellcmd_delete_php_command() #1 /usr/local/www/pkg.php(142): eval() #2 {main} thrown in /usr/local/pkg/shellcmd.inc on line 44 PHP ERROR: Type: 1, File: /usr/local/pkg/shellcmd.inc, Line: 44, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/shellcmd.inc:44 Stack trace: #0 /usr/local/www/pkg.php(142) : eval()'d code(1): shellcmd_delete_php_command() #1 /usr/local/www/pkg.php(142): eval() #2 {main} thrown </pre> A crash report is then available on the dashboard with the contents: <pre> [31-Mar-2023 15:19:48 America/Chicago] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/shellcmd.inc:44 Stack trace: #0 /usr/local/www/pkg.php(142) : eval()'d code(1): shellcmd_delete_php_command() #1 /usr/local/www/pkg.php(142): eval() #2 {main} thrown in /usr/local/pkg/shellcmd.inc on line 44 </pre>