Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]dev版本 无法添加节点 #1558

Closed
4 tasks done
ghost opened this issue Sep 4, 2022 · 6 comments
Closed
4 tasks done

[BUG]dev版本 无法添加节点 #1558

ghost opened this issue Sep 4, 2022 · 6 comments

Comments

@ghost
Copy link

ghost commented Sep 4, 2022

请将 [ ] 替换为 [x] 。Please relpace [ ] with [x] .

  • 我已知晓并同意,如果我不遵循以下格式提交 issue,或者我使用的并非最新版本的 SSPanel UIM,或者我没有提供足够的信息,或者我没有选中这些框,则我的 issue 可能会被无条件关闭和锁定。 I acknowledge if I don't follow the format below, or I'm on an old commit, or I fail to provide sufficient information, or I don't check these box, my issue could be closed without any notice.
  • 我已知晓并同意,我需要把选项前的 [ ] 替换为 [x]。如果我在 x 之前或之后留了空格,则我的 issue 可能会被无条件关闭和锁定。 I acknowledge I have to replace [ ] with [x]. If I leave any space before or after x, my issue could be closed without any notice.
  • 我已确认我已经阅读过使用文档、Wiki,并在 issue 列表中查找相似的问题。I certify that I have read project Wiki and other issue may related to this one.
  • 我已知晓并同意,如果我不同意上述条件却仍然提交 issue,或即使同意上述条件但在提交 issue 时不按照条件执行,我的 issue 可被 SSPanel UIM 维护团队视为 spam、并在必要时会被举报到 GitHub。 I acknowledge if I disagree with the conditions above but still submit a issue, or if I agree conditions above but do not follow them when submitting a issue, my issue could be considered as spam by the SSPanel UIM maintenance team, and might be reported to GitHub if necessary.

Environment 环境
Your OS info, PHP/MySQL version and so on... 你的操作系统信息、PHP/MySQL 版本、以及其它所有可能相关的信息。
dev版本是php8.0 MySQL 10.4.14-MariaDB
Commit
The commit you on. 你当前的 SSPanel UIM 位于哪条 commit。
7046d60
Bug
The bug information. 请描述你遇到的 Bug。
更新到最新版本之后无法添加节点。
控制台报错。
Uncaught ReferenceError: JSONEditor is not defined
Reproduce
Steps to reproduce the bug. 请逐步描述如何复现 Bug。

Expected behavior
What you expected to happen. 请描述你预期的行为。

Logs
If applicable, add your PHP logs here. 如果需要,请在这里粘贴 PHP Log。

Addition
Additional context here. 如有可能,请提供更多相关资料。

@ghost
Copy link
Author

ghost commented Sep 4, 2022

在数据库中添加了,一个v2ray 节点,查看节点列表,该节点报错。
Slim Application Error
The application could not run because of the following error:

Details
Type: TypeError
Message: App\Models\Node::getArgs(): Return value must be of type array, null returned
File: /www/wwwroot/dev.fanqiangvpnnet.xyz/src/Models/Node.php
Line: 286
Trace
#0 /www/wwwroot/dev.fanqiangvpnnet.xyz/src/Utils/Tools.php(327): App\Models\Node->getArgs()
#1 /www/wwwroot/dev.fanqiangvpnnet.xyz/src/Models/Node.php(389): App\Utils\Tools::v2Array()
#2 /www/wwwroot/dev.fanqiangvpnnet.xyz/src/Controllers/User/NodeController.php(114): App\Models\Node->getV2RayItem()
#3 [internal function]: App\Controllers\User\NodeController->userNodeInfo()
#4 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(41): call_user_func()
#5 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/slim/slim/Slim/Route.php(344): Slim\Handlers\Strategies\RequestResponse->__invoke()
#6 /www/wwwroot/dev.fanqiangvpnnet.xyz/src/Middleware/Auth.php(21): Slim\Route->__invoke()
#7 [internal function]: App\Middleware\Auth->__invoke()
#8 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array()
#9 [internal function]: Slim\DeferredCallable->__invoke()
#10 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(67): call_user_func()
#11 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(116): Slim\Route->Slim{closure}()
#12 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/slim/slim/Slim/Route.php(316): Slim\Route->callMiddlewareStack()
#13 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/slim/slim/Slim/App.php(438): Slim\Route->run()
#14 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/zeuxisoo/slim-whoops/src/Zeuxisoo/Whoops/Provider/Slim/WhoopsMiddleware.php(70): Slim\App->__invoke()
#15 [internal function]: Zeuxisoo\Whoops\Provider\Slim\WhoopsMiddleware->__invoke()
#16 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array()
#17 [internal function]: Slim\DeferredCallable->__invoke()
#18 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(67): call_user_func()
#19 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(116): Slim\App->Slim{closure}()
#20 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/slim/slim/Slim/App.php(332): Slim\App->callMiddlewareStack()
#21 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/slim/slim/Slim/App.php(293): Slim\App->process()
#22 /www/wwwroot/dev.fanqiangvpnnet.xyz/public/index.php(41): Slim\App->run()
#23 {main}

@AutisticShark
Copy link
Contributor

Fixed in 43c3ae8

@fireinrain
Copy link

我也是部署了dev分支 也是在添加节点步骤 无法添加节点
image

@AutisticShark
Copy link
Contributor

開 debug 看看 500 請求裏面是什麽報錯?

@fireinrain
Copy link

開 debug 看看 500 請求裏面是什麽報錯?

谢谢提醒 看到解决了

@cyanogenic
Copy link

cyanogenic commented Sep 13, 2022

我这里出现了同样的问题
请求里出现 SQLSTATE[HY000]: General error: 1364 Field 'load' doesn't have a default value
当前的commit是e8778e4
看上去是因为迁移里的load字段没有默认值

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants