Perhaps you did not get the correct template_func.php file on upgrade or you are using an image mod of some kind.
Lines 25 thru 35 of that file should look like the following IF it is not changed by a mod.
PHP Code:
function get_template_part($page_directory, $template_part, $file_extension = '.php') {
$directory_array = array();
if ($dir = @dir($page_directory)) {
while ($file = $dir->read()) {
if (!is_dir($page_directory . $file)) {
if (substr($file, strrpos($file, '.')) == $file_extension && preg_match($template_part, $file)) {
$directory_array[] = $file;
}
}
}
Don't just change the code if it's different. Find out why.
Then.... No worries, Mate.
Bookmarks