Solved

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

Posted on 2014-04-01
12
1,551 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

WordPress is constantly evolving, and with each evolution appears to get better and better.  One of the big drawbacks prior to version 3 was that there was no way to be able to set up a custom menu from the backend. The Old Way Adding menus is…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
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 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…

724 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