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

InvalidArgumentException Invalid IP: UNKNOWN #2507

Closed
lufog opened this issue May 16, 2019 · 4 comments
Closed

InvalidArgumentException Invalid IP: UNKNOWN #2507

lufog opened this issue May 16, 2019 · 4 comments

Comments

@lufog
Copy link

lufog commented May 16, 2019

When i try to login on site, i get:

InvalidArgumentException
Invalid IP: UNKNOWN

The site is still in development and launched on the embedded PHP server. Before this problem was not, it appeared suddenly, I think after the update. Authorization in admin plugin works fine.

@rhukster
Copy link
Member

Can you set the errors display to 1 and report back with the full stack trace?

@lufog
Copy link
Author

lufog commented May 17, 2019

@rhukster, that's what you need?
grav.log

Stack frames (37)
36 InvalidArgumentException
…\system\src\Grav\Common\Utils.php:1494
35 Grav\Common\Utils getSubnet
…\user\plugins\login\classes\Controller.php:134
34 Grav\Plugin\Login\Controller taskLogin
…\user\plugins\login\classes\Controller.php:105
33 Grav\Plugin\Login\Controller execute
…\user\plugins\login\login.php:506
32 Grav\Plugin\LoginPlugin loginController
…\vendor\symfony\event-dispatcher\EventDispatcher.php:212
31 Symfony\Component\EventDispatcher\EventDispatcher doDispatch
…\vendor\symfony\event-dispatcher\EventDispatcher.php:44
30 Symfony\Component\EventDispatcher\EventDispatcher dispatch
…\vendor\rockettheme\toolbox\Event\src\EventDispatcher.php:23
29 RocketTheme\Toolbox\Event\EventDispatcher dispatch
…\system\src\Grav\Common\Grav.php:365
28 Grav\Common\Grav fireEvent
…\system\src\Grav\Common\Processors\TasksProcessor.php:52
27 Grav\Common\Processors\TasksProcessor process
…\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php:45
26 Grav\Framework\RequestHandler\RequestHandler handle
…\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php:57
25 Grav\Framework\RequestHandler\RequestHandler handle
…\system\src\Grav\Common\Processors\RequestProcessor.php:52
24 Grav\Common\Processors\RequestProcessor process
…\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php:45
23 Grav\Framework\RequestHandler\RequestHandler handle
…\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php:57
22 Grav\Framework\RequestHandler\RequestHandler handle
…\system\src\Grav\Common\Processors\ThemesProcessor.php:27
21 Grav\Common\Processors\ThemesProcessor process
…\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php:45
20 Grav\Framework\RequestHandler\RequestHandler handle
…\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php:57
19 Grav\Framework\RequestHandler\RequestHandler handle
…\system\src\Grav\Common\Processors\PluginsProcessor.php:30
18 Grav\Common\Processors\PluginsProcessor process
…\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php:45
17 Grav\Framework\RequestHandler\RequestHandler handle
…\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php:57
16 Grav\Framework\RequestHandler\RequestHandler handle
…\system\src\Grav\Common\Processors\InitializeProcessor.php:78
15 Grav\Common\Processors\InitializeProcessor process
…\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php:45
14 Grav\Framework\RequestHandler\RequestHandler handle
…\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php:57
13 Grav\Framework\RequestHandler\RequestHandler handle
…\system\src\Grav\Common\Processors\DebuggerProcessor.php:27
12 Grav\Common\Processors\DebuggerProcessor process
…\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php:45
11 Grav\Framework\RequestHandler\RequestHandler handle
…\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php:57
10 Grav\Framework\RequestHandler\RequestHandler handle
…\system\src\Grav\Common\Processors\ErrorsProcessor.php:27
9 Grav\Common\Processors\ErrorsProcessor process
…\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php:45
8 Grav\Framework\RequestHandler\RequestHandler handle
…\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php:57
7 Grav\Framework\RequestHandler\RequestHandler handle
…\system\src\Grav\Common\Processors\LoggerProcessor.php:48
6 Grav\Common\Processors\LoggerProcessor process
…\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php:45
5 Grav\Framework\RequestHandler\RequestHandler handle
…\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php:57
4 Grav\Framework\RequestHandler\RequestHandler handle
…\system\src\Grav\Common\Processors\ConfigurationProcessor.php:28
3 Grav\Common\Processors\ConfigurationProcessor process
…\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php:45
2 Grav\Framework\RequestHandler\RequestHandler handle
…\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php:57
1 Grav\Framework\RequestHandler\RequestHandler handle
…\system\src\Grav\Common\Grav.php:249
0 Grav\Common\Grav process
…\index.php:53
Environment & details
GET Data empty
POST Data
username "lufog"
password "removed"
rememberme "1"
task "login.login"
login-form-nonce "acf97cb2e52800a288a9f3628cbd60c6"
Files empty
Cookies
noname-site-46d248d "31h4u007qqmhddot3k73mgepip"
noname-site-46d248d-admin "1o2peime86lb16tkiul77qnij3"
grav-tabs-state "{"tab-content.languages.http_headers.markdown.caching.twig.assets.errors.debugger.media.session.advanced":"data.errors"}"
Session
user User {#146}
redirect_after_login "/"
messages Message {#146}
Server/Request Data
DOCUMENT_ROOT "E:\Development\Web\org.noname\noname-grav"
REMOTE_ADDR "127.0.0.1"
REMOTE_PORT "50941"
SERVER_SOFTWARE "PHP 7.3.5 Development Server"
SERVER_PROTOCOL "HTTP/1.1"
SERVER_NAME "0.0.0.0"
SERVER_PORT "80"
REQUEST_URI "/ru"
REQUEST_METHOD "POST"
SCRIPT_NAME "/index.php"
SCRIPT_FILENAME "E:\Development\Web\org.noname\noname-grav\index.php"
PATH_INFO "/ru"
PHP_SELF "/index.php/ru"
HTTP_HOST "localhost"
HTTP_CONNECTION "keep-alive"
CONTENT_LENGTH "114"
HTTP_CONTENT_LENGTH "114"
HTTP_CACHE_CONTROL "max-age=0"
HTTP_ORIGIN "http://localhost"
HTTP_UPGRADE_INSECURE_REQUESTS "1"
CONTENT_TYPE "application/x-www-form-urlencoded"
HTTP_CONTENT_TYPE "application/x-www-form-urlencoded"
HTTP_USER_AGENT "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36 OPR/58.0.3135.132"
HTTP_ACCEPT "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8"
HTTP_REFERER "http://localhost/ru"
HTTP_ACCEPT_ENCODING "gzip, deflate, br"
HTTP_ACCEPT_LANGUAGE "ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7,uk;q=0.6"
HTTP_COOKIE "noname-site-46d248d=31h4u007qqmhddot3k73mgepip; noname-site-46d248d-admin=1o2peime86lb16tkiul77qnij3; grav-tabs-state={%22tab-content.languages.http_headers.markdown.caching.twig.assets.errors.debugger.media.session.advanced%22:%22data.errors%22}"
REQUEST_TIME_FLOAT 1558100710.8152
REQUEST_TIME 1558100710
PHP_CLI_ROUTER true
Environment Variables empty

@rhukster
Copy link
Member

Thanks that helps a lot. I’ll look into it.

@lufog lufog closed this as completed May 17, 2019
@lufog lufog reopened this May 17, 2019
@rhukster
Copy link
Member

Should be fixed with this: be558cc

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

2 participants