WordPress plugin - SFTP error

Get help with using the PHP Secure Communications Library.

Moderator: Nuxius

Forum rules
The purpose of this forum is to provide support for phpseclib, a pure PHP SSH / SFTP / RSA library.

Posts by new users are held in a moderation queue and are not publicly visible until the post is approved.

WordPress plugin - SFTP error

Postby aleksandr » Fri Apr 20, 2012 3:58 pm

Hi.

Thanks for your plugin but I have next error when try to upgrade WP plugins/core with SSH2 choice and with no SSH keys (just SFTP hostname/login/password):

Code: Select all
Warning: feof(): 395 is not a valid stream resource in /path/wp-content/plugins/ssh-sftp-updater-support/phpseclib/Net/SSH2.php on line 1868

Warning: fread(): 395 is not a valid stream resource in /path/wp-content/plugins/ssh-sftp-updater-support/phpseclib/Net/SSH2.php on line 1874

Warning: feof(): 395 is not a valid stream resource in /path/wp-content/plugins/ssh-sftp-updater-support/phpseclib/Net/SSH2.php on line 1868

Warning: fread(): 395 is not a valid stream resource in /path/wp-content/plugins/ssh-sftp-updater-support/phpseclib/Net/SSH2.php on line 1874


This repeats until browser is down.

FYI:
Site is hosted with luxsci.com on https
WP 3.3.1
The latest plugin 0.1 (it should have 0.2 version number actually ;) ) from WP repository.

Thanks!
aleksandr
Traveler
 
Posts: 12
Joined: Fri Apr 20, 2012 3:44 pm

Re: WordPress plugin - SFTP error

Postby TerraFrost » Tue Apr 24, 2012 5:09 am

Sorry for the delay - I had to kinda rebuild my Wordpress SFTP server.

Anyway, what happens when you replace your SSH2.php file with this one?:

http://www.frostjedi.com/terra/SSH2.txt

(note that this won't fix anything - it'll just provide me with info with which I might be able to diagnose / fix the problem)
TerraFrost
Legendary Guard
 
Posts: 12216
Joined: Wed Dec 04, 2002 6:37 am

Re: WordPress plugin - SFTP error

Postby aleksandr » Tue Apr 24, 2012 4:43 pm

Hi TerraFrost.

When I tried to upgrade one plugin for test purposes I've got this:
Code: Select all
resource(394) of type (stream)

The update process is starting. This process may take a while on some hosts, so please be patient.
 resource(400) of type (stream)

All updates have been completed.


Also plugin haven't been upgraded actually.

Thanks for the help.
aleksandr
Traveler
 
Posts: 12
Joined: Fri Apr 20, 2012 3:44 pm

Re: WordPress plugin - SFTP error

Postby TerraFrost » Wed Apr 25, 2012 12:10 am

If you could find (in class-wp-filesystem-ssh2.php) and uncomment the following:

//define('NET_SFTP_LOGGING', NET_SFTP_LOG_REALTIME);
TerraFrost
Legendary Guard
 
Posts: 12216
Joined: Wed Dec 04, 2002 6:37 am

Re: WordPress plugin - SFTP error

Postby aleksandr » Wed Apr 25, 2012 12:23 am

Here it is:
Code: Select all
resource(394) of type (stream)
-> NET_SFTP_INIT (0.0002s)
00000000  00:00:00:03                                      ....


<- NET_SFTP_VERSION (0.0002s)
00000000  00:00:00:03:00:00:00:08:76:65:72:73:69:6f:6e:73  ........versions
00000010  00:00:00:03:32:2c:33:00:00:00:18:70:6f:73:69:78  ....2,3....posix
00000020  2d:72:65:6e:61:6d:65:40:6f:70:65:6e:73:73:68:2e  -rename@openssh.
00000030  63:6f:6d:00:00:00:01:31:00:00:00:13:73:74:61:74  com....1....stat
00000040  76:66:73:40:6f:70:65:6e:73:73:68:2e:63:6f:6d:00  vfs@openssh.com.
00000050  00:00:01:32:00:00:00:14:66:73:74:61:74:76:66:73  ...2....fstatvfs
00000060  40:6f:70:65:6e:73:73:68:2e:63:6f:6d:00:00:00:01  @openssh.com....
00000070  32                                               2


-> NET_SFTP_REALPATH (0.0002s)
00000000  00:00:00:01:2e                                   .....


<- NET_SFTP_NAME (0.0002s)
00000000  00:00:00:01:00:00:00:01:2f:00:00:00:45:64:72:77  ......../...Edrw
00000010  78:72:2d:78:72:2d:78:20:20:20:20:33:20:6c:6d:68  xr-xr-x    3 lmh
00000020  61:62:65:72:23:72:6d:63:6d:65:64:2e:63:6f:6d:20  aber#sitename.com
00000030  67:72:6f:75:70:2d:38:37:33:38:20:20:20:20:20:34  group-8738     4
00000040  30:39:36:20:4a:75:6c:20:31:34:20:20:32:30:31:31  096 Jul 14  2011
00000050  20:2f:00:00:00:0f:00:00:00:00:00:00:10:00:00:01   /..............
00000060  4e:ad:00:00:22:22:00:00:41:ed:4e:5d:e3:36:4e:1f  N...""..A.N].6N.
00000070  49:76                                            Iv


-> NET_SFTP_REALPATH (0.0003s)
00000000  00:00:00:34:2f:78:64:31:2f:68:6f:6d:65:73:2f:68  ...4/xd1/homes/h
00000010  61:73:68:2f:33:38:2f:61:38:37:33:38:2f:37:37:2f  ash/38/a8738/77/
00000020  35:36:2f:75:38:35:36:37:37:2f:72:6d:63:6d:65:64  56/userid/sitename
00000030  2e:63:6f:6d:2f:77:77:77                          .com/www


<- NET_SFTP_STATUS (0.0001s)
00000000  00:00:00:02:00:00:00:0c:4e:6f:20:73:75:63:68:20  ........No such
00000010  66:69:6c:65:00:00:00:05:65:6e:2d:55:53           file....en-US



The update process is starting. This process may take a while on some hosts, so please be patient.
 resource(400) of type (stream)
-> NET_SFTP_INIT (0.0003s)
00000000  00:00:00:03                                      ....


<- NET_SFTP_VERSION (0.0002s)
00000000  00:00:00:03:00:00:00:08:76:65:72:73:69:6f:6e:73  ........versions
00000010  00:00:00:03:32:2c:33:00:00:00:18:70:6f:73:69:78  ....2,3....posix
00000020  2d:72:65:6e:61:6d:65:40:6f:70:65:6e:73:73:68:2e  -rename@openssh.
00000030  63:6f:6d:00:00:00:01:31:00:00:00:13:73:74:61:74  com....1....stat
00000040  76:66:73:40:6f:70:65:6e:73:73:68:2e:63:6f:6d:00  vfs@openssh.com.
00000050  00:00:01:32:00:00:00:14:66:73:74:61:74:76:66:73  ...2....fstatvfs
00000060  40:6f:70:65:6e:73:73:68:2e:63:6f:6d:00:00:00:01  @openssh.com....
00000070  32                                               2


-> NET_SFTP_REALPATH (0.0002s)
00000000  00:00:00:01:2e                                   .....


<- NET_SFTP_NAME (0.0002s)
00000000  00:00:00:01:00:00:00:01:2f:00:00:00:45:64:72:77  ......../...Edrw
00000010  78:72:2d:78:72:2d:78:20:20:20:20:33:20:6c:6d:68  xr-xr-x    3 lmh
00000020  61:62:65:72:23:72:6d:63:6d:65:64:2e:63:6f:6d:20  aber#sitename.com
00000030  67:72:6f:75:70:2d:38:37:33:38:20:20:20:20:20:34  group-8738     4
00000040  30:39:36:20:4a:75:6c:20:31:34:20:20:32:30:31:31  096 Jul 14  2011
00000050  20:2f:00:00:00:0f:00:00:00:00:00:00:10:00:00:01   /..............
00000060  4e:ad:00:00:22:22:00:00:41:ed:4e:5d:e3:36:4e:1f  N...""..A.N].6N.
00000070  49:76                                            Iv


-> NET_SFTP_REALPATH (0.0003s)
00000000  00:00:00:34:2f:78:64:31:2f:68:6f:6d:65:73:2f:68  ...4/xd1/homes/h
00000010  61:73:68:2f:33:38:2f:61:38:37:33:38:2f:37:37:2f  ash/38/a8738/77/
00000020  35:36:2f:75:38:35:36:37:37:2f:72:6d:63:6d:65:64  56/userid/sitename
00000030  2e:63:6f:6d:2f:77:77:77                          .com/www


<- NET_SFTP_STATUS (0.0001s)
00000000  00:00:00:02:00:00:00:0c:4e:6f:20:73:75:63:68:20  ........No such
00000010  66:69:6c:65:00:00:00:05:65:6e:2d:55:53           file....en-US

All updates have been completed.
aleksandr
Traveler
 
Posts: 12
Joined: Fri Apr 20, 2012 3:44 pm

Re: WordPress plugin - SFTP error

Postby TerraFrost » Thu Apr 26, 2012 5:40 am

In wp-admin/includes/class-wp-filesystem-base.php there's this:

Code: Select all
   /**
    * Locates a folder on the remote filesystem.
    *
    * Assumes that on Windows systems, Stripping off the Drive letter is OK
    * Sanitizes \\ to / in windows filepaths.
    *
    * @since 2.7
    * @access public
    *
    * @param string $folder the folder to locate
    * @return string The location of the remote path.
    */
   function find_folder($folder) {

      if ( strpos($this->method, 'ftp') !== false ) {
         $constant_overrides = array( 'FTP_BASE' => ABSPATH, 'FTP_CONTENT_DIR' => WP_CONTENT_DIR, 'FTP_PLUGIN_DIR' => WP_PLUGIN_DIR, 'FTP_LANG_DIR' => WP_LANG_DIR );
         foreach ( $constant_overrides as $constant => $dir )
            if ( defined($constant) && $folder === $dir )
               return trailingslashit(constant($constant));
      } elseif ( 'direct' == $this->method ) {
         $folder = str_replace('\\', '/', $folder); //Windows path sanitiation
         return trailingslashit($folder);
      }

      $folder = preg_replace('|^([a-z]{1}):|i', '', $folder); //Strip out windows driveletter if its there.
      $folder = str_replace('\\', '/', $folder); //Windows path sanitiation

      if ( isset($this->cache[ $folder ] ) )
         return $this->cache[ $folder ];

      if ( $this->exists($folder) ) { //Folder exists at that absolute path.
         $folder = trailingslashit($folder);
         $this->cache[ $folder ] = $folder;
         return $folder;
      }
      if ( $return = $this->search_for_folder($folder) )
         $this->cache[ $folder ] = $return;
      return $return;
   }

   /**
    * Locates a folder on the remote filesystem.
    *
    * Expects Windows sanitized path
    *
    * @since 2.7
    * @access private
    *
    * @param string $folder the folder to locate
    * @param string $base the folder to start searching from
    * @param bool $loop if the function has recursed, Internal use only
    * @return string The location of the remote path.
    */
   function search_for_folder($folder, $base = '.', $loop = false ) {
      if ( empty( $base ) || '.' == $base )
         $base = trailingslashit($this->cwd());

      $folder = untrailingslashit($folder);

      $folder_parts = explode('/', $folder);
      $last_path = $folder_parts[ count($folder_parts) - 1 ];

      $files = $this->dirlist( $base );

      foreach ( $folder_parts as $key ) {
         if ( $key == $last_path )
            continue; //We want this to be caught by the next code block.

         //Working from /home/ to /user/ to /wordpress/ see if that file exists within the current folder,
         // If its found, change into it and follow through looking for it.
         // If it cant find WordPress down that route, it'll continue onto the next folder level, and see if that matches, and so on.
         // If it reaches the end, and still cant find it, it'll return false for the entire function.
         if ( isset($files[ $key ]) ){
            //Lets try that folder:
            $newdir = trailingslashit(path_join($base, $key));
            if ( $this->verbose )
               printf( __('Changing to %s') . '<br/>', $newdir );
            if ( $ret = $this->search_for_folder( $folder, $newdir, $loop) )
               return $ret;
         }
      }

      //Only check this as a last resort, to prevent locating the incorrect install. All above procedures will fail quickly if this is the right branch to take.
      if (isset( $files[ $last_path ] ) ) {
         if ( $this->verbose )
            printf( __('Found %s') . '<br/>',  $base . $last_path );
         return trailingslashit($base . $last_path);
      }
      if ( $loop )
         return false; //Prevent this function from looping again.
      //As an extra last resort, Change back to / if the folder wasnt found. This comes into effect when the CWD is /home/user/ but WP is at /var/www/.... mainly dedicated setups.
      return $this->search_for_folder($folder, '/', true);

   }

Can you add, at the top of the search_for_folder() function, a exit('THIS FAR'); and tell me what the output then is?
TerraFrost
Legendary Guard
 
Posts: 12216
Joined: Wed Dec 04, 2002 6:37 am

Re: WordPress plugin - SFTP error

Postby aleksandr » Fri Apr 27, 2012 12:28 am

I think I did it wrong:

Now I had in wp-admin/includes/class-wp-filesystem-base.php:
Code: Select all
   /**
    * Locates a folder on the remote filesystem.
    *
    * Expects Windows sanitized path
    *
    * @since 2.7
    * @access private
    *
    * @param string $folder the folder to locate
    * @param string $base the folder to start searching from
    * @param bool $loop if the function has recursed, Internal use only
    * @return string The location of the remote path.
    */
exit('THIS FAR');
   function search_for_folder($folder, $base = '.', $loop = false ) {
      if ( empty( $base ) || '.' == $base )
         $base = trailingslashit($this->cwd());


That brings this:
Code: Select all
Parse error: syntax error, unexpected T_EXIT, expecting T_FUNCTION in /path/wp-admin/includes/class-wp-filesystem-base.php on line 189


Please advise.
aleksandr
Traveler
 
Posts: 12
Joined: Fri Apr 20, 2012 3:44 pm

Re: WordPress plugin - SFTP error

Postby TerraFrost » Fri Apr 27, 2012 4:50 am

At the top of but within that function. ie.

Instead of this:

Code: Select all
exit('THIS FAR');
   function search_for_folder($folder, $base = '.', $loop = false ) {

Do this:

Code: Select all
   function search_for_folder($folder, $base = '.', $loop = false ) {
exit('THIS FAR');
TerraFrost
Legendary Guard
 
Posts: 12216
Joined: Wed Dec 04, 2002 6:37 am

Re: WordPress plugin - SFTP error

Postby aleksandr » Fri Apr 27, 2012 10:10 am

OK, thanks. Here it is:
Code: Select all
resource(394) of type (stream)
-> NET_SFTP_INIT (0.0003s)
00000000  00:00:00:03                                      ....


<- NET_SFTP_VERSION (0.0005s)
00000000  00:00:00:03:00:00:00:08:76:65:72:73:69:6f:6e:73  ........versions
00000010  00:00:00:03:32:2c:33:00:00:00:18:70:6f:73:69:78  ....2,3....posix
00000020  2d:72:65:6e:61:6d:65:40:6f:70:65:6e:73:73:68:2e  -rename@openssh.
00000030  63:6f:6d:00:00:00:01:31:00:00:00:13:73:74:61:74  com....1....stat
00000040  76:66:73:40:6f:70:65:6e:73:73:68:2e:63:6f:6d:00  vfs@openssh.com.
00000050  00:00:01:32:00:00:00:14:66:73:74:61:74:76:66:73  ...2....fstatvfs
00000060  40:6f:70:65:6e:73:73:68:2e:63:6f:6d:00:00:00:01  @openssh.com....
00000070  32                                               2


-> NET_SFTP_REALPATH (0.0002s)
00000000  00:00:00:01:2e                                   .....


<- NET_SFTP_NAME (0.0005s)
00000000  00:00:00:01:00:00:00:01:2f:00:00:00:45:64:72:77  ......../...Edrw
00000010  78:72:2d:78:72:2d:78:20:20:20:20:33:20:6c:6d:68  xr-xr-x    3 lmh
00000020  61:62:65:72:23:72:6d:63:6d:65:64:2e:63:6f:6d:20  aber#sitename.com
00000030  67:72:6f:75:70:2d:38:37:33:38:20:20:20:20:20:34  group-8738     4
00000040  30:39:36:20:4a:75:6c:20:31:34:20:20:32:30:31:31  096 Jul 14  2011
00000050  20:2f:00:00:00:0f:00:00:00:00:00:00:10:00:00:01   /..............
00000060  4e:ad:00:00:22:22:00:00:41:ed:4e:5d:e3:36:4e:1f  N...""..A.N].6N.
00000070  49:76                                            Iv


-> NET_SFTP_REALPATH (0.0003s)
00000000  00:00:00:34:2f:78:64:31:2f:68:6f:6d:65:73:2f:68  ...4/xd1/homes/h
00000010  61:73:68:2f:33:38:2f:61:38:37:33:38:2f:37:37:2f  ash/38/a8738/77/
00000020  35:36:2f:75:38:35:36:37:37:2f:72:6d:63:6d:65:64  56/userid/sitename
00000030  2e:63:6f:6d:2f:77:77:77                          .com/www


<- NET_SFTP_STATUS (0.0006s)
00000000  00:00:00:02:00:00:00:0c:4e:6f:20:73:75:63:68:20  ........No such
00000010  66:69:6c:65:00:00:00:05:65:6e:2d:55:53           file....en-US


 THIS FAR
aleksandr
Traveler
 
Posts: 12
Joined: Fri Apr 20, 2012 3:44 pm

Re: WordPress plugin - SFTP error

Postby TerraFrost » Fri Apr 27, 2012 12:55 pm

Thanks.

If you could now undo that that'd be great. Once undone there's a "var $verbose = false;" towards the top of wp-admin/includes/class-wp-filesystem-base.php. If you could replace that with "var $verbose = true;" and tell me what it says that'd be great. Thanks!
TerraFrost
Legendary Guard
 
Posts: 12216
Joined: Wed Dec 04, 2002 6:37 am

Re: WordPress plugin - SFTP error

Postby aleksandr » Fri Apr 27, 2012 1:02 pm

I've got this now:
Code: Select all
resource(394) of type (stream)
-> NET_SFTP_INIT (0.0002s)
00000000  00:00:00:03                                      ....


<- NET_SFTP_VERSION (0.0005s)
00000000  00:00:00:03:00:00:00:08:76:65:72:73:69:6f:6e:73  ........versions
00000010  00:00:00:03:32:2c:33:00:00:00:18:70:6f:73:69:78  ....2,3....posix
00000020  2d:72:65:6e:61:6d:65:40:6f:70:65:6e:73:73:68:2e  -rename@openssh.
00000030  63:6f:6d:00:00:00:01:31:00:00:00:13:73:74:61:74  com....1....stat
00000040  76:66:73:40:6f:70:65:6e:73:73:68:2e:63:6f:6d:00  vfs@openssh.com.
00000050  00:00:01:32:00:00:00:14:66:73:74:61:74:76:66:73  ...2....fstatvfs
00000060  40:6f:70:65:6e:73:73:68:2e:63:6f:6d:00:00:00:01  @openssh.com....
00000070  32                                               2


-> NET_SFTP_REALPATH (0.0002s)
00000000  00:00:00:01:2e                                   .....


<- NET_SFTP_NAME (0.0005s)
00000000  00:00:00:01:00:00:00:01:2f:00:00:00:45:64:72:77  ......../...Edrw
00000010  78:72:2d:78:72:2d:78:20:20:20:20:33:20:6c:6d:68  xr-xr-x    3 lmh
00000020  61:62:65:72:23:72:6d:63:6d:65:64:2e:63:6f:6d:20  aber#sitename.com
00000030  67:72:6f:75:70:2d:38:37:33:38:20:20:20:20:20:34  group-8738     4
00000040  30:39:36:20:4a:75:6c:20:31:34:20:20:32:30:31:31  096 Jul 14  2011
00000050  20:2f:00:00:00:0f:00:00:00:00:00:00:10:00:00:01   /..............
00000060  4e:ad:00:00:22:22:00:00:41:ed:4e:5d:e3:36:4e:1f  N...""..A.N].6N.
00000070  49:76                                            Iv


-> NET_SFTP_REALPATH (0.0003s)
00000000  00:00:00:34:2f:78:64:31:2f:68:6f:6d:65:73:2f:68  ...4/xd1/homes/h
00000010  61:73:68:2f:33:38:2f:61:38:37:33:38:2f:37:37:2f  ash/38/a8738/77/
00000020  35:36:2f:75:38:35:36:37:37:2f:72:6d:63:6d:65:64  56/userid/sitename
00000030  2e:63:6f:6d:2f:77:77:77                          .com/www


<- NET_SFTP_STATUS (0.0005s)
00000000  00:00:00:02:00:00:00:0c:4e:6f:20:73:75:63:68:20  ........No such
00000010  66:69:6c:65:00:00:00:05:65:6e:2d:55:53           file....en-US



The update process is starting. This process may take a while on some hosts, so please be patient.
 resource(400) of type (stream)
-> NET_SFTP_INIT (0.0003s)
00000000  00:00:00:03                                      ....


<- NET_SFTP_VERSION (0.0005s)
00000000  00:00:00:03:00:00:00:08:76:65:72:73:69:6f:6e:73  ........versions
00000010  00:00:00:03:32:2c:33:00:00:00:18:70:6f:73:69:78  ....2,3....posix
00000020  2d:72:65:6e:61:6d:65:40:6f:70:65:6e:73:73:68:2e  -rename@openssh.
00000030  63:6f:6d:00:00:00:01:31:00:00:00:13:73:74:61:74  com....1....stat
00000040  76:66:73:40:6f:70:65:6e:73:73:68:2e:63:6f:6d:00  vfs@openssh.com.
00000050  00:00:01:32:00:00:00:14:66:73:74:61:74:76:66:73  ...2....fstatvfs
00000060  40:6f:70:65:6e:73:73:68:2e:63:6f:6d:00:00:00:01  @openssh.com....
00000070  32                                               2


-> NET_SFTP_REALPATH (0.0002s)
00000000  00:00:00:01:2e                                   .....


<- NET_SFTP_NAME (0.0005s)
00000000  00:00:00:01:00:00:00:01:2f:00:00:00:45:64:72:77  ......../...Edrw
00000010  78:72:2d:78:72:2d:78:20:20:20:20:33:20:6c:6d:68  xr-xr-x    3 lmh
00000020  61:62:65:72:23:72:6d:63:6d:65:64:2e:63:6f:6d:20  aber#sitename.com
00000030  67:72:6f:75:70:2d:38:37:33:38:20:20:20:20:20:34  group-8738     4
00000040  30:39:36:20:4a:75:6c:20:31:34:20:20:32:30:31:31  096 Jul 14  2011
00000050  20:2f:00:00:00:0f:00:00:00:00:00:00:10:00:00:01   /..............
00000060  4e:ad:00:00:22:22:00:00:41:ed:4e:5d:e3:36:4e:1f  N...""..A.N].6N.
00000070  49:76                                            Iv


-> NET_SFTP_REALPATH (0.0003s)
00000000  00:00:00:34:2f:78:64:31:2f:68:6f:6d:65:73:2f:68  ...4/xd1/homes/h
00000010  61:73:68:2f:33:38:2f:61:38:37:33:38:2f:37:37:2f  ash/38/a8738/77/
00000020  35:36:2f:75:38:35:36:37:37:2f:72:6d:63:6d:65:64  56/userid/sitename
00000030  2e:63:6f:6d:2f:77:77:77                          .com/www


<- NET_SFTP_STATUS (0.0005s)
00000000  00:00:00:02:00:00:00:0c:4e:6f:20:73:75:63:68:20  ........No such
00000010  66:69:6c:65:00:00:00:05:65:6e:2d:55:53           file....en-US



All updates have been completed.
aleksandr
Traveler
 
Posts: 12
Joined: Fri Apr 20, 2012 3:44 pm

Re: WordPress plugin - SFTP error

Postby aleksandr » Tue May 01, 2012 1:15 am

TerraFrost, any updates on this issue?

Thanks.
aleksandr
Traveler
 
Posts: 12
Joined: Fri Apr 20, 2012 3:44 pm

Re: WordPress plugin - SFTP error

Postby TerraFrost » Tue May 01, 2012 10:19 am

Undo the previous changes I had you make.

In the search_for_folders() function, find this:

Code: Select all
            if ( $ret = $this->search_for_folder( $folder, $newdir, $loop) )
               return $ret;

Replace it with this:

Code: Select all
            if ( $ret = $this->search_for_folder( $folder, $newdir, $loop) ){
exit('THIS FAR x1');
               return $ret;
}

Find this:

Code: Select all
      return $this->search_for_folder($folder, '/', true);

Before it, add this:

Code: Select all
exit('THIS FAR x2');
TerraFrost
Legendary Guard
 
Posts: 12216
Joined: Wed Dec 04, 2002 6:37 am

Re: WordPress plugin - SFTP error

Postby aleksandr » Tue May 01, 2012 5:28 pm

Thanks for getting back.

Here is the new result:
Code: Select all
resource(394) of type (stream)
-> NET_SFTP_INIT (0.0002s)
00000000  00:00:00:03                                      ....


<- NET_SFTP_VERSION (0.0002s)
00000000  00:00:00:03:00:00:00:08:76:65:72:73:69:6f:6e:73  ........versions
00000010  00:00:00:03:32:2c:33:00:00:00:18:70:6f:73:69:78  ....2,3....posix
00000020  2d:72:65:6e:61:6d:65:40:6f:70:65:6e:73:73:68:2e  -rename@openssh.
00000030  63:6f:6d:00:00:00:01:31:00:00:00:13:73:74:61:74  com....1....stat
00000040  76:66:73:40:6f:70:65:6e:73:73:68:2e:63:6f:6d:00  vfs@openssh.com.
00000050  00:00:01:32:00:00:00:14:66:73:74:61:74:76:66:73  ...2....fstatvfs
00000060  40:6f:70:65:6e:73:73:68:2e:63:6f:6d:00:00:00:01  @openssh.com....
00000070  32                                               2


-> NET_SFTP_REALPATH (0.0002s)
00000000  00:00:00:01:2e                                   .....


<- NET_SFTP_NAME (0.0002s)
00000000  00:00:00:01:00:00:00:01:2f:00:00:00:45:64:72:77  ......../...Edrw
00000010  78:72:2d:78:72:2d:78:20:20:20:20:33:20:6c:6d:68  xr-xr-x    3 lmh
00000020  61:62:65:72:23:72:6d:63:6d:65:64:2e:63:6f:6d:20  aber#sitename.com
00000030  67:72:6f:75:70:2d:38:37:33:38:20:20:20:20:20:34  group-8738     4
00000040  30:39:36:20:4a:75:6c:20:31:34:20:20:32:30:31:31  096 Jul 14  2011
00000050  20:2f:00:00:00:0f:00:00:00:00:00:00:10:00:00:01   /..............
00000060  4e:ad:00:00:22:22:00:00:41:ed:4e:5d:e3:36:4e:1f  N...""..A.N].6N.
00000070  49:76                                            Iv


-> NET_SFTP_REALPATH (0.0003s)
00000000  00:00:00:34:2f:78:64:31:2f:68:6f:6d:65:73:2f:68  ...4/xd1/homes/h
00000010  61:73:68:2f:33:38:2f:61:38:37:33:38:2f:37:37:2f  ash/38/a8738/77/
00000020  35:36:2f:75:38:35:36:37:37:2f:72:6d:63:6d:65:64  56/userid/sitename
00000030  2e:63:6f:6d:2f:77:77:77                          .com/www


<- NET_SFTP_STATUS (0.0001s)
00000000  00:00:00:02:00:00:00:0c:4e:6f:20:73:75:63:68:20  ........No such
00000010  66:69:6c:65:00:00:00:05:65:6e:2d:55:53           file....en-US


 THIS FAR x2
aleksandr
Traveler
 
Posts: 12
Joined: Fri Apr 20, 2012 3:44 pm

Re: WordPress plugin - SFTP error

Postby TerraFrost » Wed May 02, 2012 3:25 pm

Do you have the same problem with FTP or Direct access mode or whatever?

Also, if you could undo the changes I previously had you make and then do this:

Code: Select all
#
#-----[ FIND ]------------------------------------------
#
   function search_for_folder($folder, $base = '.', $loop = false ) {
#
#-----[ AFTER, ADD ]------------------------------------
#
   echo '<pre>';
   print_r(func_get_args());
   echo '</pre>';
TerraFrost
Legendary Guard
 
Posts: 12216
Joined: Wed Dec 04, 2002 6:37 am

Next

Return to phpseclib support

Who is online

Users browsing this forum: No registered users and 0 guests