Hi,
The flarum extension nosun/flarum-wechat-share have a critical bug. After install the extension, the whole website would down, with the error log as shown below. I haven't found a discussion of that extension in this forum. I have submitted an issue on GitHub, and I found that this error first occurred since 2020, hope the author could solve the problem. I post this discussion to give a solution if someone meet this issue. If you meet this issue, you can run
composer remove nosun/flarum-wechat-share
error log:
[2023-02-06 16:25:49] flarum.ERROR: TypeError: EasyWeChat\Kernel\ServiceContainer::construct(): Argument #1 ($config) must be of type array, null given, called in /vendor/nosun/flarum-wechat-share/extend.php on line 19 and defined in /vendor/overtrue/wechat/src/Kernel/ServiceContainer.php:61
Stack trace:
#0 /vendor/nosun/flarum-wechat-share/extend.php(19): EasyWeChat\Kernel\ServiceContainer->construct()
#1 /vendor/flarum/core/src/Extension/Extension.php(373): require('/home/r93mrt078...')
#2 /vendor/flarum/core/src/Extension/Extension.php(139): Flarum\Extension\Extension->getExtenders()
#3 /vendor/flarum/core/src/Extension/ExtensionManager.php(382): Flarum\Extension\Extension->extend()
#4 /vendor/flarum/core/src/Extension/ExtensionServiceProvider.php(31): Flarum\Extension\ExtensionManager->extend()
#5 [internal function]: Flarum\Extension\ExtensionServiceProvider->Flarum\Extension{closure}()
#6 /vendor/flarum/core/src/Foundation/Application.php(329): call_user_func()
#7 /vendor/flarum/core/src/Foundation/Application.php(270): Flarum\Foundation\Application->fireAppCallbacks()
#8 /vendor/flarum/core/src/Foundation/InstalledSite.php(151): Flarum\Foundation\Application->boot()
#9 /vendor/flarum/core/src/Foundation/InstalledSite.php(82): Flarum\Foundation\InstalledSite->bootLaravel()
#10 /vendor/flarum/core/src/Http/Server.php(59): Flarum\Foundation\InstalledSite->bootApp()
#11 /vendor/flarum/core/src/Http/Server.php(36): Flarum\Http\Server->safelyBootAndGetHandler()
#12 /public/index.php(26): Flarum\Http\Server->listen()
#13 {main}