• Resolved kickerman360

    (@kickerman360)


    Hi,
    The new(est) theme I was building was going well until I tried to use one of the templates (In this case a video type one). Previously I had tested it many times however I had made the page in question a draft to hide from visitors until I was done uploading content.

    I was going to publish the page with the template when I noticed the template didn’t appear. I had encountered this before but I simply disabled the theme and re-enabled it.

    Bad news, after disabling, apparently my theme has errors. Now it won’t work. The only thing I had done prior was edit the style.css file and tem-videos.php (template file)(which look fine) earlier with Notepad using FileZilla as my FTP client.

    I tried copying and pasting the code into new php files to no avail, re-uploading a backupm chaning chMOD Permissions. All my old themes work fine. Any ideas or help?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Does the template appear in the list of available templates when the video media is not included in the tem-videos.php file?

    If not what do you have as the commented out text at the top of your custom template php file?

    Thread Starter kickerman360

    (@kickerman360)

    Thanks for the reply. The issue is there is something wrong with the theme as WordPress won’t accept it. It says there is templates missing although technically a “theme” is the index.php file and style.css which are there. I checked the code and everything seems to be in order (No obvious mistakes).

    Is there anyway to manually activate a template via mySQL to help my debugging efforts? This is driving me nuts. I even tried the exact same theme files on another test WordPress install I have with the same error, missing template. Any more ideas?

    Thread Starter kickerman360

    (@kickerman360)

    FIXED

    I has added in a similar bit of code to the CSS File:

    /*———————–*/
    /* Template: Videos */
    /* ———————— */

    The problem was that that line of code is used in child themes (and in old versions of WordPress) so naturally WordPress was trying to find the theme “Videos.”

    Consider this lesson learned!

    BTW: I found the error by uploading the default theme then slowly adding my own theme files over it. I did style.css first and found the error quickly when I realized.

    Cool cool. Yes that will do it. And if all else fails trial-and-error with the default theme is still a good troubleshooting technique

    Hi,

    I have the exact same problem. Weird thing is that the theme works perfectly on my local installation. I have added Template name in the stylesheet as well.

    Any ideas?

    Same here. Local child theme runs without problems – throw it live and it fails.

    what’s up?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WordPress Theme Corrupt? Can’t find the “template” or “stylesheet”.’ is closed to new replies.