Solved

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

Posted on 2014-04-01
12
1,462 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 250 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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
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 250 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Preface There are many applications where some computing systems need have their system clocks running synchronized within a small margin and eventually need to be in sync with the global time. There are different solutions for this, i.e. the W3…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
The purpose of this video is to demonstrate how to automatically show related posts at the bottom of a blog post in WordPress. This will be demonstrated using a Windows 8 PC. Plugin “Yet Another Related Posts Plugin” will be used. Go to your…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

770 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