返回列表 发帖
查看: 393|回复: 2

[问题求助] 是不是切换php版本会导致出错?

1

主题

0

回帖

6

积分

初学乍练

贡献
0 点
金币
5 个
发表于 2024-3-11 19:05:02 | 显示全部楼层 |阅读模式
把php7.4(好像)换成了8.2,现在打不开了:


  1. Deprecated: Return type of Illuminate\Container\Container::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/wwwroot/q.csgo.link/vendor/illuminate/container/Container.php on line 1271

  2. Deprecated: Return type of Illuminate\Container\Container::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/wwwroot/q.csgo.link/vendor/illuminate/container/Container.php on line 1282

  3. Deprecated: Return type of Illuminate\Container\Container::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/wwwroot/q.csgo.link/vendor/illuminate/container/Container.php on line 1294

  4. Deprecated: Return type of Illuminate\Container\Container::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/wwwroot/q.csgo.link/vendor/illuminate/container/Container.php on line 1307

  5. Deprecated: Return type of Illuminate\Config\Repository::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/wwwroot/q.csgo.link/vendor/illuminate/config/Repository.php on line 141

  6. Deprecated: Return type of Illuminate\Config\Repository::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/wwwroot/q.csgo.link/vendor/illuminate/config/Repository.php on line 152

  7. Deprecated: Return type of Illuminate\Config\Repository::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/wwwroot/q.csgo.link/vendor/illuminate/config/Repository.php on line 164

  8. Deprecated: Return type of Illuminate\Config\Repository::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/wwwroot/q.csgo.link/vendor/illuminate/config/Repository.php on line 175

  9. Deprecated: Opis\Closure\SerializableClosure implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /www/wwwroot/q.csgo.link/vendor/opis/closure/src/SerializableClosure.php on line 18

  10. Deprecated: Return type of Illuminate\Database\Eloquent\Model::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/wwwroot/q.csgo.link/vendor/illuminate/database/Eloquent/Model.php on line 1658

  11. Deprecated: Return type of Illuminate\Database\Eloquent\Model::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/wwwroot/q.csgo.link/vendor/illuminate/database/Eloquent/Model.php on line 1669

  12. Deprecated: Return type of Illuminate\Database\Eloquent\Model::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/wwwroot/q.csgo.link/vendor/illuminate/database/Eloquent/Model.php on line 1681

  13. Deprecated: Return type of Illuminate\Database\Eloquent\Model::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/wwwroot/q.csgo.link/vendor/illuminate/database/Eloquent/Model.php on line 1692

  14. Deprecated: Return type of Illuminate\Database\Eloquent\Model::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/wwwroot/q.csgo.link/vendor/illuminate/database/Eloquent/Model.php on line 1203

  15. Deprecated: Creation of dynamic property App\Listeners\Post\SaveLikesToDatabase::$userRepo is deprecated in /www/wwwroot/q.csgo.link/app/Listeners/Post/SaveLikesToDatabase.php on line 50

  16. Deprecated: Creation of dynamic property App\Listeners\Post\SaveLikesToDatabase::$events is deprecated in /www/wwwroot/q.csgo.link/app/Listeners/Post/SaveLikesToDatabase.php on line 58

  17. Deprecated: Return type of Illuminate\Support\Collection::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/wwwroot/q.csgo.link/vendor/illuminate/support/Collection.php on line 1349

  18. Deprecated: Return type of Illuminate\Support\Collection::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/wwwroot/q.csgo.link/vendor/illuminate/support/Collection.php on line 1360

  19. Deprecated: Return type of Illuminate\Support\Collection::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/wwwroot/q.csgo.link/vendor/illuminate/support/Collection.php on line 1372

  20. Deprecated: Return type of Illuminate\Support\Collection::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/wwwroot/q.csgo.link/vendor/illuminate/support/Collection.php on line 1387

  21. Deprecated: Return type of Illuminate\Support\Collection::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/wwwroot/q.csgo.link/vendor/illuminate/support/Collection.php on line 1304

  22. Deprecated: Return type of Illuminate\Support\Collection::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/wwwroot/q.csgo.link/vendor/illuminate/support/Collection.php on line 1294

  23. Deprecated: Return type of Illuminate\Support\Collection::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/wwwroot/q.csgo.link/vendor/illuminate/support/Traits/EnumeratesValues.php on line 768

  24. Deprecated: Return type of Illuminate\Cache\Repository::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/wwwroot/q.csgo.link/vendor/illuminate/cache/Repository.php on line 577

  25. Deprecated: Return type of Illuminate\Cache\Repository::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/wwwroot/q.csgo.link/vendor/illuminate/cache/Repository.php on line 588

  26. Deprecated: Return type of Illuminate\Cache\Repository::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/wwwroot/q.csgo.link/vendor/illuminate/cache/Repository.php on line 600

  27. Deprecated: Return type of Illuminate\Cache\Repository::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/wwwroot/q.csgo.link/vendor/illuminate/cache/Repository.php on line 611

  28. Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /www/wwwroot/q.csgo.link/vendor/nesbot/carbon/src/Carbon/Traits/Date.php on line 1238

  29. Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /www/wwwroot/q.csgo.link/vendor/nesbot/carbon/src/Carbon/Traits/Date.php on line 1247

  30. Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /www/wwwroot/q.csgo.link/vendor/nesbot/carbon/src/Carbon/Traits/Date.php on line 2456

  31. Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /www/wwwroot/q.csgo.link/vendor/nesbot/carbon/src/Carbon/Traits/Date.php on line 2581

  32. Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /www/wwwroot/q.csgo.link/vendor/nesbot/carbon/src/Carbon/Traits/Date.php on line 2593

  33. Deprecated: Return type of Carbon\CarbonInterface::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/wwwroot/q.csgo.link/vendor/nesbot/carbon/src/Carbon/CarbonInterface.php on line 3025
  34. Discuz Q! encountered a boot error (TypeError)
  35. thrown in /www/wwwroot/q.csgo.link/vendor/nesbot/carbon/src/Carbon/Traits/Creator.php on line 927
  36. Carbon\Carbon::setLastErrors(): Argument #1 ($lastErrors) must be of type array, bool given, called in /www/wwwroot/q.csgo.link/vendor/nesbot/carbon/src/Carbon/Traits/Creator.php on line 97
  37. #0 /www/wwwroot/q.csgo.link/vendor/nesbot/carbon/src/Carbon/Traits/Creator.php(97): Carbon\Carbon::setLastErrors() #1 /www/wwwroot/q.csgo.link/vendor/nesbot/carbon/src/Carbon/Traits/Creator.php(251): Carbon\Carbon->__construct() #2 /www/wwwroot/q.csgo.link/vendor/illuminate/support/InteractsWithTime.php(62): Carbon\Carbon::now() #3 /www/wwwroot/q.csgo.link/vendor/illuminate/cache/FileStore.php(216): Illuminate\Cache\FileStore->currentTime() #4 /www/wwwroot/q.csgo.link/vendor/illuminate/cache/FileStore.php(58): Illuminate\Cache\FileStore->getPayload() #5 /www/wwwroot/q.csgo.link/vendor/illuminate/cache/Repository.php(97): Illuminate\Cache\FileStore->get() #6 /www/wwwroot/q.csgo.link/vendor/illuminate/cache/Repository.php(409): Illuminate\Cache\Repository->get() #7 /www/wwwroot/q.csgo.link/vendor/illuminate/cache/Repository.php(397): Illuminate\Cache\Repository->rememberForever() #8 /www/wwwroot/q.csgo.link/vendor/illuminate/support/Manager.php(166): Illuminate\Cache\Repository->sear() #9 /www/wwwroot/q.csgo.link/app/Settings/SettingsRepository.php(50): Illuminate\Support\Manager->__call() #10 /www/wwwroot/q.csgo.link/app/Settings/SettingsRepository.php(82): App\Settings\SettingsRepository->all() #11 /www/wwwroot/q.csgo.link/app/Providers/SettingsServiceProvider.php(53): App\Settings\SettingsRepository->tag() #12 /www/wwwroot/q.csgo.link/vendor/illuminate/container/BoundMethod.php(36): App\Providers\SettingsServiceProvider->boot() #13 /www/wwwroot/q.csgo.link/vendor/illuminate/container/Util.php(37): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}() #14 /www/wwwroot/q.csgo.link/vendor/illuminate/container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure() #15 /www/wwwroot/q.csgo.link/vendor/illuminate/container/BoundMethod.php(35): Illuminate\Container\BoundMethod::callBoundMethod() #16 /www/wwwroot/q.csgo.link/vendor/illuminate/container/Container.php(596): Illuminate\Container\BoundMethod::call() #17 /www/wwwroot/q.csgo.link/vendor/discuz/core/src/Foundation/Application.php(523): Illuminate\Container\Container->call() #18 /www/wwwroot/q.csgo.link/vendor/discuz/core/src/Foundation/Application.php(495): Discuz\Foundation\Application->bootProvider() #19 [internal function]: Discuz\Foundation\Application->Discuz\Foundation\{closure}() #20 /www/wwwroot/q.csgo.link/vendor/discuz/core/src/Foundation/Application.php(494): array_walk() #21 /www/wwwroot/q.csgo.link/vendor/discuz/core/src/Foundation/SiteApp.php(96): Discuz\Foundation\Application->boot() #22 /www/wwwroot/q.csgo.link/vendor/discuz/core/src/Http/Server.php(41): Discuz\Foundation\SiteApp->siteBoot() #23 /www/wwwroot/q.csgo.link/public/index.php(29): Discuz\Http\Server->listen() #24 {main}
复制代码


回复

使用道具 举报

1

主题

323

回帖

369

积分

炉火纯青

贡献
1 点
金币
33 个
QQ
发表于 2024-3-11 20:26:15 | 显示全部楼层
有的时候是插件不支持php8照成的
站长论坛  花有重开日,人无再少年
回复 支持 反对

使用道具 举报

5

主题

579

回帖

827

积分

应用开发者

贡献
8 点
金币
146 个
QQ
发表于 2024-3-12 09:49:18 | 显示全部楼层
看版本有些是不支持8.2的
⭐️提供网站技术支持、模板开发、包年托管运维、木马病毒清理等。鸿茂传媒
⭐️dz疑难杂症问题解决。有偿服务QQ:6805813 不接违法违规网站
⭐️Discuz!技术群:164986697
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 关注公众号
  • 有偿服务微信
  • 有偿服务QQ

手机版|小黑屋|Discuz! 官方交流社区 ( 皖ICP备16010102号 |皖公网安备34010302002376号 )|网站地图|star

GMT+8, 2024-5-15 01:34 , Processed in 0.034847 second(s), 6 queries , Redis On.

Powered by Discuz! W1.0 Licensed

Cpoyright © 2001-2024 Discuz! Team.

关灯 在本版发帖
有偿服务QQ
有偿服务微信
返回顶部
快速回复 返回顶部 返回列表