[wp-trac] [WordPress Trac] #3907: WP reverts to default theme on file access collision

WordPress Trac wp-trac at lists.automattic.com
Mon Mar 5 07:14:09 GMT 2007


#3907: WP reverts to default theme on file access collision
----------------------+-----------------------------------------------------
 Reporter:  _ck_      |       Owner:  anonymous
     Type:  defect    |      Status:  new      
 Priority:  low       |   Milestone:  2.2      
Component:  Template  |     Version:           
 Severity:  normal    |    Keywords:           
----------------------+-----------------------------------------------------
 There is still no fix addressed to the problem on heavily accessed systems
 where the theme can revert back to default.

 This apparently happens if the "file_exists" test in
 [http://trac.wordpress.org/browser/trunk/wp-includes/theme.php theme.php]
 fails under any of a few different functions? PHP manual shows that
 "file_exists" can fail if a theme file is being replaced at the time or
 certain conditions occur under php safe mode.

 One way to reproduce this bug consistently is to upload "style.css"
 repeatedly while a site is active.

 I'd like to suggest that "file_exists" be replaced with a custom function
 that does at least a few retries over an adjustable time (a second or so)
 before completely giving up and reverting.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3907>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list