No Templates in Edit Page Template is missing???
-
Hi.
I already looked through the support forums and various Google searches for the answer to this and I cannot figure out what is going on. Please help!!!! I’m going nuts over this. Here’s what happened with a custom theme:
I created a new page template and uploaded it to my custom theme. Then, when I went to apply the template, I noticed that there was no “Page Template” box under “Advanced Options” on the Edit Pages page.
I found a few posts on the forums that suggested that I clear all private data – this didn’t work. It was also suggested that I switch to the default theme and then back to my custom theme… this is where the plot thickens. When I went to switch the theme, WordPress said that my theme was broken. Error Message: “Template is missing.”.
I dug through the source and found the this error is generated by the get_themes() function which is defined on line 122 of /admin/theme.php. What is strange is that it only seems to be programmed to generate this error when the theme does not possess an index.php file. My theme does contain both index.php and style.css. What’s even a little stranger here is the fact that when I visit /wp-admin/themes.php, WordPress does NOT revert back to the default theme as it should if the theme is truly broken:
?php if ( ! validate_current_theme() ) : ?> 24 <div id="message1" class="updated fade"><p><?php _e('The active theme is broken. Reverting to the default theme.'); ?></p></div>
Anyway, I have tried switching to the default theme and then back to the custom theme (I did this manually by altering a few fields in the options table), but still no template drop down.
I have made sure that the template names are exactly the same as the file names (this was suggested in a post I read, though I doubt the validity of this practice), no help.
<?php /* Template Name: t-two-column */ ?>
<?php /* Template Name: t-aux */ ?>
I also reinstalled WordPress… no help.
If anyone knows what is going on here, please help me out. I have never had this happen before – and I’m about ready to through my monitor across the room ??
Thanks!!!!!
-Mike
- The topic ‘No Templates in Edit Page Template is missing???’ is closed to new replies.