Improve company productivity with a Business Account.Sign Up

x
?
Solved

Why does my Wordpress site work fine live but get blank white screen on localhost?

Posted on 2014-04-01
12
Medium Priority
?
1,871 Views
Last Modified: 2014-04-07
Hello!
I have been building a site using Wordpress on GoDaddy for several months and everything is working great. I bought a theme that I have been using, all works great live. I just thought I should set up a copy locally so that once other people are using the site I can test changes without testing live (obvious, I know, should have figured it out to start with:). First I tried xampp. I copied my site over and duplicated the database and got the back end of Wordpress to work fine, but the front end would only show a white, blank screen. In frustration I uninstalled all of that and tried WAMP with the exact same result. I found a million things to try online (too numerous to list, plus it was at night and I lost track!) but nothing changed this. If I change to the theme to a default theme it works. It appears to be something with my theme, but for the life of me I can't figure it out! I figure it has to work somehow, but I just haven't tried the right thing yet. I still have WAMP installed. Any ideas? Thank you!!!
0
Comment
Question by:pjlundquist
  • 7
  • 4
12 Comments
 
LVL 14

Assisted Solution

by:John-Charles-Herzberg
John-Charles-Herzberg earned 750 total points
ID: 39969380
Have you tried making a new site locally and using the new theme?

Thanks
JC
0
 
LVL 25

Expert Comment

by:Zephyr ICT
ID: 39969392
Did you update the database using "localhost" in place of the live url that is in there now?

Normally it's enough to update the 2 site urls found under wp_options I think...
0
 

Author Comment

by:pjlundquist
ID: 39969575
Thank you for the quick responses! I have updated the database using localhost. I used the Duplicator plugin for wordpress, but then double checked that it was localhost using phpmyadmin in wp_options.

What do you mean by making a new site? I am definitely willing to try anything:) I am just not sure what you mean.

Thank you!
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 25

Expert Comment

by:Zephyr ICT
ID: 39969627
You could try to replace all mentions of the public address in the database...

But to be sure it is related to this, if you browse the site locally and you enter a subdirectory manually, does it find this directory using localhost? example http://localhost/some_post_or_dir ...
0
 

Author Comment

by:pjlundquist
ID: 39970168
No, if I type a page address in manually it is still just a blank, white page. If I change themes they work, but not with the theme I actually want to use. Thank you for the fast response, though!
0
 
LVL 25

Assisted Solution

by:Zephyr ICT
Zephyr ICT earned 750 total points
ID: 39970197
There's some other things that you could check, but they should be the same as on the live server since it's a copy.

For example:

- user/file rights on the theme folder that has the issues
- Disable the plugins one by one to see if disabling one helps.
0
 

Author Comment

by:pjlundquist
ID: 39970265
I tried disabling the plugins but it didn't make a difference. I would like to try the file rights on the theme folder. Could you explain to me how I should do that and what I should look for? Thanks so much!
0
 
LVL 25

Expert Comment

by:Zephyr ICT
ID: 39970289
You might find this howto interesting, it's a bit much to write out and I'm about to head out :)

http://www.customfitonline.com/news/2013/6/20/solve-wordpress-on-windows-server-problems/
0
 

Author Comment

by:pjlundquist
ID: 39971939
Thanks! I think I did what the link said. I went into Properties of my theme folder and went into Security tab. I hit Edit and Add, added IIS_IUSRS to the box and then OK. With that selected I checked all of the permissions boxes and hit OK. Site still blank but I am thinking this may be a step one? Thank you so much for your help, it is greatly appreciated!!
0
 

Author Comment

by:pjlundquist
ID: 39972336
Okay, I figured out what John-Charles-Herzberg was asking me to do (simple, why did that confuse me to start with:) I made a new folder in the WAMP/www folder and did a new install of Wordpress into it with a new database. I activated the theme I am using in the new, blank site and got this error:
Parse error: syntax error, unexpected $end in C:\wamp\www\newsite\wp-content\themes\zapinstallable\header.php on line 1067

I haven't messed with anything in the header.php file. Any suggestions? Thank you!

I have attached header.php
header.php
0
 

Accepted Solution

by:
pjlundquist earned 0 total points
ID: 39972880
I think I figured it out! I just stuck a } in line 984 of header php. I really don't know what the deal was, it works fine live and Dreamweaver and any php code checker online I used never showed a syntax error. Thanks for helping!
0
 

Author Closing Comment

by:pjlundquist
ID: 39982580
I ended up using trial and error.
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
Ecommerce has truly become one of the most prosperous ways of monetizing your brand on the Internet. However, when it comes to it, auditing is undoubtedly the lifeblood of this type of business.  This article will help you to conduct your ecommerce …
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…

606 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question