You can come across this error when running a login application created by a security module generated before Scriptcase 9.8.
This error occurs only in an environment with PHP 8 or superior because of a change in the array elements access, that now allows just the use of square brackets [].
To fix it, follow the steps below:
1 - In your Login Application open the function remember_me_validateon the menu Programming > PHP Methods
2 - Inside the function remember_me_validatelook for the line:
$code .= $chars{mt_rand(0, $max)};
3 - Replace the curly brackets { } in the variable $chars**{mt_rand(0, $max)}**by square brackets [ ].
The code will be similar to this:
$code .= $chars[mt_rand(0, $max)];
4 - Now save the changes and generate the source code of the application.