• Just installed the latest 2.6.1 with mysql 5.0…install went fine..could get to admin..but after a few browser refreshes the index.php goes from 4kb to 0kb and stops working..meaning just a blank page.

    Admin works fine

    Is it the file permissions? read..write..execute? I tried different variations and even tried reuploading the index.php but it works for a minute then goes back to a blank page.

    Help!

    Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Could you post a link to your site please, so I or someone else can take a look :).

    Thread Starter frankmc

    (@frankmc)

    of course
    http://www.fmstudio.com/index.php

    I was gonna post..but there is nothing there..but there it is.

    I am completely confused, I have done many WP installs fine but this I can’t figure out.

    If I copy the WP install index.php file to the server it works fine, but after a minute it is seemingly rewritten to a 0kb file that produces nothing. I contacted my provider (1and1) and they said they had no idea, and just to “reinstall it”. I did that, full reinstall, about 4 times now. I thought it may have something to do with the .htaccess file but 1and1 assured me that had nothing to do with WP.

    The oddest part is my wp-admin page works fine, I can create posts, change prefs, add themes. But when I view site…nothing.

    The original index file is here:

    <?php
    /**
    * Front to the WordPress application. This file doesn’t do anything, but loads
    * wp-blog-header.php which does and tells WordPress to load the theme.
    *
    * @package WordPress
    */

    /**
    * Tells WordPress to load the WordPress theme and output it.
    *
    * @var bool
    */
    define(‘WP_USE_THEMES’, true);

    /** Loads the WordPress Environment and Template */
    require(‘./wp-blog-header.php’);
    ?>

    (no spaces before or after it in the file)

    Straight from the WP install. The 0kb file that appears is literally blank, when I open it there is nothing there.

    If anyone has any suggestions…please let me know. I am stumped!!

    Frank

    when you say a 0byte file, are you actually looking at the file size via your hosts control panel or ftp, or are you basing that statement on the output?

    The output of this:

    http://www.fmstudio.com/index,php

    …doesnt necessarily mean that the file itself is 0 bytes. It suggests there’s a fatal PHP error occurring.

    You also have an index.html in your root directory, right now.. is that normally there?

    If you contact me off the forum, I will happily look at whats going on for you. I would need your ftp information to do so. Its entirely up to you, of course, and I wont feel offended if you decline the offer.

    My email addy is village-idiot.org AT whoo (swap those around, obviously).

    Thread Starter frankmc

    (@frankmc)

    I am looking at the file via my FTP program (Transmit) on the Mac

    The index.html I just added yesterday so I would have a place holder page up that says be back soon. The problem I have been having existed before and after I added the file.

    Any ideas why an index.php would seemingly be over written to a blank file?

    Any other things I can check? If you looked at it via FTP, you were see a full working WP install with the admin tools, and a index.php file that is completely blank.

    Any other thoughts or help would be great

    Any ideas why an index.php would seemingly be over written to a blank file?

    No, and thats not something wordpress would do. So you look to your permissions, you look to the plugins you are using, and you look to your host.

    Thread Starter frankmc

    (@frankmc)

    I went back and forth with my server provider, they have no idea.

    What would cause a wordpress install to overwrite the index.php to a blank file?

    This has never happened with any index.html file or anything on my server.

    I keep reinstalling WP and it keeps happening…it must have to do with WP.

    Any suggestions? Anything I can try? My site has been down a week now.

    Thanks

    I’ve noticed this happening with some ftp servers that require active mode instead of passive mode and reverse.

    Thread Starter frankmc

    (@frankmc)

    Really?

    Any ideas..or links to solutions…

    I did try that…I uploaded the files via passive, then deleted them all and then did the install with active…did not make any difference….

    Can you see in your ftp program who owns the file? Is it you or ‘nobody’?

    “Can you see in your ftp program who owns the file? Is it you or ‘nobody’?”

    I was about to suggest the same thing. Also, make sure the permissions are set to (chmod) 644.

    Again, check your plugins if you have any. Disable them all and see if it makes a difference.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘index.php goes to 0kb – stops working…’ is closed to new replies.