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版本,shadowsocks节点报错,无法查看。 #1552

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

[BUG]dev版本,shadowsocks节点报错,无法查看。 #1552

ghost opened this issue Sep 1, 2022 · 2 comments

Comments

@ghost
Copy link

ghost commented Sep 1, 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。
16af188
Bug
The bug information. 请描述你遇到的 Bug。
①当shadowsocks 是普通端口时,用户端shadowsocks 节点报错。日志如下

Slim Application Error
The application could not run because of the following error:

Details
Type: TypeError
Message: App\Utils\URL::SSCanConnect(): Return value must be of type bool, int returned
File: /www/wwwroot/dev.fanqiangvpnnet.xyz/src/Utils/URL.php
Line: 99
Trace
#0 /www/wwwroot/dev.fanqiangvpnnet.xyz/storage/framework/smarty/compile/decf62a9fd76acbb3735cf41b11fc05629324055_0.file.node_ss_ssr.tpl.php(161): App\Utils\URL::SSCanConnect()
#1 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_6310cb953b4369_66329501()
#2 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode()
#3 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled->render()
#4 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(232): Smarty_Internal_Template->render()
#5 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(134): Smarty_Internal_TemplateBase->_execute()
#6 /www/wwwroot/dev.fanqiangvpnnet.xyz/src/Controllers/User/NodeController.php(128): Smarty_Internal_TemplateBase->display()
#7 [internal function]: App\Controllers\User\NodeController->userNodeInfo()
#8 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(41): call_user_func()
#9 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/slim/slim/Slim/Route.php(344): Slim\Handlers\Strategies\RequestResponse->__invoke()
#10 /www/wwwroot/dev.fanqiangvpnnet.xyz/src/Middleware/Auth.php(21): Slim\Route->__invoke()
#11 [internal function]: App\Middleware\Auth->__invoke()
#12 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array()
#13 [internal function]: Slim\DeferredCallable->__invoke()
#14 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(67): call_user_func()
#15 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(116): Slim\Route->Slim{closure}()
#16 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/slim/slim/Slim/Route.php(316): Slim\Route->callMiddlewareStack()
#17 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/slim/slim/Slim/App.php(438): Slim\Route->run()
#18 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/zeuxisoo/slim-whoops/src/Zeuxisoo/Whoops/Provider/Slim/WhoopsMiddleware.php(70): Slim\App->__invoke()
#19 [internal function]: Zeuxisoo\Whoops\Provider\Slim\WhoopsMiddleware->__invoke()
#20 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array()
#21 [internal function]: Slim\DeferredCallable->__invoke()
#22 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(67): call_user_func()
#23 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(116): Slim\App->Slim{closure}()
#24 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/slim/slim/Slim/App.php(332): Slim\App->callMiddlewareStack()
#25 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/slim/slim/Slim/App.php(293): Slim\App->process()
#26 /www/wwwroot/dev.fanqiangvpnnet.xyz/public/index.php(41): Slim\App->run()
#27 {main}

②当shadowsocks 节点是单端口多用户时,用户端整个节点列表都报错,无法查看任何节点。报错如下。
Slim Application Error
The application could not run because of the following error:

Details
Type: Error
Message: Call to a member function getArgs() on string
File: /www/wwwroot/dev.fanqiangvpnnet.xyz/src/Utils/Tools.php
Line: 657
Trace
#0 /www/wwwroot/dev.fanqiangvpnnet.xyz/src/Models/Node.php(323): App\Utils\Tools::outPort()
#1 /www/wwwroot/dev.fanqiangvpnnet.xyz/src/Controllers/User/NodeController.php(67): App\Models\Node->getOffsetPort()
#2 [internal function]: App\Controllers\User\NodeController->userNodePage()
#3 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(41): call_user_func()
#4 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/slim/slim/Slim/Route.php(344): Slim\Handlers\Strategies\RequestResponse->__invoke()
#5 /www/wwwroot/dev.fanqiangvpnnet.xyz/src/Middleware/Auth.php(21): Slim\Route->__invoke()
#6 [internal function]: App\Middleware\Auth->__invoke()
#7 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array()
#8 [internal function]: Slim\DeferredCallable->__invoke()
#9 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(67): call_user_func()
#10 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(116): Slim\Route->Slim{closure}()
#11 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/slim/slim/Slim/Route.php(316): Slim\Route->callMiddlewareStack()
#12 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/slim/slim/Slim/App.php(438): Slim\Route->run()
#13 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/zeuxisoo/slim-whoops/src/Zeuxisoo/Whoops/Provider/Slim/WhoopsMiddleware.php(70): Slim\App->__invoke()
#14 [internal function]: Zeuxisoo\Whoops\Provider\Slim\WhoopsMiddleware->__invoke()
#15 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array()
#16 [internal function]: Slim\DeferredCallable->__invoke()
#17 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(67): call_user_func()
#18 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(116): Slim\App->Slim{closure}()
#19 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/slim/slim/Slim/App.php(332): Slim\App->callMiddlewareStack()
#20 /www/wwwroot/dev.fanqiangvpnnet.xyz/vendor/slim/slim/Slim/App.php(293): Slim\App->process()
#21 /www/wwwroot/dev.fanqiangvpnnet.xyz/public/index.php(41): Slim\App->run()
#22 {main}
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. 如有可能,请提供更多相关资料。

@AutisticShark
Copy link
Contributor

因爲整個 getArgs() 的用法都搞錯了,它應該是要丟整個 node 對象進去,而不是只給一個 server 的 string。
應該在 9395c54 中被修復了。

@AutisticShark
Copy link
Contributor

Fixed in 9395c54

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

No branches or pull requests

1 participant