Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    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

    (@pankajdev)

    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

    (@tobiasbg)

    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

    (@pankajdev)

    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

    (@tobiasbg)

    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

    (@pankajdev)

    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

    (@tobiasbg)

    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.