WP cannot write .htaccess files on blog_public changes, including site creation
Sonja reported that the system hangs when creating a site. I did some digging and discovered that it only happens when setting a privacy level lower than 0. It turns out that anything lower than 0 triggers an .htaccess write from our CAC_File_Protection system, and .htaccess writes are hanging because insert_with_markers() calls fclose(), and fclose() is somehow broken.
My guess is that this is due to this weekend's maintenance, which involved a filesystem change. I'm unsure how to patch the Commons without creating privacy issues, so I'm going to contact Lihua to see if he can help.
#1 Updated by Boone Gorges 3 months ago
I've written to Lihua.
I've also commented out references to flock() in insert_with_markers() as a temporary fix. This increases the possibility of race conditions that might result in a corrupted .htaccess file, but I don't think this is a serious concern for now.