Title: WordPress 4.2 &amp;&amp; wp_tempname function
Last modified: August 24, 2016

---

# WordPress 4.2 && wp_tempname function

 *  [alban61](https://wordpress.org/support/users/alban61/)
 * (@alban61)
 * [11 years ago](https://wordpress.org/support/topic/wordpress-42-wp_tempname-function/)
 * Hi everyone,
 * Since i updated my wordpress website to 4.2, i am no more able to upgrade my 
   extensions from the backend. When i try to update for example contact form, i
   have this error:
 * Fatal error: Maximum function nesting level of ‘250’ reached, aborting! in website_root/
   wp-admin/includes/file.php on line 154
 * Looks like the wp_tempname not correctly working?
    in the function, var_dump 
   said:
 * var_dump($dir) = “/tmp/” (look good, tmp is 777 so no prob with it)
    var_dump(
   $filename) = “.maintenance” (look not good)
 * So basename on $filename failed and my apache die cause nested loop
    Anybody 
   else got this problem?
 * Thank you for you help

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

 *  Thread Starter [alban61](https://wordpress.org/support/users/alban61/)
 * (@alban61)
 * [11 years ago](https://wordpress.org/support/topic/wordpress-42-wp_tempname-function/#post-6062137)
 * I forgot to tell that updates failed at step where wordpress put the site in 
   maintenance mode.
 *  Thread Starter [alban61](https://wordpress.org/support/users/alban61/)
 * (@alban61)
 * [11 years ago](https://wordpress.org/support/topic/wordpress-42-wp_tempname-function/#post-6062247)
 * after a look @ [https://wordpress.org/support/topic/wordpress-42-plugin-update-not-working?replies=35](https://wordpress.org/support/topic/wordpress-42-plugin-update-not-working?replies=35)
 * I was able to update extensions after disabling them. For the theme, i activate
   an other theme, update mine and re-activate the theme.
 * Hope it’ll help others people, good evening.

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

The topic ‘WordPress 4.2 && wp_tempname function’ is closed to new replies.

## Tags

 * [file.php](https://wordpress.org/support/topic-tag/file-php/)
 * [nested loop](https://wordpress.org/support/topic-tag/nested-loop/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 1 participant
 * Last reply from: [alban61](https://wordpress.org/support/users/alban61/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/wordpress-42-wp_tempname-function/#post-6062247)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
