Support » Plugin: Overwrite Uploads » Installed Overwrite Uploads Plugin and now I can't login to my dashboard

  • Resolved jeanine55k


    I am running WP version 3.5.2. I installed version 1.0.2,
    Now I can’t log into WP. Getting
    Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /home/content/42/8895242/html/brightstar/wp-admin/includes/file.php:1) in /home/content/42/8895242/html/brightstar/wp-content/plugins/wp-e-commerce/wpsc-core/wpsc-constants.php on line 19.

    HELP!! Any ideas?

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Ian Dunn


    It sounds like you may have made an error when editing wp-admin/includes/file.php. Make sure it matches the line in the documentation exactly. If you’re still getting an error, please copy/paste the relevant section of code here so I can take a look.

    Worst case, you can always download the unmodified file and re-upload it to get things back to the way they were before modification.

    Never, EVER, edit WordPress core files! Re-upload all files & folders – except the root wp-config.php & .htaccess files and the the wp-content folder – from a fresh download of WordPress 3.5.2. Make sure that you delete the old copies of files & folder before uploading the new ones.

    And then upgrade WordPress asap.

    Plugin Author Ian Dunn


    esmi, I understand that’s the best advice 99% of the time, but there’s currently no way for this plugin to work without it. See #16849 and the FAQ for details.

    As soon as #16849 is committed, I’ll release an update that doesn’t require modding Core, but until then it’s the only way to achieve the functionality.

    there’s currently no way for this plugin to work without it

    That’s an issue that needs to be addressed via your plugin. Never encourage people to edit WordPress core.

    I can’t even get back into my site dashboard at all.
    How do I find version WordPress 3.5.2 to get a fresh install?

    Ian Dunn,, Below were my modifications

    define('OVUP_FILTER_ADDED', true);  //JAK NEW custom modifcation for overwrite uploads plugin
    function wp_handle_upload( &$file, $overrides = false, $time = null ) {
    	// The default error handler.
    	if ( ! function_exists( 'wp_handle_upload_error' ) ) {
    		function wp_handle_upload_error( &$file, $message ) {
    			return array( 'error'=>$message );
    	$overrides = apply_filters( 'wp_handle_upload_overrides', $overrides ); // JAK NEW custom modification for Overwrite Uploads plugin
    	$file = apply_filters( 'wp_handle_upload_prefilter', $file );
    	// You may define your own function and pass the name in $overrides['upload_error_handler']
    	$upload_error_handler = 'wp_handle_upload_error';

    Since I can’t get into my dashboard at all, am i ok uploading the files via FTP?
    Sorry to sound ignorant, I’m rather new to WP

    Plugin Author Ian Dunn


    That part of the file looks fine. The error says the output started at file.php line 1. Did you maybe add a space or line break before the opening <?php tag? If so, you’ll need to remove it so that the file starts with the <?php tag, with nothing before it.

    To revert to the original file.php, you can just upload it via S/FTP or your hosting control panel’s file manager.

    You can download older versions of WP from the release archive —

    esmi’s right, though, you should also upgrade to 3.6 soon. It’s important to stay up to date to avoid any potential security vulnerabilities that have been fixed in the latest version.

    That was it.. somehow a “file.php” got put at the top of the file.
    THANK YOU SO MUCH! I greatly appreciate your help!
    Have a WONDERFUL Afternoon!

    Plugin Author Ian Dunn


    Glad it all worked out šŸ™‚

    Ian Dunn,
    Does your plugin still put the file into the normal upload WP location that’s incremented etc? I have it activated and working, but it’s not asking if I want to over-write. It IS actually overwriting.. which is what I want.. I just wasn’t sure if it was supposed to confirm that I want to overwrite…

    I’m trying to anticipate.. when I get to October, will it put the file in uploads/09/?? where it won’t find a file to overwrite, then start overwriting again?

    I hope this makes sense…

    Plugin Author Ian Dunn


    It doesn’t prompt you to confirm, it just goes ahead and overwrites it automatically.

    It’s been awhile since I wrote the plugin, but I think it’ll only overwrite them if they’re in the same directory. So if you uploaded foo.jpg in august and foo.jpg in September, you’d have a copy in uploads/08 and another one in uploads/09. I could be wrong, though.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Installed Overwrite Uploads Plugin and now I can't login to my dashboard’ is closed to new replies.