问题描述:安装主题插件启用后论坛无法访问,出现报错
主题是这个,https://discuss.flarum.org/d/22694-stargazing-theme
报错内容:
Flarum encountered a boot error (Error)
Cannot use object of type Flarum\Foundation\Application as array
thrown in /www/wwwroot/159.159.159/vendor/the-turk/flarum-stargazing-theme/extend.php on line 34
Error: Cannot use object of type Flarum\Foundation\Application as array in /www/wwwroot/159.159.159/vendor/the-turk/flarum-stargazing-theme/extend.php:34
Stack trace:
#0 /www/wwwroot/159.159.159/vendor/illuminate/container/BoundMethod.php(36): Flarum\Extension\Extension->TheTurk\Stargazing\{closure}(Object(Flarum\Foundation\Application))
#1 /www/wwwroot/159.159.159/vendor/illuminate/container/Util.php(37): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#2 /www/wwwroot/159.159.159/vendor/illuminate/container/BoundMethod.php(81): Illuminate\Container\Util::unwrapIfClosure(Object(Closure))
#3 /www/wwwroot/159.159.159/vendor/illuminate/container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod(Object(Illuminate\Container\Container), Object(Closure), Object(Closure))
#4 /www/wwwroot/159.159.159/vendor/illuminate/container/Container.php(590): Illuminate\Container\BoundMethod::call(Object(Illuminate\Container\Container), Object(Closure), Array, NULL)
#5 /www/wwwroot/159.159.159/vendor/flarum/core/src/Extend/Compat.php(35): Illuminate\Container\Container->call(Object(Closure))
#6 /www/wwwroot/159.159.159/vendor/flarum/core/src/Extension/Extension.php(137): Flarum\Extend\Compat->extend(Object(Illuminate\Container\Container), Object(Flarum\Extension\Extension))
#7 /www/wwwroot/159.159.159/vendor/flarum/core/src/Extension/ExtensionManager.php(334): Flarum\Extension\Extension->extend(Object(Illuminate\Container\Container))
#8 /www/wwwroot/159.159.159/vendor/flarum/core/src/Extension/ExtensionServiceProvider.php(30): Flarum\Extension\ExtensionManager->extend(Object(Illuminate\Container\Container))
#9 [internal function]: Flarum\Extension\ExtensionServiceProvider->Flarum\Extension\{closure}(Object(Flarum\Foundation\Application))
#10 /www/wwwroot/159.159.159/vendor/flarum/core/src/Foundation/Application.php(366): call_user_func(Object(Closure), Object(Flarum\Foundation\Application))
#11 /www/wwwroot/159.159.159/vendor/flarum/core/src/Foundation/Application.php(307): Flarum\Foundation\Application->fireAppCallbacks(Array)
#12 /www/wwwroot/159.159.159/vendor/flarum/core/src/Foundation/InstalledSite.php(148): Flarum\Foundation\Application->boot()
#13 /www/wwwroot/159.159.159/vendor/flarum/core/src/Foundation/InstalledSite.php(81): Flarum\Foundation\InstalledSite->bootLaravel()
#14 /www/wwwroot/159.159.159/vendor/flarum/core/src/Http/Server.php(56): Flarum\Foundation\InstalledSite->bootApp()
#15 /www/wwwroot/159.159.159/vendor/flarum/core/src/Http/Server.php(33): Flarum\Http\Server->safelyBootAndGetHandler()
#16 /www/wwwroot/159.159.159/public/index.php(26): Flarum\Http\Server->listen()
#17 {main}
调试模式报错内容:
Flarum encountered a boot error (Error)
Cannot use object of type Flarum\Foundation\Application as array
thrown in /www/wwwroot/159.159.159/vendor/the-turk/flarum-stargazing-theme/extend.php on line 34
Error: Cannot use object of type Flarum\Foundation\Application as array in /www/wwwroot/159.159.159/vendor/the-turk/flarum-stargazing-theme/extend.php:34
Stack trace:
#0 /www/wwwroot/159.159.159/vendor/illuminate/container/BoundMethod.php(36): Flarum\Extension\Extension->TheTurk\Stargazing\{closure}(Object(Flarum\Foundation\Application))
#1 /www/wwwroot/159.159.159/vendor/illuminate/container/Util.php(37): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#2 /www/wwwroot/159.159.159/vendor/illuminate/container/BoundMethod.php(81): Illuminate\Container\Util::unwrapIfClosure(Object(Closure))
#3 /www/wwwroot/159.159.159/vendor/illuminate/container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod(Object(Illuminate\Container\Container), Object(Closure), Object(Closure))
#4 /www/wwwroot/159.159.159/vendor/illuminate/container/Container.php(590): Illuminate\Container\BoundMethod::call(Object(Illuminate\Container\Container), Object(Closure), Array, NULL)
#5 /www/wwwroot/159.159.159/vendor/flarum/core/src/Extend/Compat.php(35): Illuminate\Container\Container->call(Object(Closure))
#6 /www/wwwroot/159.159.159/vendor/flarum/core/src/Extension/Extension.php(137): Flarum\Extend\Compat->extend(Object(Illuminate\Container\Container), Object(Flarum\Extension\Extension))
#7 /www/wwwroot/159.159.159/vendor/flarum/core/src/Extension/ExtensionManager.php(334): Flarum\Extension\Extension->extend(Object(Illuminate\Container\Container))
#8 /www/wwwroot/159.159.159/vendor/flarum/core/src/Extension/ExtensionServiceProvider.php(30): Flarum\Extension\ExtensionManager->extend(Object(Illuminate\Container\Container))
#9 [internal function]: Flarum\Extension\ExtensionServiceProvider->Flarum\Extension\{closure}(Object(Flarum\Foundation\Application))
#10 /www/wwwroot/159.159.159/vendor/flarum/core/src/Foundation/Application.php(366): call_user_func(Object(Closure), Object(Flarum\Foundation\Application))
#11 /www/wwwroot/159.159.159/vendor/flarum/core/src/Foundation/Application.php(307): Flarum\Foundation\Application->fireAppCallbacks(Array)
#12 /www/wwwroot/159.159.159/vendor/flarum/core/src/Foundation/InstalledSite.php(148): Flarum\Foundation\Application->boot()
#13 /www/wwwroot/159.159.159/vendor/flarum/core/src/Foundation/InstalledSite.php(81): Flarum\Foundation\InstalledSite->bootLaravel()
#14 /www/wwwroot/159.159.159/vendor/flarum/core/src/Http/Server.php(56): Flarum\Foundation\InstalledSite->bootApp()
#15 /www/wwwroot/159.159.159/vendor/flarum/core/src/Http/Server.php(33): Flarum\Http\Server->safelyBootAndGetHandler()
#16 /www/wwwroot/159.159.159/public/index.php(26): Flarum\Http\Server->listen()
#17 {main}
已尝试的解决办法:十分抱歉,我对于处理网站报错真的是一点不会,所以来求助大家
网址:49.235.121.53:2000 是国内服务器,域名没备案唔