Enabling security text-danger error

Hello everybody! I’m new to PHPMAKER. I’m creating a [project and everything works fine but when I try to enable security at user id I receive the error:"text-danger
An error occurred processing your request"I’m running Apache, PHP and MySQL on MAMP. If anyone can help me I’ll appreciate! Thanks in advance

You may enable Debug to get more information, read https://www.hkvforums.com/viewtopic.php?f=18&t=49192.

Got this in the log:

[2021-01-03T20:03:31.546385-08:00] log.DEBUG: Slim Application Error Type: ParseError Code: 0 Message: syntax error, unexpected 'if' (T_IF), expecting function (T_FUNCTION) or const (T_CONST) File: C:\MAMP\htdocs\ciceac\src\UserProfile.php Line: 154 
Trace: 
#0 C:\MAMP\htdocs\ciceac\vendor\composer\ClassLoader.php(322): Composer\Autoload\includeFile('C:\\MAMP\\htdocs\\...') 
#1 [internal function]: Composer\Autoload\ClassLoader->loadClass('PHPMaker2021\\CI...') 
#2 [internal function]: spl_autoload_call('PHPMaker2021\\CI...') 
#3 C:\MAMP\htdocs\ciceac\vendor\php-di\php-di\src\Definition\ObjectDefinition.php(255): class_exists('PHPMaker2021\\CI...') 
...

syntax error, unexpected ‘if’ (T_IF), expecting function (T_FUNCTION) or const (T_CONST) File: C:\MAMP\htdocs\ciceac\src\UserProfile.php Line: 154

The error message tells you that it cannot parse the UserProfile.php, it might be corrupted during upload, you’d better delete all scripts in the project folder, then generate and upload again. (Also, make sure you use PHP 7.2 or newer, see system requirements: https://phpmaker.dev/download.php.)

Thanks! But after deleting .htaccess I receive the following error:The requested URL /UsersList was not found on this server.

You should re-generate ALL files.

Regenerate worked! Thanks to everybody