• 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 15 replies - 1 through 15 (of 20 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    It’s hard to tell what’s wrong here without seeing that page. It might for example be possible that the HTML code for the table is invalid.
    Can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!

    Regards,
    Tobias

    Thread Starter azaru3l

    (@azaru3l)

    Thanks for your reply. I would like to share the link but unfortunately its develop for in house use which required intranet connection in order to access it. Would it be fine if I share directly the code of the page where the table that I would like to import to tablepress?

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    yes, that should work. Can you email it? My address is in the main plugin file “tablepress.php”.

    Just to be sure: The WordPress instance is in that same intranet, i.e. it can access that HTML page?

    Regards,
    Tobias

    Thread Starter azaru3l

    (@azaru3l)

    Hello Mr.Tobias

    I already sent you an email. Kindly please check it.

    Thank You.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks! The output of that script would probably have been better, but I think I might have found a possible cause: The table seems to be using colspan, and if I remember correctly, the importer does not understand that.

    Regards,
    Tobias

    Thread Starter azaru3l

    (@azaru3l)

    Thanks for the reply Mr. Tobias. Yes I know the output could be better but I am not really a good programmer cause I am still new to this coding worl. Anyway I am gonna try remove colspan and gonna try import the table to tablepress. Thanks again Mr. Tobias

    Thread Starter azaru3l

    (@azaru3l)

    Unfortunately Mr Tobias, eventhough after removing colspan I still encounter with the error. What kind of data type that is allowed to be imported to tablepress Mr.Tobias?

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    can you then maybe email me the actual table output HTML code (i.e. the resulting <table> ... </table> HTML that your script now generates?

    Regards,
    Tobias

    Thread Starter azaru3l

    (@azaru3l)

    Good Dar Mr. Tobias. I already sent an email to you. Kindly check it. Thank you so much for your help Mr. Tobias

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks! I have received the new file and already ran some checks on it. From what I can see, the HTML syntax is correct, expect for one small issue directly after the header row (a <tr><tr> that should </tr><tr>). However that is not the problem.

    Instead, it seems that the Regular Expression that TablePress uses to extract the HTML code for the table from the file (which contains more HTML code than just the table) fails here. This might be caused by the size of the table, but I’m not sure. I’m afraid that I’ll have to do some more testing here, so that I can hopefully come up with a better Regular Expression. As I’m not an expert with those, this might however take a bit :-/

    Regards,
    Tobias

    Thread Starter azaru3l

    (@azaru3l)

    Hello Mr.Tobias

    Thank you so much for your effort in helping me trying to resolve this problem. I can only hope that you come up with the solution.

    Regards.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    sure, no problem!

    Now, just out of interest: Do you (at the moment) just want to import this table into TablePress once?
    (Because I could then try to convert it to a CSV file, which you can import. That way, you would not have to wait until I can fix the actual cause in the HTML import.)
    Or do you, at this time, want to import several tables from a HTML file?

    Regards,
    Tobias

    Thread Starter azaru3l

    (@azaru3l)

    Hi Mr.Tobias
    Unfortunately I need to import several table not just only once but whenever the user fill in the data through a form and updated the table. I have also consider the option to convert the table into csv then only import it through using tablepress but given the circumstances, it is not an ideal solution for me now. Currently I am studying DataTables library in hoping I can find an alternative for my usage.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    ok, I see. I will then intensify my research on fixing the HTML import.
    Unfortunately though, I can’t make promises yet, and I can’t give an estimate on when this will work, as I’m very busy at the moment 🙁 Sorry for not having better news yet.

    Regards,
    Tobias

    Thread Starter azaru3l

    (@azaru3l)

    Hello Mr. Tobias
    I hope you have a good day. Take your time Mr.Tobias. Just knowing that you put so much effort in trying to help me already I can’t thank you enough. I understand that you doing this for free. Once again, thank you so much for this amazing plugin as this has help people like me who have limited knowledge on programming to create a beautiful table in our wordpress page.

Viewing 15 replies - 1 through 15 (of 20 total)

The topic ‘Invalid Data Import’ is closed to new replies.