{"id":6062011,"date":"2015-04-26T14:28:39","date_gmt":"2015-04-26T14:28:39","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/wordpress-42-wp_tempname-function\/"},"modified":"2016-08-24T15:13:41","modified_gmt":"2016-08-24T15:13:41","slug":"wordpress-42-wp_tempname-function","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/wordpress-42-wp_tempname-function\/","title":{"rendered":"WordPress 4.2 &amp;&amp; wp_tempname function"},"content":{"rendered":"<p>Hi everyone,<\/p>\n<p>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:<\/p>\n<p>Fatal error: Maximum function nesting level of &#8216;250&#8217; reached, aborting! in website_root\/wp-admin\/includes\/file.php on line 154<\/p>\n<p>Looks like the wp_tempname not correctly working?<br \/>\nin the function, var_dump said:<\/p>\n<p>var_dump($dir) = &#8220;\/tmp\/&#8221; (look good, tmp is 777 so no prob with it)<br \/>\nvar_dump($filename) = &#8220;.maintenance&#8221; (look not good)<\/p>\n<p>So basename on $filename failed and my apache die cause nested loop<br \/>\nAnybody else got this problem?<\/p>\n<p>Thank you for you help<\/p>\n","protected":false},"template":"","class_list":["post-6062011","topic","type-topic","status-closed","hentry","topic-tag-file-php","topic-tag-nested-loop"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6062011","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6062011\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=6062011"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}