1. Open the backend, navigate to Content – Text Widgets – Create Text Block, and an error occurs: Class ‘trntv\aceeditor\AceEditor’ not found, as shown in Figure 1.

2. Edit yii2-starter-kit\vendor\trntv\yii2-file-kit\composer.json, as shown in Figure 2.
“autoload”: {
“psr-4”: { “trntv\\filekit\\”: “” }
},
Change it to:
“autoload”: {
“psr-4”: { “trntv\\filekit\\”: “src/” }
},
Note: Redefine the mapping from the namespace to the directory; the directory should be set to src/.

3. Run the composer update command again to generate the vendor/autoload.php file, as shown in Figure 3.

4. The error still occurs, as shown in Figure 4.

5. Check yii2-starter-kit\vendor\composer\autoload_psr4.php, as shown in Figure 5.
‘trntv\\aceeditor\\’ => array($vendorDir . ‘/trntv/yii2-aceeditor’),
The directory mapping has not changed.

6. Edit yii2-starter-kit\vendor\composer\autoload_psr4.php and yii2-starter-kit\vendor\composer\autoload_static.php, as shown in Figures 6 and 7.


7. It now runs normally, as shown in Figure 8.

8. Submit this error as an issue to GitHub, as shown in Figure 9.

