uploading xml of wordpress but recieved error please help

Discussion in 'XML & RSS' started by etc, Jul 23, 2010.

  1. #1
    upon uploading i received an error such as
    
    File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini or by post_max_size being defined as smaller than upload_max_filesize in php.ini.
    Code (markup):
    anyone knows the solution please?
     
    etc, Jul 23, 2010 IP
  2. atxsurf

    atxsurf Peon

    Messages:
    2,394
    Likes Received:
    21
    Best Answers:
    1
    Trophy Points:
    0
    #2
    what is the size (bytes) of your xml file?
     
    atxsurf, Jul 23, 2010 IP
  3. etc

    etc Well-Known Member

    Messages:
    3,236
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    158
    #3
    i only have 5mb file - a small database actually.. 5419041 bytes i think
     
    etc, Jul 23, 2010 IP
  4. atxsurf

    atxsurf Peon

    Messages:
    2,394
    Likes Received:
    21
    Best Answers:
    1
    Trophy Points:
    0
    #4
    well as it says check your upload_max_filesize parameter in php.ini. If on sharing hosting, you should be able to see it in php_info() output (i think).

    also you may want to check if the upload directory is not right protected (chmod it to 777)
     
    atxsurf, Jul 23, 2010 IP
  5. etc

    etc Well-Known Member

    Messages:
    3,236
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    158
    #5
    where can i see the php.ini in the cpanel?
     
    etc, Jul 23, 2010 IP
  6. atxsurf

    atxsurf Peon

    Messages:
    2,394
    Likes Received:
    21
    Best Answers:
    1
    Trophy Points:
    0
    #6
    you won't, it needs root access.
    just create a run script

    <?php
    php_info();
    ?>
    PHP:
    and search for that parameter in its output
     
    atxsurf, Jul 23, 2010 IP
  7. etc

    etc Well-Known Member

    Messages:
    3,236
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    158
    #7
    i actually don't get what you mean there. i'm in cpanel. where can isee the code?

    should i go inside the wordpress files in file manager or elsewhere?
    in phpmyadmin?
     
    etc, Jul 23, 2010 IP
  8. atxsurf

    atxsurf Peon

    Messages:
    2,394
    Likes Received:
    21
    Best Answers:
    1
    Trophy Points:
    0
    #8
    you need to create and upload file (call it test.php) that contains that code and than browse it like hxxp://yoursite.com/test.php
     
    atxsurf, Jul 23, 2010 IP