• Resolved azaru3l

    (@azaru3l)


    Hello.

    First of all, I would like to thank you for this incredible plugin.
    I would like to ask for help, I have an html page coded to have a table so I am trying to import that page into tablepress but I always encounter with an error Invalid Data. Would you kindly guide me and point me toward the right direction so I can import the html page into tablepress successfully without the error? Thanks again

Viewing 5 replies - 16 through 20 (of 20 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    hold on, actually 🙂 I think I might have found a solution!
    Give me a few more minutes and I’ll send some ideas for testing 🙂

    Regards,
    Tobias

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    ok, here’s the idea:

    Please replace the file

    /wp-content/plugins/tablepress/classes/class-import.php
    

    of the TablePress copy on your server with the updated version from
    https://raw.githubusercontent.com/TobiasBg/TablePress/master/classes/class-import.php

    After that, the HTML import of your tables should work fine, as the new file contains an updated/extended HTML import method that should no longer fail with the large tables.
    (The performance when loading the imported table’s “Edit” screen will still be slow though.)

    Regards,
    Tobias

    Thread Starter azaru3l

    (@azaru3l)

    Hello and Good Day Mr.Tobias
    It works like a charm Mr.Tobias! I am so happy! Thank you so much Mr.Tobias. As for now, after I updated the class-import.php with the updated code the large tables imported successfully. Just curious Mr.Tobias, what part of the code did you change in the class-import.php?

    Thread Starter azaru3l

    (@azaru3l)

    This deserves a donation. Thanks again Mr.Tobias!

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    awesome! Good to hear that this worked now, and thanks for the donation! I really appreciate it!

    Regarding the change: Instead of relying on a Regular Expression, which can fail on very large tables, the importer now uses available PHP functions for HTML parsing in a better way.

    Best wishes,
    Tobias

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘Invalid Data Import’ is closed to new replies.