• Resolved jah

    (@jah)


    I’m running 2.1.3.

    I’ve got a wxr file that’s about 14 megs. WordPress says that’s too big, but it’s not too big for the server. I’ve tried searching, but the results don’t appear recent enough to involve the built-in wordpress import function.

    Help?!?

Viewing 15 replies - 1 through 15 (of 17 total)
  • What do you mean it’s not to big for the server. Most likely the cause is php memory limit. You can either edit your php.ini file or if you using a server with apache editing your .htaccess file would help. If your adding in your .htaccess file
    php_value memory_limit 32M
    or in your php.ini file
    memory_limit 32M Look for the memory_limit directive and edit it instead of adding a new one.

    Thread Starter jah

    (@jah)

    When I try to upload the 14meg file, it takes a minute and gives the error

    Sorry, there has been an error.

    File is empty. Please upload something more substantial.

    Actually, I’m not sure what that means. I thought it meant it was too big, but now I’m not sure.

    To me it sounds like php is running out of memory. If you have access to your server error logs take a look and you’ll probably find something to the effect of php fatal error memory exhausted. I’ve had the same thing happen to me.

    Thread Starter jah

    (@jah)

    aha!

    [01-May-2007 09:35:09] PHP Warning: POST Content-Length of 14290083 bytes exceeds the limit of 8388608 bytes in Unknown on line 0

    Do you know how I can change that? I’m not that familiar with the inner workings of server and php stuff.

    If your using a hosting providor you’ll have to contact them and tell you need to increase your php memory. Give them the specific error and they should be able to get it fixed.

    Or if you have access to edit your php.ini file. You can edit this line
    post_max_size = 8M
    increase that to 16M or even 32M to be on the safe side. You’ll also have to do what I suggested in my first reply as well.

    Thread Starter jah

    (@jah)

    Question: this blog is on a subdirectory, and there is also a blog on the home directory. To change that 8M, do I just modify the .htaccess and php.ini on the subdirectory?

    If you aren’t having trouble with the other blog, editing you .htaccess file would work fine. You could just add the following lines above where it says #BEGIN WORDPRESS

    php_value memory_limit 32M
    php_value post_max_size 16M

    Let me know if that works because I’ve never seen the POST Content-Length error before.

    Thread Starter jah

    (@jah)

    I can edit php.ini, or at least I think I can. But even when I edit it (and I’ve tried editing both on the subdirectory and home directory), it still gives the same error.

    Does this mean I need to contact hosting support, do you think?

    Thread Starter jah

    (@jah)

    Oh, just saw your response. Trying that.

    After editing you php.ini file you would need to restart apache for the changes to take affect. So if you’ll able then try restarting your web server.

    Thread Starter jah

    (@jah)

    I’m getting an error when I try to modify the .htaccess.

    # For security reasons, mod_php is not used on this server. Use a php.ini file for php directives

    Thread Starter jah

    (@jah)

    I’m not thinking I can restart the web server. Is that a common thing to be able to do?

    Okay they’ve got it set where you can’t issue php directives from you .htaccess file. But if you’ve edited your php.ini file then try restarting your web server.

    I’m not really familiar with web hosting but if you’re not able to restart it then you’ll have to contact your hosting provider and get them to restart it.

    Thread Starter jah

    (@jah)

    Ok, going through the channels on my host. I’ll update when I get somewhere.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Import XML/WXR’ is closed to new replies.