Title: WordPress Automatic Update &#8211; FTP problem
Last modified: August 19, 2016

---

# WordPress Automatic Update – FTP problem

 *  [jupstejuho](https://wordpress.org/support/users/jupstejuho/)
 * (@jupstejuho)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/wordpress-automatic-update-ftp-problem/)
 * Hello! I am running my WordPress blog on my own Ubuntu Server with traditional
   AMP configuration. I have never been able to update WordPress automatically. 
   When I try to update now, I get these lines:
 *     ```
       Warning: Invalid argument supplied for foreach() in /var/www/wp-admin/includes/class-wp-filesystem-ftpext.php on line 340
   
       Warning: Invalid argument supplied for foreach() in /var/www/wp-admin/includes/class-wp-filesystem-ftpext.php on line 340
   
       Downloading update from http://fi.wordpress.org/wordpress-2.9.1-fi.zip
   
       Extracting update
   
       Warning: Invalid argument supplied for foreach() in /var/www/wp-admin/includes/class-wp-filesystem-ftpext.php on line 340
   
       Warning: Invalid argument supplied for foreach() in /var/www/wp-admin/includes/class-wp-filesystem-ftpext.php on line 340
   
       Warning: Invalid argument supplied for foreach() in /var/www/wp-admin/includes/class-wp-filesystem-ftpext.php on line 340
   
       Warning: Invalid argument supplied for foreach() in /var/www/wp-admin/includes/class-wp-filesystem-ftpext.php on line 340
   
       Copying file failed: upgrade/wordpress-2.tmp/wordpress/wp-includes/meta.php
   
       Installation failed!
       ```
   
 * ^^ The upper lines between code tags were originally Finnish because I’m using
   WP Finnish Translation, but I translated them here at this message edit box (
   they are not just exactly like the original ones but you can get the thing propably.
 * Any help is much appriciated! I have googled but I haven’t found a solution yet.
   Thanks in advance!

Viewing 1 replies (of 1 total)

 *  Thread Starter [jupstejuho](https://wordpress.org/support/users/jupstejuho/)
 * (@jupstejuho)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/wordpress-automatic-update-ftp-problem/#post-1335635)
 * Oh, and in the class-wp-filesystem-ftpext.php file, line 340 looks like this:
   `
   foreach ( $list as $k => $v ) {`

Viewing 1 replies (of 1 total)

The topic ‘WordPress Automatic Update – FTP problem’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [jupstejuho](https://wordpress.org/support/users/jupstejuho/)
 * Last activity: [16 years, 5 months ago](https://wordpress.org/support/topic/wordpress-automatic-update-ftp-problem/#post-1335635)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
