• I?′ve upgraded from 1.5 to 1.5.1.2 some days ago. But I found the theme I made for WP does?′t work properlly on 1.5.1.2. That theme is on the “mad1” folder inside the wp-content/themes folder, but WP search for theme files only in wp-content/themes/default folder, not in other themes. In my theme, there are many errors like that:

    Warning: comments_template(/usr/local/psa/home/vhosts/nn45.com/httpdocs/main/wp-content/themes/default/comments.php): failed to open stream: No such file or directory in /usr/local/psa/home/vhosts/nn45.com/httpdocs/main/wp-includes/comment-functions.php on line 28

    I?′ve deleted the “default” theme, to have only my theme and another test themes, but if I make that, the themes don?′t work properlly, and to make a theme work, I need to put it on the “default” theme folder, or put the theme files inside it own folder, and some files on the “default” folder to make it work. How can I fix that?

Viewing 8 replies - 1 through 8 (of 8 total)
  • WP is looking for comments.php and as that does not seem to exist in your theme, it is generating that error. Your theme needs it’s own comments.php – and any other files necessary.

    Thread Starter madcore

    (@madcore)

    podz, that?′s the problem. My theme have all the necesary files: comments.php, 404.php, archives.php… All the files, but Wp still looking for them to the “default” theme folders instead on the theme active folder.

    What are the first two lines in your theme’s stylesheet?

    Thread Starter madcore

    (@madcore)

    look stylesheet by yoursefl:

    https://www.nn45.com/main/wp-content/themes/mad1/style.css

    I know it isn?′t a good made stylesheet, but in 1.5 works perfect. Actually I use the same files on “mad1” and “default” themes folders to make site work

    Too bad I didn’t bet ??
    It is missing the first line:
    Template: mad1
    I suppose your theme is located in this folder .
    I should look like:
    /*
    Template: mad1
    Theme Name: No Named Art Seed
    Theme URI: https://www.ads-software.com/
    <== chnage this, too, it’s your site ??

    Thread Starter madcore

    (@madcore)

    Moshu, that works ^^. A lot of thanks for the help ^^

    If you want to know the explanation, here you go.
    If no “template” is defined in the heading of the style.css WP will automatically look for the default templates.
    You should also keep in mind that you can have N number of “themes” having only a style.css file in it’s folder, and using the template: xx... line to point to an existing full theme that has all the template files.

    I had the same error, and the template definition in style.css didn’t seem to matter.

    Going to the admin portion, I went to change the theme, and had 4 different errors pop up on the theme change page, all about permissions.

    I logged in via a SSH session, and in the wp-content directory, did


    chmod -R 755 themes/

    And the permissions fixed all the errors, and my comments are now back.

    Silwenae

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Problems with themes on WP1.5.1.2’ is closed to new replies.