Title: Update-core.php error
Last modified: August 24, 2016

---

# Update-core.php error

 *  Resolved [4boards](https://wordpress.org/support/users/4boards/)
 * (@4boards)
 * [11 years ago](https://wordpress.org/support/topic/update-corephp-error/)
 * The following error was logged at the same time as upgrade.php, file.php & upgrade-
   core.php appear to have been updated automatically:
 * PHP Warning: Invalid argument supplied for foreach() in /home/boardsc/public_html/
   wp-admin/includes/update-core.php on line 1252
 * Here are lines 1252 & 1253 of update-core.php
    foreach ( glob( $directory . ‘*’,
   GLOB_ONLYDIR ) as $dir ) { $files = array_merge( $files, _upgrade_422_find_genericons_files_in_folder(
   $dir ) );
 * Site is [http://www.4boards.co.uk](http://www.4boards.co.uk)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [wslade](https://wordpress.org/support/users/wslade/)
 * (@wslade)
 * [11 years ago](https://wordpress.org/support/topic/update-corephp-error/#post-6103512)
 * Is anything not working? Did your site site upgrade to the proper version?
 *  Thread Starter [4boards](https://wordpress.org/support/users/4boards/)
 * (@4boards)
 * [11 years ago](https://wordpress.org/support/topic/update-corephp-error/#post-6103665)
 * Looks like it has resolved by more updates, now 4.2.2
 * Happy that it is resolved.
 *  [Hostnet](https://wordpress.org/support/users/hostnet/)
 * (@hostnet)
 * [11 years ago](https://wordpress.org/support/topic/update-corephp-error/#post-6103738)
 * I just did an automatic update from 4.1.1 to 4.2.2 and got this message.
    Now
   i get “connection was reset” when I try to go to admin page
 * Please advise
 * Thanks,
 * Kirill
 *  [monikos](https://wordpress.org/support/users/monikos/)
 * (@monikos)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/update-corephp-error/#post-6103747)
 * The same here: I just did an automatic update from 4.1.1 to 4.2.2 and got this
   message:
    wordpress update warning invalid argument supplied for foreach() ……..
   update-core.php line 1252
 * I reinstalled and still the same error?
 * Any sugests? Thanks
 *  [monikos](https://wordpress.org/support/users/monikos/)
 * (@monikos)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/update-corephp-error/#post-6103748)
 * It is solved: moved the whole website to another server with php 5.5 /it been
   oldest 5.3…/.
    So, now the problem is solved.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Update-core.php error’ is closed to new replies.

## Tags

 * [invalid argument](https://wordpress.org/support/topic-tag/invalid-argument/)
 * [update-core.php](https://wordpress.org/support/topic-tag/update-core-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 4 participants
 * Last reply from: [monikos](https://wordpress.org/support/users/monikos/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/update-corephp-error/#post-6103748)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
