Want to put local site to my hosted website – browser displays white page (10 posts)

Topic tags: child theme, database, local site, Twentyten
  • Profile picture of Michael Sneed Michael Sneed said 2 years, 1 month ago:

    Hi Community,

    I’ve tried now twice to put a locally developed wp site with a child theme based on Twentyten and haven’t been able to do it. I’ve set up a database and that checks out ok… even my host did a cgi test and the php checks out ok… I make a .sql file from my local database and import it over to the server database I made… then I “put” the site files, via Dreamweaver or I’ve used Filezilla, and updated the “wp-config.php” file to match the specs of the database I created with my host.

    Strangely enough my “favicon” has shown up but the whole page goes blank and FF goes into quirks mode.

    Thoughts?
    Thanks in advance for the help.

    Michael Sneed

  • Profile picture of Steve Steve said 2 years, 1 month ago:

    You should not need an sql file to move a locally created theme over to a live site. The only reason you need the sql file is if there is a lot of data on the dev site you need to move over. Most of the time a standard WP export will work.

    Have you tried setting it up without import the sql file?

  • Profile picture of Michael Sneed Michael Sneed said 2 years, 1 month ago:

    Thanks Steve…

    That’s interesting… it seemed like there was a lot of info I was loading to the server.

    I’ll give it a try.

    Michael

  • Profile picture of Michael Sneed Michael Sneed said 2 years, 1 month ago:

    Hi Steve,

    I tried that and it’s adding on to my url… for example:

    http://www.mysite.com/wp-admin/install.php

    It shows the classic “5 minute install” window – not my site.

    Thanks for the help.

    Michael

  • Profile picture of Steve Steve said 2 years, 1 month ago:

    Michael– A WP website essentially has two parts: data and a theme. So, run the install and upload your child theme and it should work.
    If you need to move data (posts, authors, categories,etc) from your dev site to the live site, use TOOLS > EXPORT/IMPORT in WP.

    Make sense?

    Steve

  • Profile picture of Michael Sneed Michael Sneed said 2 years, 1 month ago:

    Thanks again for the assistance,Steve.

    I’ll try exporting the rest of the data I have on the local site… i.e. akismet, contact form.

    The funny thing is that all this info is already on my site (child theme, akisment, contact form, etc.)… I re-installed wp and now it’s back to a clean slate of Twentyten.

    Michael

  • Profile picture of Steve Steve said 2 years, 1 month ago:

    Michael,

    WP export won’t export the plugins or settings, just Posts, tags, categories, etc. It might be easier for you to reinstall the plugins on the live site from scratch and just update their settings… instead of trying to move the db.

    Steve

  • Profile picture of Michael Sneed Michael Sneed said 2 years, 1 month ago:

    Steve,

    So far I’ve installed wp on my site http://www.artdesignsneed.com and have the basic Twentyten theme running; however, I’m getting this in the appearence>themes area:

    Broken Themes

    The following themes are installed but incomplete. Themes must have a stylesheet and a template.
    Name Description
    Art Design Sneed The parent theme is missing. Please install the “Twentyten” parent theme.

    –But everything’s there… the child theme has a style.css in place and they’re linked as far as I can tell. The template part doesn’t make sense though because I thought that, like, making header.php was a template.

    Thoughts?
    Michael

  • Profile picture of Steve Steve said 2 years, 1 month ago:

    A child theme only requires style.css… everything else is optional.

    Make sure something like this is at the very top of style.css:
    /*
    Theme Name: Twenty Ten Child
    Theme URI: http: //example.com/
    Description: Child theme for the Twenty Ten theme
    Author: Your name here
    Author URI: http: //example.com/about/
    Template: twentyten
    Version: 0.1.0
    */

    Here’s a good video on Child themes, that should help you: http://wpnyc.org/video/wordpress-parent-child-themes-and-why-you-should-use-them/

    Steve

  • Profile picture of Michael Sneed Michael Sneed said 2 years, 1 month ago:

    Hi Steve,

    Well you’ll probably not going to believe this… I think I’m finally seeing the light at the end of the tunnel. I was looking at your last post and then I was searching in the codex (wordpress.org,>docs) [just in case someone else is trying to understand this] and realized ( for the first time) that in the child theme declaration, it’s case sensitive, at least the template declaration. I had “Twentyten” not “twentyten” and finally my styles began to come throught and look like what I was doing. WP also wasn’t showing, finally, in the dashboard “Theme is installed but broken”.

    I can’t believe it! Just from having one capital letter.

    So now I have to think, add everything by scatch or try another .sql database import to my server.??? At least I can drive myself crazy knowing that I’m doing it!

    Well at least thanks to your help and this strange journey I have a choice in the matter.

    Steve… all my very best on helping me through this! Cheers!

    Michael Sneed