• Resolved sedelstein

    (@sedelstein)


    I got a white screen when going to my login page. I turned on error output and saw there was a problem with includes/file.php. File.php had become truncated at line 1601. I retrieved file.php for backup and it has 1799 lines. When I restored file.php everything worked as normal.

    What would cause file.php file to become truncated?

    Thanks,
    Steve

Viewing 4 replies - 1 through 4 (of 4 total)
  • @sedelstein

    The file /wp-admin/includes/file.php does have 1799 lines in it.

    Simply download the version in use to review and compare such file information.

    Line 1601 is within:

    
    	// Check to see if we are setting the public/private keys for ssh
    	$credentials['public_key'] = defined('FTP_PUBKEY') ? FTP_PUBKEY : (!empty($submitted_form['public_key']) ? $submitted_form['public_key'] : '');
    	$credentials['private_key'] = defined('FTP_PRIKEY') ? FTP_PRIKEY : (!empty($submitted_form['private_key']) ? $submitted_form['private_key'] : '');
    

    I would review this with your host and discuss with them this pertinent issue.

    Thread Starter sedelstein

    (@sedelstein)

    How do you download the version of the file in use? I got it from my backup but would prefer to know that it is the current/official version.

    • This reply was modified 8 years, 5 months ago by sedelstein.

    That would be at:

    Home

    Download button is on upper right.

    If you need a previous version, they can be found here:

    https://ww.wp.xz.cn/download/release-archive/

    Thread Starter sedelstein

    (@sedelstein)

    Thanks.

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

The topic ‘White screen; bad file.php’ is closed to new replies.