Title: Import problem (need help)
Last modified: August 19, 2016

---

# Import problem (need help)

 *  [neroxa](https://wordpress.org/support/users/neroxa/)
 * (@neroxa)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/import-problem-need-help/)
 * 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)

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/import-problem-need-help/#post-804201)
 * 1. Don’t use a gzip file
    or 2. Ask your host to enable gzopen()
 *  [vallenwood](https://wordpress.org/support/users/vallenwood/)
 * (@vallenwood)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/import-problem-need-help/#post-804457)
 * 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.

## Tags

 * [Import](https://wordpress.org/support/topic-tag/import/)
 * [problem](https://wordpress.org/support/topic-tag/problem/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 2 replies
 * 3 participants
 * Last reply from: [vallenwood](https://wordpress.org/support/users/vallenwood/)
 * Last activity: [17 years, 10 months ago](https://wordpress.org/support/topic/import-problem-need-help/#post-804457)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
