• Resolved yellowfellow333

    (@yellowfellow333)


    Hi!

    I just installed some plugin updates (not slash admin – had the current release 3.3.1 installed already) and logged out again.

    Then the following error message appeared above the login box:

    
    Warning: get_headers(): php_network_getaddresses: getaddrinfo failed: Name or service not known in xxx/wp-content/plugins/slash-admin/inc/login.php on line 18
    
    Warning: get_headers(https://www.xxx/wp-content/uploads/backend_login_logo.png): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in xxx/wp-content/plugins/slash-admin/inc/login.php on line 18
    
    Warning: getimagesize(): php_network_getaddresses: getaddrinfo failed: Name or service not known in xxx/wp-content/plugins/slash-admin/inc/login.php on line 19
    
    Warning: getimagesize(https://www.xxx/wp-content/uploads/backend_login_logo.png): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in xxx/wp-content/plugins/slash-admin/inc/login.php on line 19
    

    Fact is, that backend_login_logo.png is still shown correctly and I can’t find other problems either.

    Got PHP 7.0.24 running and wanted to switch to 7.1.10. Couldn’t see a difference here…

    How can I manage to get rid of the PHP errors?

    Best regards and thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    Those are not errors but warnings, so if you go to your site’s wp-config.php and set define(‘WP_DEBUG’, false); it should hide them. If your site is live, it would probably be a good idea to disable it anyway. See more about WP_DEBUG here: https://codex.www.ads-software.com/WP_DEBUG

    I tried to reproduce the issue, but I couldn’t get a similar warning. I imagine that it might be a combination of your specific server setup and the use of get_headers() function by the plugin. If you have ftp access, you could try to replace the file /wp-content/plugins/slash-admin/inc/login.php with that one: https://www.dropbox.com/s/p9jwagfguq3s9ok/slashadmin-inc-login.zip?dl=0 and see if it hides the warnings. If you do so, please let me know about the result.

    Thread Starter yellowfellow333

    (@yellowfellow333)

    Hello and thanks a lot for the really quick response (didn’t mention: I love your plugin).

    I know about warnings and debug state. Was also wondering why they came from out of nowhere.

    Maybe it wasn’t your plugin at all…
    Next day the whole website was down (incl. SFTP connection).
    Finally it turned out, that the domain lost its IP on the provider side. Fixed that with a workaround until it’s fixed on provider side and tested again: no warnings at all (also running PHP 7.1.10). (Y)

    So thank you again and best regards!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP erros login page’ is closed to new replies.