Cannot install sample WP theme into my subdirectory?

10 replies
Hi guys,

I have a main website like www.companymarketing.com,

I want to sell some websites to local businesses, and am trying to make a 'mock up' ready for a specific business. So let's say I am targetting plumbers, I have made a subdirectory like so,

www.companymarketing.com/plumbers

I have installed WP into this directory and everything works fine in terms of the install and the initial / normal theme displaying. But then, when it comes to installing other themes, I am running into problems.

I have a theme I want to try out in .zip format. I go to themes and upload the zip file, but I always get an error:

"The uploaded file could not be moved to /home/websitename/public_html/plumber/wp-content/uploads/2011/02."

Then when I try to manually upload the zip file in cpanel to the themes folder of the plumbers subdirectory, and extract it, the theme is visible in 'themes' menu of WP, but when I enable it, it does not display correctly, no background or structure is present.

Usually I just upload the .zip file, but this is the first time I am trying to install a theme / WP install on a subdirectory, but it seems it is not as easy as usual.

I have played around with all sorts of permissions, changing various permissions to 777 temporarily but to no avail.

Any help would be appreciated.
#install #sample #subdirectory #theme
  • Profile picture of the author eramedia
    If you load a theme using cpanel, dont upload as a zip. Just take the folder and contents from the zip and upload them. Wordpress should see the theme properly then.

    If not, try a few other themes in case it is a problem with the particiular theme you are trying to install.
    {{ DiscussionBoard.errors[3311884].message }}
  • Profile picture of the author suemax
    Are you saying that you want to install Theme P for plumbers, Theme B into another subdirectory for builders, and Theme L into another subdirectory for locksmiths?
    Signature

    Master Resale Rights are so versatile, and these are educational, too. All kinds of IM material. Read, sell, break up into articles, combine into bundles, and there are 250 of them, complete with MRR, here for a bargain price! I'm even throwing in the sales page. Only £37 for Warriors. http://www.250mrrproducts.com

    {{ DiscussionBoard.errors[3311909].message }}
  • Profile picture of the author Steve Solem
    I've uploaded a lot of themes and have never had that problem before.

    Have you tried unzipping the theme before FTPing it to your themes folder?
    {{ DiscussionBoard.errors[3311915].message }}
  • Profile picture of the author Moxil
    Increase the permissions of your /wp-content/ and/or /uploads/ directory. And when you're uploading through cPanel, upload the extracted folder, not the zip, though I think it works either way. Or you can just extract the folder through cPanel once the zip is uploaded.
    {{ DiscussionBoard.errors[3312183].message }}
    • Profile picture of the author krzysiek
      Originally Posted by Moxil View Post

      Increase the permissions of your /wp-content/ and/or /uploads/ directory. And when you're uploading through cPanel, upload the extracted folder, not the zip, though I think it works either way. Or you can just extract the folder through cPanel once the zip is uploaded.
      Just had a look, and already had those permissions set to 777 already from yesterday when it did not work. But did you mean, to set the permissions to 777 on just ONE or the other? Coz I had both set to 777 plus some others modified to 777?

      I will try FTP it now.
      {{ DiscussionBoard.errors[3313962].message }}
  • Profile picture of the author krzysiek
    Hi guys,

    Thanks for that. Yep, looking to upload different themes into different subdirectories. So I know I need a new WP install for each subdirectory which is easy, but the uploading of themes in .zip file is not as easy as normal.

    I have tried about 3 themes and keep getting the same error, so I am confident it is a problem related to permissions or something.

    I will try to change the permissions exactly as Moxil has advised (I think I may have already done that, but will try again) and let you know how it goes. I have so far been uploading the .zip via cpanel into the "themes" folder and then extracting it in there, but it only partially shows the theme this way. Am I meant to put some of the contents of the theme into some other folders, or does the whole lot just get extracted into "themes" folder?
    {{ DiscussionBoard.errors[3313685].message }}
    • Profile picture of the author Evan-M
      Originally Posted by krzysiek View Post

      Hi guys,

      Thanks for that. Yep, looking to upload different themes into different subdirectories. So I know I need a new WP install for each subdirectory which is easy, but the uploading of themes in .zip file is not as easy as normal.

      I have tried about 3 themes and keep getting the same error, so I am confident it is a problem related to permissions or something.

      I will try to change the permissions exactly as Moxil has advised (I think I may have already done that, but will try again) and let you know how it goes. I have so far been uploading the .zip via cpanel into the "themes" folder and then extracting it in there, but it only partially shows the theme this way. Am I meant to put some of the contents of the theme into some other folders, or does the whole lot just get extracted into "themes" folder?
      Why not just make a page template, or a php if statement to trick WordPress into using a different them based on the page selected.


      <?php
      if(is_page('pagename')) {
      get_header('test'); // includes header-test.php
      }
      else {
      get_header(); // includes header.php
      }
      ?>


      if its a post page :

      <?php
      if(is_single('POST ID GOES HERE')) {
      get_header('test'); // includes header-test.php
      }
      else {
      get_header(); // includes header.php
      }
      ?>


      I think im going to write a plugin for this. 4 or 5 people ive seen looking to use different templates for certain pages.
      Signature

      Evan-M

      Easily The Worlds Best Wordpress Popup plugin

      Visit Website Design Firm For All Your Wordpress Coding Needs

      {{ DiscussionBoard.errors[3313975].message }}
      • Profile picture of the author krzysiek
        Originally Posted by Evan-M View Post

        Why not just make a page template, or a php if statement to trick WordPress into using a different them based on the page selected.

        I think im going to write a plugin for this. 4 or 5 people ive seen looking to use different templates for certain pages.

        or you could just make a page template for theme pages.
        Hi Evan,

        A plugin like that does sound very useful. At the moment, I am installing a new WP every time.
        {{ DiscussionBoard.errors[3313995].message }}
  • Profile picture of the author krzysiek
    Guys, as weird as it may sound that when I uploaded the .zip and extraced on the server as opposed to FTP'ing - it seems it is actually working now when FTPing the already extracted files over!! Thank you!!!
    {{ DiscussionBoard.errors[3313987].message }}
  • Profile picture of the author Istvan Horvath
    Plugin? Why another plugin...?

    Isn't this thingy already built-in in your WP? You can have a million Page templates in your installation.

    Now, a Page template can either:
    - be a complete file (i.e. from <html> to </html>
    or
    - a usual WP Page template that calls for a different header

    and in both cases the different header file (or head portion) allows you to use a different stylesheet > different design.

    It is there... you just need to learn to use the existing WP features to do what you need
    Signature

    {{ DiscussionBoard.errors[3317040].message }}

Trending Topics