Title: Error when importing csv files
Last modified: August 21, 2016

---

# Error when importing csv files

 *  Resolved [pankajdev](https://wordpress.org/support/users/pankajdev/)
 * (@pankajdev)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/error-when-importing-csv-files/)
 * Getting an error and unable to import CSV file into TablePress. Error message–
   Fatal error: Maximum execution time of 30 seconds exceeded in /var/sites/a/automiddleeast.
   com/public_html/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line
   695
 * Please advice. Thanks.
 * [https://wordpress.org/plugins/tablepress/](https://wordpress.org/plugins/tablepress/)

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/error-when-importing-csv-files/#post-4763557)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * As it seems that error is coming from the WP Super Cache plugin. This might however
   be triggered by TablePress trying to flush the page caches.
    You could try to
   turn that off by adding the line
 *     ```
       add_filter( 'tablepress_flush_caching_plugins_caches', '__return_false' );
       ```
   
 * to the “functions.php” in your theme.
    You would then however have to flush the
   page caches manually after editing a table, so that changes become visible.
 * However, as this might have been a temporary issue with a large table, the question:
   Was the CSV file imported correctly, despite that error message?
 * Regards,
    Tobias
 *  Thread Starter [pankajdev](https://wordpress.org/support/users/pankajdev/)
 * (@pankajdev)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/error-when-importing-csv-files/#post-4763777)
 * Functions.php was modified as instructed. Now, the only way tables get loaded
   and are when the WP Super Cache is disabled. Therefore each time a table needs
   to be loaded, WP Super Cache is disabled and enabled once we are done with Table
   Press uploads. Is there any solution to this?
 * Please advice. Thanks.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/error-when-importing-csv-files/#post-4763778)
 * Hi,
 * I’m not sure that I understand.
    The line of code from above will tell TablePress
   to no longer flush the WP Super Cache caches whenever a table is imported or 
   edited. You will now basically just have to do that manually whenever you update
   a table, but that is possible without deactivating WP Super Cache.
 * Regards,
    Tobias
 *  Thread Starter [pankajdev](https://wordpress.org/support/users/pankajdev/)
 * (@pankajdev)
 * [12 years ago](https://wordpress.org/support/topic/error-when-importing-csv-files/#post-4763779)
 * Here is what we did –
 * 1: Added
    add_filter( ‘tablepress_flush_caching_plugins_caches’, ‘__return_false’);
   to the function.php
 * 2: Activated WP Super Cache plugin
    3: Prepared a .csv file with 3 columns and
   7 rows of data in it 4: Import file in Table press
 * I have tried the three options for working with Tablepress but neither worked
   out.
 * 1) Importing table – results in a blank screen.
 * 2) Creating a new table manually – results in a blank screen.
 * 3) Editing an already created table – results in the generation of this error
   message and table is not updated. The error message read – Saving failed: Ajax
   call failed error: Internal Server Error. Try again while holding down the SHIFT
   key.
 * On the other hand when we deactivate the WP Super Cache plugin and do any of 
   the above to upload in Tablepress – all works well.
 * Hope this gives you better understanding. Please advice. Thanks.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years ago](https://wordpress.org/support/topic/error-when-importing-csv-files/#post-4763780)
 * Hi,
 * I don’t really have an explanation for this here, and I have not heard reports
   about this from other users 🙁
    I can only assume that something in the W3 Super
   Cache configuration is still hooking into the save process of a post (which is
   what TablePress uses internally to save the tables). And that apparently takes
   a long time in W3 Super Cache…
 * Regards,
    Tobias
 *  Thread Starter [pankajdev](https://wordpress.org/support/users/pankajdev/)
 * (@pankajdev)
 * [12 years ago](https://wordpress.org/support/topic/error-when-importing-csv-files/#post-4763781)
 * OK – its WP Super Cache that we are using.
 * I guess will have to leave it at this.
 * Incase you think of something that could sort this out, let us know.
 * Until then we will play the activate/deactivate game with WP Super Cache
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years ago](https://wordpress.org/support/topic/error-when-importing-csv-files/#post-4763782)
 * Hi,
 * ah, my bad. I’m always mixing up the names… Sorry.
 * Yes, temporarily deactivating WP Super Cache will have to do as a workaround 
   then. I have no other ideas about what might be causing this 🙁
 * Regards,
    Tobias

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

The topic ‘Error when importing csv files’ is closed to new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/error-when-importing-csv-files/#post-4763782)
 * Status: resolved