[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1768
  • Last Modified:

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

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
pjlundquist
Asked:
pjlundquist
  • 7
  • 4
3 Solutions
 
John-Charles-HerzbergCommented:
Have you tried making a new site locally and using the new theme?

Thanks
JC
0
 
Zephyr ICTCloud ArchitectCommented:
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
 
pjlundquistAuthor Commented:
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
Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

 
Zephyr ICTCloud ArchitectCommented:
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
 
pjlundquistAuthor Commented:
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
 
Zephyr ICTCloud ArchitectCommented:
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
 
pjlundquistAuthor Commented:
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
 
Zephyr ICTCloud ArchitectCommented:
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
 
pjlundquistAuthor Commented:
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
 
pjlundquistAuthor Commented:
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
 
pjlundquistAuthor Commented:
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
 
pjlundquistAuthor Commented:
I ended up using trial and error.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 7
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now