Topic Closed
jogai
264 Posts

On a new Ubuntu 12.10 installation with php 5.4 running on nginx I got 2 warnings (see below)

When editing the .htaccess per instructions and setting define('gp_indexphp',false); it works fine.
 

fopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known
    in: /home/wtv/www/include/tool/RemoteGet.php
    on line: 180
    Request: /index.php/Admin_Permalinks
    Method: POST
Show Backtrace
array(
   [0] => array(
      [file] => (string)/home/wtv/www/include/tool/RemoteGet.php
      [line] => (integer)180
      [function] => (string)fopen
      [args] => array(
         [0] => (string)http://local_hosts_entry.org/Site_Map
         [1] => (string)r
         [2] => (boolean)false
         [3] => (resource)Resource id #22
      )
   )
   [1] => array(
      [file] => (string)/home/wtv/www/include/tool/RemoteGet.php
      [line] => (integer)135
      [function] => (string)stream_request
      [class] => (string)gpRemoteGet
      [object] => (string)admin_permalinks
      [type] => (string)->
      [args] => array(
         [0] => (string)http://local_hosts_entry.org/Site_Map
         [1] => array(
            [method] => (string)GET
            [timeout] => (integer)5
            [redirection] => (integer)5
            [httpversion] => (string)1.0
            [user-agent] => (string)gpEasy RemoteGet
         )
      )
   )
   [2] => array(
      [file] => (string)/home/wtv/www/include/tool/RemoteGet.php
      [line] => (integer)87
      [function] => (string)GetMethod
      [class] => (string)gpRemoteGet
      [object] => (string)admin_permalinks
      [type] => (string)->
      [args] => array(
         [0] => (string)stream
         [1] => (string)http://local_hosts_entry.org/Site_Map
         [2] => array(
         )
      )
   )
   [3] => array(
      [file] => (string)/home/wtv/www/include/tool/RemoteGet.php
      [line] => (integer)66
      [function] => (string)Get
      [class] => (string)gpRemoteGet
      [object] => (string)admin_permalinks
      [type] => (string)->
      [args] => array(
         [0] => (string)http://local_hosts_entry.org/Site_Map
         [1] => array(
         )
      )
   )
   [4] => array(
      [file] => (string)/home/wtv/www/include/admin/admin_permalinks.php
      [line] => (integer)299
      [function] => (string)Get_Successful
      [class] => (string)gpRemoteGet
      [object] => (string)admin_permalinks
      [type] => (string)->
      [args] => array(
         [0] => (string)http://local_hosts_entry.org/Site_Map
      )
   )
   [5] => array(
      [file] => (string)/home/wtv/www/include/admin/admin_permalinks.php
      [line] => (integer)265
      [function] => (string)TestResponse
      [class] => (string)admin_permalinks
      [object] => (string)admin_permalinks
      [type] => (string)->
      [args] => array(
      )
   )
   [6] => array(
      [file] => (string)/home/wtv/www/include/admin/admin_permalinks.php
      [line] => (integer)191
      [function] => (string)SaveRules
      [class] => (string)admin_permalinks
      [object] => (string)admin_permalinks
      [type] => (string)->
      [args] => array(
         [0] => (string)/home/wtv/www/.htaccess
         [1] => (string)
# BEGIN gpEasy


SetEnv gp_rewrite IYhfpdm

RewriteEngine On
RewriteBase "/"
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule /?(.*) "/index.php?$1" [qsa,L]


RewriteRule . "/index.php" [L]


# END gpEasy

      )
   )
)
Warning (2)
fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known
    in: /home/wtv/www/include/tool/RemoteGet.php
    on line: 262
    Request: /index.php/Admin_Permalinks
    Method: POST
Show Backtrace
array(
   [0] => array(
      [file] => (string)/home/wtv/www/include/tool/RemoteGet.php
      [line] => (integer)262
      [function] => (string)fsockopen
      [args] => array(
         [0] => (string)local_hosts_entry.org
         [1] => (integer)80
         [2] => (integer)0
         [3] => (string)
         [4] => (double)5
      )
   )
   [1] => array(
      [file] => (string)/home/wtv/www/include/tool/RemoteGet.php
      [line] => (integer)141
      [function] => (string)fsockopen_request
      [class] => (string)gpRemoteGet
      [object] => (string)admin_permalinks
      [type] => (string)->
      [args] => array(
         [0] => (string)http://local_hosts_entry.org/Site_Map
         [1] => array(
            [method] => (string)GET
            [timeout] => (integer)5
            [redirection] => (integer)5
            [httpversion] => (string)1.0
            [user-agent] => (string)gpEasy RemoteGet
         )
      )
   )
   [2] => array(
      [file] => (string)/home/wtv/www/include/tool/RemoteGet.php
      [line] => (integer)87
      [function] => (string)GetMethod
      [class] => (string)gpRemoteGet
      [object] => (string)admin_permalinks
      [type] => (string)->
      [args] => array(
         [0] => (string)fsockopen
         [1] => (string)http://local_hosts_entry.org/Site_Map
         [2] => array(
         )
      )
   )
   [3] => array(
      [file] => (string)/home/wtv/www/include/tool/RemoteGet.php
      [line] => (integer)66
      [function] => (string)Get
      [class] => (string)gpRemoteGet
      [object] => (string)admin_permalinks
      [type] => (string)->
      [args] => array(
         [0] => (string)http://local_hosts_entry.org/Site_Map
         [1] => array(
         )
      )
   )
   [4] => array(
      [file] => (string)/home/wtv/www/include/admin/admin_permalinks.php
      [line] => (integer)299
      [function] => (string)Get_Successful
      [class] => (string)gpRemoteGet
      [object] => (string)admin_permalinks
      [type] => (string)->
      [args] => array(
         [0] => (string)http://local_hosts_entry.org/Site_Map
      )
   )
   [5] => array(
      [file] => (string)/home/wtv/www/include/admin/admin_permalinks.php
      [line] => (integer)265
      [function] => (string)TestResponse
      [class] => (string)admin_permalinks
      [object] => (string)admin_permalinks
      [type] => (string)->
      [args] => array(
      )
   )
   [6] => array(
      [file] => (string)/home/wtv/www/include/admin/admin_permalinks.php
      [line] => (integer)191
      [function] => (string)SaveRules
      [class] => (string)admin_permalinks
      [object] => (string)admin_permalinks
      [type] => (string)->
      [args] => array(
         [0] => (string)/home/wtv/www/.htaccess
         [1] => (string)
# BEGIN gpEasy


SetEnv gp_rewrite IYhfpdm

RewriteEngine On
RewriteBase "/"
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule /?(.*) "/index.php?$1" [qsa,L]


RewriteRule . "/index.php" [L]


# END gpEasy

      )
   )
)

the server logs show:

PHP message: PHP Strict Standards:  Non-static method common::Ampersands() should not be called statically in /home/wtv/www/include/common.php on line 1304
PHP message: PHP Strict Standards:  Non-static method common::GetUrl() should not be called statically in /home/wtv/www/include/common.php on line 1307
PHP message: PHP Strict Standards:  Non-static method common::SpecialHref() should not be called statically in /home/wtv/www/include/co
2012/10/26 13:08:48 [error] 9493#0: *941 FastCGI sent in stderr: "::Ampersands() should not be called statically in /home/wtv/www/include/common.php on line 1304
PHP message: PHP Strict Standards:  Non-static method common::GetUrl() should not be called statically in /home/wtv/www/include/common.php on line 1307
PHP message: PHP Strict Standards:  Non-static method common::SpecialHref() should not be called statically in /home/wtv/www/include/common.php on line 1332
PHP message: PHP Strict Standards:  Non-static method common::Ampersands() should not be called statically in /home/wtv/www/include/common.php on line 1343
PHP message: PHP Strict Standards:  Non-static method common::Ampersands() should not be called statically in /home/wtv/www/include/common.php on line 1344
PHP message: PHP Strict Standards:  Non-static method common::HrefEncode() should not be called statically in /home/wtv/www/include/common.php on line 1360
PHP message: PHP Strict Standards:  Non-static method common::Ampersands() should not be called statically in /home/wtv/www/include/common.php on line 1307
PHP message: PHP Strict Standards:  Non-static method admin_tools::InlineEditArea() should not be called statically in /home/wtv/www/include/admin/admin_tools.php on line 244
PHP message: PHP Strict Standards:  Non-static method admin_tools::CheckStatus() should not be called statically in /home/wtv/www/include/admin/admin_tools.php on line 685
PHP message: PHP Strict Standards:  Non-static method admin_tools::ScheduledTasks() should not be called statically in /home/wtv/www/include/admin/admin_tools.php on line 686
PHP message: PHP Strict Standards:  Non-static method gpsession::close() should not be called statically in Unknown on line 0
PHP message: PHP Strict Standards:  Non-static method gpsession::close() should not be called statically in Unknown on line 0
PHP message: PHP Strict Standards:  Non-static method gpsession::Cron() should not be called statically in /home/wtv/www/include/tool/sessions.php on line 626
8 years ago#4777

Dominion IT
126 Posts
38.8K Downloads
16 Themes
5 Plugins

hmmm, this is or switching E_STRICT off or making the function static thus not allowing object calling if needed possibly in future.. Seems alot have this problem moving to 5.4.

8 years ago#4779

Josh S.
2K Posts
283K Downloads
16 Themes
18 Plugins

We couldn't do anything about the Non-static messages in previous versions because we supported php 4.3+. Now that the minimum php requirements are 5.2+ we can actually declare methods as static.

Beta releases are distributed with gpdebug = true by default. You can change it to false in the gpconfig.php file to prevent errors from popping up. You may also need to set display_errors = 0.

Thanks!

8 years ago#4780

jogai
264 Posts

I changed my logging to crit so my logs will make more sense.

8 years ago#4791

Topic Closed

 

News

elFinder 2.1.50 in Upcoming Release
12/28/2019

A new release for Typesetter is in the works with a lot of improvements including the ... Read More

Typesetter 5.1
8/12/2017

Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

More News

HH-Support

Company located in T├│rshavn, Faroe Islands. * Webpage Design * Consultant & Provider of a wide range of programs for visually impaired and dyslextics.

Find out more about our Provider Spotlight

Log In

  Register