Title: Gateway timeout when importing
Last modified: August 30, 2016

---

# Gateway timeout when importing

 *  [bostondv](https://wordpress.org/support/users/bostondv/)
 * (@bostondv)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/gateway-timeout-when-importing/)
 * With version 3.0.x I’ve been unable to import (currently on 3.0.5). After setting
   the headers, I try to import and it gets stuck on “Starting”.
 * After a couple minutes I get an error popup which says: “Something went wrong.
   We could not make a connection with the server. Check your permissions and rights
   the do ajax requests”.
 * I’ve seen one or two other posts with similar issues but I am 99% sure my web
   server has no problem running ajax requests. I’ve got many other wordpress sites
   on same server without issue and reproduced the issue on another web server as
   well.
 * With debug mode on I get this in the console as well as a 504 gateway timeout
   response object.
 * `POST http://liberal.pmlo.org/wp/wp-admin/admin-ajax.php 504 (Gateway Time-out)
   m.ajaxTransport.send @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,
   utils&ver=4.2.2:4m.extend.ajax @ load-scripts.php?c=0&load[]=jquery-core,jquery-
   migrate,utils&ver=4.2.2:4doAjaxImport @ woocsv-import-admin.js?ver=4.2.2:3(anonymous
   function) @ woocsv-import-admin.js?ver=4.2.2:61m.event.dispatch @ load-scripts.
   php?c=0&load[]=jquery-core,jquery-migrate,utils&ver=4.2.2:3m.event.add.r.handle
   @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils&ver=4.2.2:3`
 * WooCommerce v2.3.13
    WooCSV attributes, custom fields, and premium plugins installed
   All other plugins disabled
 * Any advice on how to get it working?
 * [https://wordpress.org/plugins/woocommerce-csvimport/](https://wordpress.org/plugins/woocommerce-csvimport/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [allaerd](https://wordpress.org/support/users/allaerd/)
 * (@allaerd)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/gateway-timeout-when-importing/#post-6357307)
 * set the number of rows to process to 1 and try again
 *  Thread Starter [bostondv](https://wordpress.org/support/users/bostondv/)
 * (@bostondv)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/gateway-timeout-when-importing/#post-6357388)
 * “Number of products to process simultaneously” option was already set to 1.
 * Even importing a CSV with only a single row it still fails.
 *  Thread Starter [bostondv](https://wordpress.org/support/users/bostondv/)
 * (@bostondv)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/gateway-timeout-when-importing/#post-6357389)
 * The preview before running import also displays the mappings just fine, so I 
   assume there’s no problem with the CSV itself.
 *  Thread Starter [bostondv](https://wordpress.org/support/users/bostondv/)
 * (@bostondv)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/gateway-timeout-when-importing/#post-6357390)
 * I’ve disabled all plugins except woocommerce and csv import and reverted to default
   theme and problem still also exists.
 * Watching the network log in chrome is interesting, the admin-ajax.php request
   runs continually and racks up a huge amount of data transfer.
 * Screenshot (importing a single row csv): [https://www.dropbox.com/s/e9jdkv5v1nciv7u/Screen%20Shot%202015-08-04%20at%2012.52.07%20PM.png?dl=0](https://www.dropbox.com/s/e9jdkv5v1nciv7u/Screen%20Shot%202015-08-04%20at%2012.52.07%20PM.png?dl=0)
 *  [jdhilditch](https://wordpress.org/support/users/jdhilditch/)
 * (@jdhilditch)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/gateway-timeout-when-importing/#post-6357393)
 * This is marked as resolved but I dont see any new info or resolution notes?????
 * Any resolution to this issue, I am experiencing the same exact thing.
 * Please advise asap
 *  Thread Starter [bostondv](https://wordpress.org/support/users/bostondv/)
 * (@bostondv)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/gateway-timeout-when-importing/#post-6357395)
 * it’s not resolved for me, even after trying everything mentioned in earlier comments.
 *  Thread Starter [bostondv](https://wordpress.org/support/users/bostondv/)
 * (@bostondv)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/gateway-timeout-when-importing/#post-6357418)
 * Finally found the issue! A sub category slug was incorrect and did not match 
   up with the categories we had created. Once fixed the import no longer hung and
   imported correctly.
 * My value for category was “children->earrings” and needed to change it to “children-
   >earrings-children” to match the sub category slug that existed.
 * [@allaerd](https://wordpress.org/support/users/allaerd/) could this error be 
   handled better? If a category doesn’t exist, I guess the plugin is unable to 
   create it?

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Gateway timeout when importing’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/woocommerce-csvimport_aa9366.svg)
 * [Woocommerce CSV importer](https://wordpress.org/plugins/woocommerce-csvimport/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-csvimport/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-csvimport/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-csvimport/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-csvimport/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-csvimport/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [bostondv](https://wordpress.org/support/users/bostondv/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/gateway-timeout-when-importing/#post-6357418)
 * Status: not resolved