Error: The uploaded file exceeds the upload_max_filesize directive in php.ini. (7 posts)

  1. funfelt
    Posted 6 years ago #

    Hi everyone - I am trying to restore a blank screen blog. Another post suggested uninstalling WP via the cpanel after backing up the db, then reinstalling. I used tools > export to create an xml file, uninstalled my WP, then reinstalled WP and used tools > import and got this error message when trying to upload the xml file:

    The uploaded file exceeds the upload_max_filesize directive in php.ini.

    What gives? Is is the same file I downloaded minutes before. How else can I get it back in there so I dont have to start from scratch? Thanks!

  2. billdennis5
    Posted 5 years ago #

    Good luck getting an answer to this. You are not the first person to request help for this problem, only to get silence here. You would think a problem so common that they don;'t bother answering anymore would merit an addition to the codex.

  3. chrissiek
    Posted 5 years ago #

  4. chrissiek
    Posted 5 years ago #

    BTW, I tried the instructions and I just emailed my host.

    I think the file size needs to be increased to import it

  5. Devin Price
    Posted 5 years ago #

    I wrote a post about how to increase the memory limit in your php.ini file. It assumes you have ftp access to your server, but it's fairly straight-forward:


  6. tildemark
    Posted 5 years ago #

    you may want edit the .htaccess file instead of doing it to your php.ini file. most wp install are hosted on a sharing environment and with no access to the php.ini at all.

    i have tried adding a php.ini into the wp-admin folder but it didn't work, this one below works and not just on wp but to all web applications that uses php to upload.

    just copy and paste the code below to your .htaccess file

    php_value upload_max_filesize 50M
    php_value post_max_size 50M
    php_value max_execution_time 500
    php_value max_input_time 500

    Increase upload limit on PHP

  7. qetuo
    Posted 5 years ago #

    why not try uploading it via ftp and put the file in /wp-content/uploads

Topic Closed

This topic has been closed to new replies.

About this Topic