Forums

a blank page when goes to visit site (26 posts)

  1. wuzhou
    Member
    Posted 3 years ago #

    Hi, everyone
    I am a new user, and have a beginner problem.
    I can access my wp-admin/index.php admin page, but when i try to see what's there on the page by clicking the 'view site' link on the top, there is nothing showing, no even an error message, just a blank page.what could be the problem?

    thanks,

    joe

  2. apljdi
    Member
    Posted 3 years ago #

    What is your web address?

  3. goooal
    Member
    Posted 3 years ago #

    show 500 error that is a blank page,me too!
    windows 2003 iis
    i also can access admin page!

  4. apljdi
    Member
    Posted 3 years ago #

    Ok, goooal. Same question. What is your web address? But a 500 error suggests that there is something wrong with your server. I know absolutely nothing about IIS though.

  5. wuzhou
    Member
    Posted 3 years ago #

    web address is wuzhou.id.au
    thanks

  6. goooal
    Member
    Posted 3 years ago #

    first,thanks adljdi, Thanks for your reply!
    sorry,i have no donmain now, but I can access wp-admin without any problem.

  7. goooal
    Member
    Posted 3 years ago #

    ok, i find reason that include path setting question!not support "./" pattern,
    its ok after i remove "./" in line 18 require('./wp-blog-header.php');

  8. wuzhou
    Member
    Posted 3 years ago #

    do i need to add some more text in the wp-config.php file?
    at the moment, my one use the default:
    require_once(ABSPATH . 'wp-settings.php');

  9. goooal
    Member
    Posted 3 years ago #

    hello,wuzhou
    i see your sever is iis too
    at first same result to you,display a blank page,but access wp-admin success
    i modi file that index.php,you may try!

  10. wuzhou
    Member
    Posted 3 years ago #

    congratulate. do i need to add some text in the index.php?
    or add require_once(ABSPATH . 'index.php'); in wp-config.php? (this is a wild guess, i'm new to php too)

  11. goooal
    Member
    Posted 3 years ago #

    i am also new user!
    i visite your website,response http 200,mean success

    your template ?

  12. wuzhou
    Member
    Posted 3 years ago #

    strange, still from my end, i couldn't see anything. (by using: http://wuzhou.id.au) got a blank page.
    how do you get http 200? my template? you mean theme? i chose the classic from wp

  13. Hodja
    Member
    Posted 3 years ago #

    I have the same problem.
    My website is http://www.mixedgrill.nl

  14. apljdi
    Member
    Posted 3 years ago #

    Hodja: Your site is giving a 500 error.

    wuzhou: Does this "at the moment, my one use the default: require_once(ABSPATH . 'wp-settings.php');" mean that the only thing in your wp-config is that line? If so, yes, you need to add a bunch of text to the file. What you need to do is copy the wp-config-sample.php, rename it to wp-config.php and edit the four lines concerning the database. These lines:

    /** The name of the database for WordPress */
    define('DB_NAME', 'your-db-name');
    
    /** MySQL database username */
    define('DB_USER', 'your-db-username');
    
    /** MySQL database password */
    define('DB_PASSWORD', 'your-db-password');
    
    /** MySQL hostname */
    define('DB_HOST', 'localhost');

    The last one defaults to localhost and may not need to be changed. Take another look at the installation directions.

  15. Hodja
    Member
    Posted 3 years ago #

    I've searched on google for solutions for this problem, but nothing seems to work. what to do now?

  16. wuzhou
    Member
    Posted 3 years ago #

    thanks apljdi. i did have the sections in the file you mentioned. after reading some posts, i just thought i might have missed to add a bit more to the file. looks like it was a common problem (to have a blank page).

  17. apljdi
    Member
    Posted 3 years ago #

    Hodja, you seem to have made progress. What did you do?

    wuzhou: Are you sure you have a properly configured wp-config.php on the server? How did you generate the wp-config file? Did you rename the wp-config-sample and then edit that? The DB stuff is the only part that you have to edit but the wp-config file contains a lot more that WP requires. Have you edited any other files at all? And what did you use to edit those files? (Did I ask that yet?)

  18. leithwhite
    Member
    Posted 3 years ago #

    I having the same problem I think.
    was working with wp locally on my laptop.
    uploaded files to the server.
    now, i can see content through the admin panel but nothing directly on the published pages or posts.

    temp url
    http://66.147.240.162/~langleyv/

    there's content on
    who we are/locate us or contact us OR
    who we are/what we believe/ shared values

    ....but the pages just come up blank.
    does it have anything to do with an old file or postings
    with a newer installation date? Just wondering

  19. bradh
    Member
    Posted 3 years ago #

    There seems to be an epidemic!
    I just downloaded and installed.
    Apache, PHP 5.05, and MySql all running properly.
    I can log in as administrator but any attempt to view site either brings me to a blank page, or it brings me to a directory of the folder.

    Running this on my local machine under Windows XP (with all the fixes etc.).

    Other stuff on my local server is working properly, except my server doesn't seem to recognize index.php as a default file. ?? Could this be the problem since WordPress is going to index.php?

    Thanks for the help!
    BradH

  20. bradh
    Member
    Posted 3 years ago #

    I love it when I answer my own questions, especially when I don't understand why it worked! I have (I thought) identical versions and settings of Apache, PHP, and MySQL, including the default httpd.config files. I confirmed the httpd.config files were identical. In particular, that index.php was not specifically included in the DirectoryIndex setting. On the machine without WordPress, I could definitely specify a directory without a specific file and it would find index.php if it was there.

    It turns out that on my other machine, with WordPress, it wasn't finding index.php files.

    So, I edited httpd.conf (in the Apache/Apache2/Conf/ folder) and added index.php to the DirectoryIndex line. Just added it after index.html and one other that was there by default.

    You need to stop and restart Apache for the change to kick in. Now WordPress is running great.

    I hope this works for you other folk. As I said, I have no idea why one machine without index.php included on that line found it, but this fix worked for me.

    Bradh

  21. wuzhou
    Member
    Posted 3 years ago #

    Hi, apljdi. I use wp-config-sample.php as template to create the wp-config.php, and i have only changed the database name, user name and password sections.

  22. apljdi
    Member
    Posted 3 years ago #

    leithwhite: I think you have a different problem. The other folks here have been talking about getting absolutely blank pages, not just pages missing content. Your page appears to be missing content only. That is different. My first guess is that it is a problem with The Loop. You also have piles of bad markup and the widgets are not displaying right in FF.

    bradh: Exactly the fix I was going to suggest. Without seeing your various config files I can't tell you why one worked and the other didn't. In general though you have to add index.php to the httpd.conf.

    wuzhou: Are we going with Joomla then?

  23. wuzhou
    Member
    Posted 3 years ago #

    I tried the second time this morning to reinstall the whole thing, but in vain again. still the same problem. i couldn't find httpd.conf file in my directory.
    I tried joomla last night, but decided to use wordpress as it seems better positioned for blog publishing.
    look like i may have to ask the web server host administrator to sort out the problem.

  24. gwizit
    Member
    Posted 3 years ago #

    Good Going Bradh - Had similar problem - Adding "index.php" to my virtual host container - Seems to work also.

    <VirtualHost *>
     |  | ServerAdmin webmaster@-----.com
     |  | ServerName http://www.-----.com
     |  | ServerAlias -----.com

     |  | # Indexes + Directory Root.
     |  |  DirectoryIndex index.html
     |  |  DirectoryIndex index.php
     |  |  DocumentRoot /www.-----.com/

     |  | # Logfiles
     |  |  ErrorLog /www.-----.com/logs/error.log
     |  |  CustomLog /www.-----.com/logs/access.log combined
    </VirtualHost>

  25. apljdi
    Member
    Posted 3 years ago #

    wuzhou: The part about http.conf wasn't for you. It was for bradh. Most people don't have access to that file. bradh has access because he's talking about a local install of the server software.

    Yes. Talk to the web host, but come back and tell us what happens.

  26. haani
    Member
    Posted 2 years ago #

    Hey Bradh,

    You're a HERO!!!

    I've been fighting with this for days. Same thing here with the local machine setup i.e. blank page when clicking "Visit Site". Did all the same things as you described to find the fault... nada :-( Then after several half dead posts, I came a cross this one and tried out your suggestion ... tadaaaaaa.... It worked a treat!!

    So now my "httpd.conf" looks like this:

    ...
    #
    # DirectoryIndex: sets the file that Apache will serve if a directory
    # is requested.
    #
    <IfModule dir_module>
    DirectoryIndex index.html index.php
    </IfModule>
    ...

    Oh, BTW, my wordpress installation on my host was always fine so, no probs there..just with my local laptop. It's just not fun to test things out on even a half live site ;-)

    Again, thousand thanks Bradh!

    Cheers,

    Haani

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.