Forums

Import XML file size error (3 posts)

  1. glutenfreepost
    Member
    Posted 2 years ago #

    My current blog has all kinds of issues that I can't resolve. So I decided to install a fresh copy of wordpress and start over. I exported the xml file from my current blog and imported into the new to find this error:

    Import WordPress
    Sorry, there has been an error.

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

    How can I limit the size of the export?

  2. sweetangst
    Member
    Posted 2 years ago #

  3. Shane G
    Member
    Posted 2 years ago #

    Hi,

    use this code and save this file as .PHP and upload it in the plugins directory. After that activate this plugin:

    <?php

    ini_set('upload_max_size','100M')
    ini_set('post_max_size','120M')
    ini_set('max_execution_time','300')
    ?>

    - Set the settings to your desired one..

    Thanks,

    Shane G.

Topic Closed

This topic has been closed to new replies.

About this Topic