国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

webman 執(zhí)行就報(bào)錯(cuò)

lijing

問題描述

這里詳細(xì)描述問題
webman admin 本地好用,但是服務(wù)器就報(bào)錯(cuò),剛開始服務(wù)器也好用,因?yàn)橐恢毙薷钠渌胤剑瑳]注意,不知道什么時(shí)候開始運(yùn)行就報(bào)錯(cuò)了。一直沒找到原因。

感覺是版本問題,我把vendor目錄都刪了,從本地上傳上去依然報(bào)錯(cuò)。PHP版本也改成一致的,都是PHP8.2.3,大家有沒有遇到過這是什么問題???

后來重新弄了個(gè)服務(wù)器,沒有安裝composer,直接把本地代碼考上去,但是依然報(bào)錯(cuò)。本地就沒問題

報(bào)錯(cuò)信息

Fatal error: Declaration of Illuminate\Support\Collection::when($value, $callback, $default = null) must be compatible with Illuminate\Support\Enumerable::when($value, ?callable $callback = null, ?callable $default = null) in /share/project/shop_game_backed/vendor/illuminate/support/Traits/Conditionable.php on line 15
Worker[210136] process terminated with ERROR: E_COMPILE_ERROR "Declaration of Illuminate\Support\Collection::when($value, $callback, $default = null) must be compatible with Illuminate\Support\Enumerable::when($value, ?callable $callback = null, ?callable $default = null) in /share/project/shop_game_backed/vendor/illuminate/support/Traits/Conditionable.php on line 15"
worker[plugin.admin.task:210136] exit with status 65280

操作系統(tǒng)及workerman/webman等框架組件具體版本

服務(wù)器是Debian,本地是Ubuntu

版本是
"require": {
"php": ">=7.2",
"workerman/webman-framework": "^1.5.0",
"monolog/monolog": "^2.0",
"webman/admin": "^0.6.28",
"webman/gateway-worker": "^1.0",
"psr/container": "^1.1.1",
"php-di/php-di": "^6.3",
"doctrine/annotations": "^1.14",
"webman/console": "^2.1",
"webman/event": "^1.0",
"workerman/gatewayclient": "^3.1",
"alipaysdk/openapi": "3.0.40",
"alipaysdk/easysdk": "*"
},

511 3 0
3個(gè)回答

nitron

在服務(wù)器裝個(gè)composer然后composer install很難么?

  • lijing 2025-03-25

    開始都裝了,因?yàn)檎也坏綀?bào)錯(cuò)原因,挪到新服務(wù)器才沒安裝

Pink7

重新composer install

  • lijing 2025-03-25

    謝謝,已經(jīng)好用了。必須把鏡像改成騰訊云的才行,之前阿里云的鏡像install很多次都不行

lijing

解決了,composer的庫(kù)改成改成騰訊云之后,重新install好用了,阿里云是真不行。我本地很早之前改過了,服務(wù)器上當(dāng)時(shí)忘改成騰訊的了,一直用的阿里的。所以怎么install,update都不好用。

  • 暫無評(píng)論
??