Forums

WP 1.5 install themes does not work (19 posts)

  1. tarpon
    Member
    Posted 7 years ago #

    At least it doesn't for me installing new themes doesn't work ... yet.

    I follow the theme installation instructions at http://codex.wordpress.org/Using_Themes and the new theme does not show in the current theme panel. I can select between the default themes and have been able to get the theme 'simple-green' to install and work -- but no others.

    Confused -- because the install of WP works just fine, which is why I went looking for a custom theme before going live.

    Anyone know the secret incantations?

  2. Mark (podz)
    Support Maven
    Posted 7 years ago #

    Are you uploading a folder too many ?

    theme / theme / style.css <----------will not work

    theme / style.css <-------------will work

  3. tarpon
    Member
    Posted 7 years ago #

    I am not sure what you mean, I am just putting the theme's folder that contains the theme in the same folder with the default themes.

    If I do a ls -la on the directorythemes, all the theme folders are their, just like the default and clasic. Inside each of these folders is a complete set of files constituting a theme.

    So the files look like 'themes/default/style.css and 'themes/rubric/style.css' -- so each theme resides in a folder one level down from the 'themes' folder. Duplicates how the default and classic theme are placed.

  4. ColdForged
    Member
    Posted 7 years ago #

    I would make sure that your web server has read and execute permission on all of those theme folders.

  5. tarpon
    Member
    Posted 7 years ago #

    I just did a test and placed all the files for a couple of different themes in the 'theme' directory, one at a time, no folder, and it made no difference -- the theme does not register in the 'Current Theme' panel.

    The themes look like they have a full set of files, I downloaded them from the theme directory pointed to by the WP install wiki

  6. ColdForged
    Member
    Posted 7 years ago #

    That won't do it, tarpon, they have to be in a directory in the themes directory. The code searches for directories in the themes directory, then searches each of those directories for the stylesheet (style.css). If it finds that file in a directory, it's considered a Theme.

  7. tarpon
    Member
    Posted 7 years ago #

    Yep they all have r-x priveledges, I am actually using a local host and running tests as root -- and a local net connected user.

  8. tarpon
    Member
    Posted 7 years ago #

    OK, that is how it's set up -- the complete theme is in the 'theme' directory and there is a style.css file in that directory as well. I cleaned out all the files and now there are just subdirectories.

    SO I am back to as installed with some additional theme folders in the same dierectory as the default and the classic ones.

  9. ColdForged
    Member
    Posted 7 years ago #

    Okay, cd to your wp-content/themes directory and perform a ls -l *, copy it and paste it here.

  10. tarpon
    Member
    Posted 7 years ago #

    Is the ownership of the files important? The themes folders I dropped in are not the same as the ones that were initially placed there. The new ones are root root the originals are 1025 1011.

    Is that the magic incantation needed?

  11. tarpon
    Member
    Posted 7 years ago #

    #ls -l
    drwxr-xr-x 2 1025 1011 4096 Feb 17 05:14 classic
    drwxr-xr-x 3 1025 1011 4096 Feb 17 05:14 default
    drwxr-xr-x 3 root root 4096 Mar 14 11:31 default_allsidebar
    drwxr-xr-x 2 1000 users 4096 Mar 14 12:55 devenir_en_gris
    drwxr-xr-x 3 root root 4096 Feb 2 14:44 Kubrick
    drwxr-xr-x 3 root root 4096 Mar 7 03:37 rubric
    drwxr-xr-x 2 root root 4096 Mar 11 14:47 simple-green

    The curious thing is simple-green works like the originals.

  12. ColdForged
    Member
    Posted 7 years ago #

    Ownership doesn't matter but permissions does... subtle but important. As long as your web server process has read and execute permission on the folders and at least read permission on the files it will work.

  13. ColdForged
    Member
    Posted 7 years ago #

    ls -l * so that we can see the files within the folders.

  14. tarpon
    Member
    Posted 7 years ago #

    [root@fishes default_allsidebar]# ls -l
    total 168
    -rw-r--r-- 1 root root 181 Feb 23 23:59 404.php
    -rw-r--r-- 1 root root 2512 Feb 23 23:59 archive.php
    -rw-r--r-- 1 root root 410 Feb 28 15:00 archives.php
    -rw-r--r-- 1 root root 3935 Feb 23 23:59 comments.php
    -rw-r--r-- 1 root root 5367 Feb 23 23:59 comments-popup.php
    -rw-r--r-- 1 root root 20683 Mar 14 11:30 default_allsidebar.zip
    -rw-r--r-- 1 root root 602 Feb 24 00:00 footer.php
    -rw-r--r-- 1 root root 3117 Feb 28 14:44 header.php
    drwxr-xr-x 2 root root 4096 Mar 14 11:31 images
    -rw-r--r-- 1 root root 1396 Feb 24 20:56 index.php
    -rw-r--r-- 1 root root 234 Feb 28 15:00 links.php
    -rw-r--r-- 1 root root 592 Feb 24 00:00 page.php
    -rw-r--r-- 1 root root 245 Feb 24 00:00 searchform.php
    -rw-r--r-- 1 root root 1497 Mar 5 18:34 search.php
    -rw-r--r-- 1 root root 3335 Feb 28 15:12 sidebar.php
    -rw-r--r-- 1 root root 2735 Feb 28 14:46 single.php
    -rw-r--r-- 1 root root 9688 Feb 28 15:06 style.css

    Here is just one folder -- They all have r priveldeges

  15. tarpon
    Member
    Posted 7 years ago #

    I changed things added wx permissions to all files, still no go, deleted the directories and re-added the files, no go.

    Anyone else want to take a try to help me out. I am at a loss as to why the theAmese don't initialize.

  16. vkaryl
    Member
    Posted 7 years ago #

    See the post "Only Benevolence" - Jabbok has the same problem (only with a different theme that works).... it's very puzzling.

  17. tarpon
    Member
    Posted 7 years ago #

    OK I figured it out -- the httpd SEL daemon for Red Hat AS4 was turned on. This prevented the folders from showing in the themes directory.

    Disabling SEL allowed themes to work normally.

    Someone may want to pass this on to the developers to find out what is up and how to work with SEL and themes.

    If you want me to run any tests please advise.

    bill

  18. DianeV
    Member
    Posted 7 years ago #

    I'm having the same problem on a FreeBSD VPS: uploaded theme to correct directory (wp-content/themes/newtheme/themefilesarehere) and set permissions but the theme doesn't show in the Presentation panel.

    A Google search for "SEL daemon" is ... confusing. Care to share how you disabled/enabled the SEL daemon (I'm presuming this is what the problem is)?

  19. DianeV
    Member
    Posted 7 years ago #

    My error; I had simply copied the default theme into another folder without changing the details in styles.css -- once done, that enabled WP1.5 to differentiate between themes.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.