• I want import post, comments, etc.. from my old blog. the version is 2.5.1. When i click “upload and import” button, the blog start loading, but i just get this message.

    Warning: gzopen() has been disabled for security reasons in /export/cjb/user/0day/m/u/mutualslump/wp-admin/import/wordpress.php on line 58
    Invalid file

    Please upload a valid WXR (WordPress eXtended RSS) export file.

    I need some help! i thing this is a php error but i dont know what is the expedient.

    (sorry, my english is bad :))

Viewing 2 replies - 1 through 2 (of 2 total)
  • 1. Don’t use a gzip file
    or
    2. Ask your host to enable gzopen()

    I had a related problem and wanted to post my solution in case anyone searched for it. I didn’t get “disabled for security reasons” but I did get a line 58 error and a mention of “Warning: gzopen” as well. For me, it was due to the file permissions.

    This is how to solve it. Import the file and get to the next step, where you select the author to associate with the author of the imported posts and whether to download the attachments. BEFORE hitting the submit button and proceeding to the next step, navigate to the wp-content/uploads folder on your web server, go to the subfolder corresponding to the current month, and find the “filename.xml.import” file which is magically there (if your blog is set up to organize by month/day — if not, you may have to SEARCH to find where the “filename.xml.import” upload file is). Then change the UNIX file permissions so it is 0777 on a typical PHP setup, or 0766 if your PHP setup is suPHP like mine is.

    Then proceed to the next step, and if you were having the same problem I was, everything should import correctly.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Import problem (need help)’ is closed to new replies.