Solved

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

Posted on 2014-04-01
12
1,427 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
Comment Utility
Have you tried making a new site locally and using the new theme?

Thanks
JC
0
 
LVL 25

Expert Comment

by:Zephyr ICT
Comment Utility
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
Comment Utility
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
 
LVL 25

Expert Comment

by:Zephyr ICT
Comment Utility
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
Comment Utility
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
Comment Utility
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
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 

Author Comment

by:pjlundquist
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
I ended up using trial and error.
0

Featured Post

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
The purpose of this video is to demonstrate how to properly insert a Vimeo Video into a WordPress site or Blog. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp…
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…

728 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now