In the backend we got the error: Upgrade command not found
In short:
This issue is caused by the server being case sensitive and the autoload_classmap of toolset being incorrectly generated (case insensitive).
Fix:
When we debugged we could see that it could not find anything in the command:
/inc/autoloaded/upgrade/Command/Setup/FontAwesomeVersion.php
The file is there but the command folder is without a capital "C" !
So the folder is: command
But the autoload contains: Command
After we updated the autoload_classmap.php, changing all the "Command" to "command, the error was gone.
web/app/plugins/types-access/vendor/toolset/toolset-common/autoload_classmap.php
See attached screenshots
Please resolve this issue by correctly generating the autoload_classmap.php.
- PHP 8.1 is currently not supported due to some issues. We’re working on fixing this. In the meantime, please use PHP 8.0 version.
- While Toolset works with PHP 5.6+ and MySQL 5.6+, they reached the official End Of Life, and are not recommended for security and performance reasons.
Would you mind to downgrade the PHP version to PHP 8.0.X for now.
I already read your ticket and I replied you based on the current PHP version you are using just to let you know that PHP 8.1 is not fully compatible with Toolset as of now but our Devs will work on this in order to make it compatible and do needful to fix this issue.
I know you shared your workaround by changing the capital "C" to small "c" for "Command":
So the folder is: command
But the autoload contains: Command
After we updated the autoload_classmap.php, changing all the "Command" to "command, the error was gone.
So our devs will take care of this issue when working on PHP 8.1 compatibility sprint.
I asked you to downgrade to PHP 8.0.x as to have other possible issues with PHP 8.1 version and yes, thank you for sharing the fix you shared but our Devs will review and do needful.
When can we expect this 8.1 support release?
PHP 8.0 already has no active support since 26 Nov 2022 and will be end of life in 7 months (26 Nov 2023).