上面是我添加时遇到的报错 拿日志文件给AI分析了 他说要在配置文件中添加
abstract class VideoTemplate implements FoF\Upload\Contracts\Template
{
可添加时又报错 拿给他分析 他说缺失了一个FoF\Upload\Contracts\Template的类
但我不修改配置文件也进不去 改了也进不去 这个类是否可以下载? 或者有没有办法在不涉及FoF\Upload\Contracts\Template 的情况下将 VideoTemplate类声明为抽象类?
以下是日志文件:
`[2024-05-09 15:18:37] flarum.ERROR: Error: Interface “FoF\Upload\Templates\FoF\Upload\Contracts\Template” not found in D:\wwwroot\bbs.clearcraft.cn\vendor\fof\upload\src\Templates\VideoTemplate.php:16
Stack trace:
#0 D:\wwwroot\bbs.clearcraft.cn\vendor\composer\ClassLoader.php(480): include()
#1 D:\wwwroot\bbs.clearcraft.cn\vendor\composer\ClassLoader.php(346): Composer\Autoload\includeFile(‘D:\wwwroot\bbs….’)
#2 [internal function]: Composer\Autoload\ClassLoader->loadClass(‘FoF\Upload\Temp…’)
#3 D:\wwwroot\bbs.clearcraft.cn\vendor\illuminate\container\Container.php(877): ReflectionClass->__construct(‘FoF\Upload\Temp…’)
#4 D:\wwwroot\bbs.clearcraft.cn\vendor\illuminate\container\Container.php(758): Illuminate\Container\Container->build(‘FoF\Upload\Temp…’)
#5 D:\wwwroot\bbs.clearcraft.cn\vendor\illuminate\container\Container.php(694): Illuminate\Container\Container->resolve(‘FoF\Upload\Temp…’, Array)
#6 D:\wwwroot\bbs.clearcraft.cn\vendor\fof\upload\src\Providers\DownloadProvider.php(46): Illuminate\Container\Container->make(‘FoF\Upload\Temp…’)
#7 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Foundation\Application.php(184): FoF\Upload\Providers\DownloadProvider->register()
#8 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Extend\ServiceProvider.php(41): Flarum\Foundation\Application->register(Object(FoF\Upload\Providers\DownloadProvider))
#9 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Extension\Extension.php(141): Flarum\Extend\ServiceProvider->extend(Object(Illuminate\Container\Container), Object(Flarum\Extension\Extension))
#10 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Extension\ExtensionManager.php(390): Flarum\Extension\Extension->extend(Object(Illuminate\Container\Container))
#11 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Extension\ExtensionServiceProvider.php(31): Flarum\Extension\ExtensionManager->extend(Object(Illuminate\Container\Container))
#12 [internal function]: Flarum\Extension\ExtensionServiceProvider->Flarum\Extension{closure}(Object(Flarum\Foundation\Application))
#13 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Foundation\Application.php(329): call_user_func(Object(Closure), Object(Flarum\Foundation\Application))
#14 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Foundation\Application.php(270): Flarum\Foundation\Application->fireAppCallbacks(Array)
#15 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Foundation\InstalledSite.php(151): Flarum\Foundation\Application->boot()
#16 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Foundation\InstalledSite.php(82): Flarum\Foundation\InstalledSite->bootLaravel()
#17 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Http\Server.php(59): Flarum\Foundation\InstalledSite->bootApp()
#18 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Http\Server.php(36): Flarum\Http\Server->safelyBootAndGetHandler()
#19 D:\wwwroot\bbs.clearcraft.cn\public\index.php(26): Flarum\Http\Server->listen()
#20 {main}
Next Flarum\Extension\Exception\ExtensionBootError: Experienced an error while booting extension: FoF Upload.
Error occurred while applying an extender of type: Flarum\Extend\ServiceProvider. in D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Extension\Extension.php:143
Stack trace:
#0 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Extension\ExtensionManager.php(390): Flarum\Extension\Extension->extend(Object(Illuminate\Container\Container))
#1 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Extension\ExtensionServiceProvider.php(31): Flarum\Extension\ExtensionManager->extend(Object(Illuminate\Container\Container))
#2 [internal function]: Flarum\Extension\ExtensionServiceProvider->Flarum\Extension{closure}(Object(Flarum\Foundation\Application))
#3 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Foundation\Application.php(329): call_user_func(Object(Closure), Object(Flarum\Foundation\Application))
#4 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Foundation\Application.php(270): Flarum\Foundation\Application->fireAppCallbacks(Array)
#5 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Foundation\InstalledSite.php(151): Flarum\Foundation\Application->boot()
#6 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Foundation\InstalledSite.php(82): Flarum\Foundation\InstalledSite->bootLaravel()
#7 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Http\Server.php(59): Flarum\Foundation\InstalledSite->bootApp()
#8 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Http\Server.php(36): Flarum\Http\Server->safelyBootAndGetHandler()
#9 D:\wwwroot\bbs.clearcraft.cn\public\index.php(26): Flarum\Http\Server->listen()
#10 {main}
[2024-05-09 15:26:48] flarum.ERROR: Error: Interface “FoF\Upload\Templates\FoF\Upload\Contracts\Template” not found in D:\wwwroot\bbs.clearcraft.cn\vendor\fof\upload\src\Templates\VideoTemplate.php:16
Stack trace:
#0 D:\wwwroot\bbs.clearcraft.cn\vendor\composer\ClassLoader.php(480): include()
#1 D:\wwwroot\bbs.clearcraft.cn\vendor\composer\ClassLoader.php(346): Composer\Autoload\includeFile(‘D:\wwwroot\bbs….’)
#2 [internal function]: Composer\Autoload\ClassLoader->loadClass(‘FoF\Upload\Temp…’)
#3 D:\wwwroot\bbs.clearcraft.cn\vendor\illuminate\container\Container.php(877): ReflectionClass->__construct(‘FoF\Upload\Temp…’)
#4 D:\wwwroot\bbs.clearcraft.cn\vendor\illuminate\container\Container.php(758): Illuminate\Container\Container->build(‘FoF\Upload\Temp…’)
#5 D:\wwwroot\bbs.clearcraft.cn\vendor\illuminate\container\Container.php(694): Illuminate\Container\Container->resolve(‘FoF\Upload\Temp…’, Array)
#6 D:\wwwroot\bbs.clearcraft.cn\vendor\fof\upload\src\Providers\DownloadProvider.php(46): Illuminate\Container\Container->make(‘FoF\Upload\Temp…’)
#7 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Foundation\Application.php(184): FoF\Upload\Providers\DownloadProvider->register()
#8 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Extend\ServiceProvider.php(41): Flarum\Foundation\Application->register(Object(FoF\Upload\Providers\DownloadProvider))
#9 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Extension\Extension.php(141): Flarum\Extend\ServiceProvider->extend(Object(Illuminate\Container\Container), Object(Flarum\Extension\Extension))
#10 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Extension\ExtensionManager.php(390): Flarum\Extension\Extension->extend(Object(Illuminate\Container\Container))
#11 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Extension\ExtensionServiceProvider.php(31): Flarum\Extension\ExtensionManager->extend(Object(Illuminate\Container\Container))
#12 [internal function]: Flarum\Extension\ExtensionServiceProvider->Flarum\Extension{closure}(Object(Flarum\Foundation\Application))
#13 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Foundation\Application.php(329): call_user_func(Object(Closure), Object(Flarum\Foundation\Application))
#14 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Foundation\Application.php(270): Flarum\Foundation\Application->fireAppCallbacks(Array)
#15 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Foundation\InstalledSite.php(151): Flarum\Foundation\Application->boot()
#16 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Foundation\InstalledSite.php(82): Flarum\Foundation\InstalledSite->bootLaravel()
#17 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Http\Server.php(59): Flarum\Foundation\InstalledSite->bootApp()
#18 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Http\Server.php(36): Flarum\Http\Server->safelyBootAndGetHandler()
#19 D:\wwwroot\bbs.clearcraft.cn\public\index.php(26): Flarum\Http\Server->listen()
#20 {main}
Next Flarum\Extension\Exception\ExtensionBootError: Experienced an error while booting extension: FoF Upload.
Error occurred while applying an extender of type: Flarum\Extend\ServiceProvider. in D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Extension\Extension.php:143
Stack trace:
#0 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Extension\ExtensionManager.php(390): Flarum\Extension\Extension->extend(Object(Illuminate\Container\Container))
#1 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Extension\ExtensionServiceProvider.php(31): Flarum\Extension\ExtensionManager->extend(Object(Illuminate\Container\Container))
#2 [internal function]: Flarum\Extension\ExtensionServiceProvider->Flarum\Extension{closure}(Object(Flarum\Foundation\Application))
#3 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Foundation\Application.php(329): call_user_func(Object(Closure), Object(Flarum\Foundation\Application))
#4 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Foundation\Application.php(270): Flarum\Foundation\Application->fireAppCallbacks(Array)
#5 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Foundation\InstalledSite.php(151): Flarum\Foundation\Application->boot()
#6 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Foundation\InstalledSite.php(82): Flarum\Foundation\InstalledSite->bootLaravel()
#7 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Http\Server.php(59): Flarum\Foundation\InstalledSite->bootApp()
#8 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Http\Server.php(36): Flarum\Http\Server->safelyBootAndGetHandler()
#9 D:\wwwroot\bbs.clearcraft.cn\public\index.php(26): Flarum\Http\Server->listen()
#10 {main}
[2024-05-09 15:44:19] flarum.ERROR: Error: Interface “FoF\Upload\Templates\Template” not found in D:\wwwroot\bbs.clearcraft.cn\vendor\fof\upload\src\Templates\VideoTemplate.php:16
Stack trace:
#0 D:\wwwroot\bbs.clearcraft.cn\vendor\composer\ClassLoader.php(480): include()
#1 D:\wwwroot\bbs.clearcraft.cn\vendor\composer\ClassLoader.php(346): Composer\Autoload\includeFile(‘D:\wwwroot\bbs….’)
#2 [internal function]: Composer\Autoload\ClassLoader->loadClass(‘FoF\Upload\Temp…’)
#3 D:\wwwroot\bbs.clearcraft.cn\vendor\illuminate\container\Container.php(877): ReflectionClass->__construct(‘FoF\Upload\Temp…’)
#4 D:\wwwroot\bbs.clearcraft.cn\vendor\illuminate\container\Container.php(758): Illuminate\Container\Container->build(‘FoF\Upload\Temp…’)
#5 D:\wwwroot\bbs.clearcraft.cn\vendor\illuminate\container\Container.php(694): Illuminate\Container\Container->resolve(‘FoF\Upload\Temp…’, Array)
#6 D:\wwwroot\bbs.clearcraft.cn\vendor\fof\upload\src\Providers\DownloadProvider.php(46): Illuminate\Container\Container->make(‘FoF\Upload\Temp…’)
#7 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Foundation\Application.php(184): FoF\Upload\Providers\DownloadProvider->register()
#8 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Extend\ServiceProvider.php(41): Flarum\Foundation\Application->register(Object(FoF\Upload\Providers\DownloadProvider))
#9 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Extension\Extension.php(141): Flarum\Extend\ServiceProvider->extend(Object(Illuminate\Container\Container), Object(Flarum\Extension\Extension))
#10 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Extension\ExtensionManager.php(390): Flarum\Extension\Extension->extend(Object(Illuminate\Container\Container))
#11 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Extension\ExtensionServiceProvider.php(31): Flarum\Extension\ExtensionManager->extend(Object(Illuminate\Container\Container))
#12 [internal function]: Flarum\Extension\ExtensionServiceProvider->Flarum\Extension{closure}(Object(Flarum\Foundation\Application))
#13 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Foundation\Application.php(329): call_user_func(Object(Closure), Object(Flarum\Foundation\Application))
#14 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Foundation\Application.php(270): Flarum\Foundation\Application->fireAppCallbacks(Array)
#15 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Foundation\InstalledSite.php(151): Flarum\Foundation\Application->boot()
#16 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Foundation\InstalledSite.php(82): Flarum\Foundation\InstalledSite->bootLaravel()
#17 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Http\Server.php(59): Flarum\Foundation\InstalledSite->bootApp()
#18 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Http\Server.php(36): Flarum\Http\Server->safelyBootAndGetHandler()
#19 D:\wwwroot\bbs.clearcraft.cn\public\index.php(26): Flarum\Http\Server->listen()
#20 {main}
Next Flarum\Extension\Exception\ExtensionBootError: Experienced an error while booting extension: FoF Upload.
Error occurred while applying an extender of type: Flarum\Extend\ServiceProvider. in D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Extension\Extension.php:143
Stack trace:
#0 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Extension\ExtensionManager.php(390): Flarum\Extension\Extension->extend(Object(Illuminate\Container\Container))
#1 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Extension\ExtensionServiceProvider.php(31): Flarum\Extension\ExtensionManager->extend(Object(Illuminate\Container\Container))
#2 [internal function]: Flarum\Extension\ExtensionServiceProvider->Flarum\Extension{closure}(Object(Flarum\Foundation\Application))
#3 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Foundation\Application.php(329): call_user_func(Object(Closure), Object(Flarum\Foundation\Application))
#4 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Foundation\Application.php(270): Flarum\Foundation\Application->fireAppCallbacks(Array)
#5 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Foundation\InstalledSite.php(151): Flarum\Foundation\Application->boot()
#6 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Foundation\InstalledSite.php(82): Flarum\Foundation\InstalledSite->bootLaravel()
#7 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Http\Server.php(59): Flarum\Foundation\InstalledSite->bootApp()
#8 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Http\Server.php(36): Flarum\Http\Server->safelyBootAndGetHandler()
#9 D:\wwwroot\bbs.clearcraft.cn\public\index.php(26): Flarum\Http\Server->listen()
#10 {main}
[2024-05-09 15:44:21] flarum.ERROR: Error: Interface “FoF\Upload\Templates\Template” not found in D:\wwwroot\bbs.clearcraft.cn\vendor\fof\upload\src\Templates\VideoTemplate.php:16
Stack trace:
#0 D:\wwwroot\bbs.clearcraft.cn\vendor\composer\ClassLoader.php(480): include()
#1 D:\wwwroot\bbs.clearcraft.cn\vendor\composer\ClassLoader.php(346): Composer\Autoload\includeFile(‘D:\wwwroot\bbs….’)
#2 [internal function]: Composer\Autoload\ClassLoader->loadClass(‘FoF\Upload\Temp…’)
#3 D:\wwwroot\bbs.clearcraft.cn\vendor\illuminate\container\Container.php(877): ReflectionClass->__construct(‘FoF\Upload\Temp…’)
#4 D:\wwwroot\bbs.clearcraft.cn\vendor\illuminate\container\Container.php(758): Illuminate\Container\Container->build(‘FoF\Upload\Temp…’)
#5 D:\wwwroot\bbs.clearcraft.cn\vendor\illuminate\container\Container.php(694): Illuminate\Container\Container->resolve(‘FoF\Upload\Temp…’, Array)
#6 D:\wwwroot\bbs.clearcraft.cn\vendor\fof\upload\src\Providers\DownloadProvider.php(46): Illuminate\Container\Container->make(‘FoF\Upload\Temp…’)
#7 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Foundation\Application.php(184): FoF\Upload\Providers\DownloadProvider->register()
#8 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Extend\ServiceProvider.php(41): Flarum\Foundation\Application->register(Object(FoF\Upload\Providers\DownloadProvider))
#9 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Extension\Extension.php(141): Flarum\Extend\ServiceProvider->extend(Object(Illuminate\Container\Container), Object(Flarum\Extension\Extension))
#10 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Extension\ExtensionManager.php(390): Flarum\Extension\Extension->extend(Object(Illuminate\Container\Container))
#11 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Extension\ExtensionServiceProvider.php(31): Flarum\Extension\ExtensionManager->extend(Object(Illuminate\Container\Container))
#12 [internal function]: Flarum\Extension\ExtensionServiceProvider->Flarum\Extension{closure}(Object(Flarum\Foundation\Application))
#13 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Foundation\Application.php(329): call_user_func(Object(Closure), Object(Flarum\Foundation\Application))
#14 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Foundation\Application.php(270): Flarum\Foundation\Application->fireAppCallbacks(Array)
#15 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Foundation\InstalledSite.php(151): Flarum\Foundation\Application->boot()
#16 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Foundation\InstalledSite.php(82): Flarum\Foundation\InstalledSite->bootLaravel()
#17 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Http\Server.php(59): Flarum\Foundation\InstalledSite->bootApp()
#18 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Http\Server.php(36): Flarum\Http\Server->safelyBootAndGetHandler()
#19 D:\wwwroot\bbs.clearcraft.cn\public\index.php(26): Flarum\Http\Server->listen()
#20 {main}
Next Flarum\Extension\Exception\ExtensionBootError: Experienced an error while booting extension: FoF Upload.
Error occurred while applying an extender of type: Flarum\Extend\ServiceProvider. in D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Extension\Extension.php:143
Stack trace:
#0 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Extension\ExtensionManager.php(390): Flarum\Extension\Extension->extend(Object(Illuminate\Container\Container))
#1 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Extension\ExtensionServiceProvider.php(31): Flarum\Extension\ExtensionManager->extend(Object(Illuminate\Container\Container))
#2 [internal function]: Flarum\Extension\ExtensionServiceProvider->Flarum\Extension{closure}(Object(Flarum\Foundation\Application))
#3 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Foundation\Application.php(329): call_user_func(Object(Closure), Object(Flarum\Foundation\Application))
#4 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Foundation\Application.php(270): Flarum\Foundation\Application->fireAppCallbacks(Array)
#5 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Foundation\InstalledSite.php(151): Flarum\Foundation\Application->boot()
#6 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Foundation\InstalledSite.php(82): Flarum\Foundation\InstalledSite->bootLaravel()
#7 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Http\Server.php(59): Flarum\Foundation\InstalledSite->bootApp()
#8 D:\wwwroot\bbs.clearcraft.cn\vendor\flarum\core\src\Http\Server.php(36): Flarum\Http\Server->safelyBootAndGetHandler()
#9 D:\wwwroot\bbs.clearcraft.cn\public\index.php(26): Flarum\Http\Server->listen()
#10 {main}
`