Warning: closedir(): supplied argument is not a valid Directory resource in /wp-includes/theme.php on line 166
|Reported by:||dustinsilva||Owned by:||anonymous|
Hello all! I recently upgraded to 2.3.2. I have 'warnings' enabled in apache and I get this warning while trying to change themes: 'Warning: closedir(): supplied argument is not a valid Directory resource in /wp-includes/theme.php on line 166'
Basically line 166 of file 'theme.php' tries to closedir($theme_dir); and I checked the value of $theme_dir at failure, and $theme_dir = ;
You wordpress Devs need to add 'if( is_dir($theme_dir))' to line 166, directly above @closedir(theme_dir)... incase $theme_dir isn't really a readable directory.
or do whatever you think is necessary, but this would be handy addition to this file.
I hope this is clear.
Not sure what 'Milestone' is in ticket submission form.
Change History (8)
- Priority changed from normal to low
- Severity changed from blocker to minor
- Keywords dev-feedback added; closedir warning not valid directory theme.php removed