Title: socket_last_error upon migration
Last modified: August 20, 2016

---

# socket_last_error upon migration

 *  [holborner](https://wordpress.org/support/users/holborner/)
 * (@holborner)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/socket_last_error-upon-migration/)
 * Hi,
    I’m trying to move a site from the staging subdirectory to the root directory
   as follows: [http://www.jms.my/staging](http://www.jms.my/staging) to [http://www.jms.my](http://www.jms.my)
 * I’m using the “Migrate” option under Migration Assistant.
 * I filled in the old and new URLs, ftp password. Yet I keep getting this error
 *     ```
       Connecting to ftp.jms.my:21...
       Warning: socket_last_error() expects parameter 1 to be resource, null given in /home/jmssmy1/public_html/staging/wp-admin/includes/class-ftp-sockets.php on line 59
       Failed!
       Operation terminated...
   
       Please check your FTP connection details on the settings page
       ```
   
 * Any pointers would be much appreciated.
 * [http://wordpress.org/extend/plugins/wordpress-move/](http://wordpress.org/extend/plugins/wordpress-move/)

The topic ‘socket_last_error upon migration’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-move_be2f30.svg)
 * [WordPress Move](https://wordpress.org/plugins/wordpress-move/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-move/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-move/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-move/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-move/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-move/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [holborner](https://wordpress.org/support/users/holborner/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/socket_last_error-upon-migration/)
 * Status: not resolved