• Resolved radioterra

    (@radioterra)


    Hi Tobias,

    I open a new topic related to this one (https://wordpress.org/support/topic/encoding-errors-in-tablepress-html-import):

    Currently I’m importing a CSV file with one column that have this kind of HTML code:

    "<a href=""http://laradio.cat/popup-reproductor.php?reproductor_url=http://www.ivoox.com/va-de-llibres-programa-sobre-l-ovidi_mf_12889507_feed_1.mp3"" onclick=""window.open('http://laradio.cat/popup-reproductor.php?reproductor_url=http://www.ivoox.com/va-de-llibres-programa-sobre-l-ovidi_mf_12889507_feed_1.mp3','player','status=no,toolbar=no,location=no,resizable=no,width=520,height=333');return false;""><img class=""tablepress-boto-descarrega"" src=""http://laradio.cat/podcasting/boto-escoltar.png"" alt=""Descarrega""/></a>"

    I realized that if I import the CSV file manually all works fine, but now I’m importing the CSV file using Automatic Periodic TablePress Import extension with “File on server” option every 15 minutes. In this case, although the CSV code contains the previous HTML code, TablePress only render this:

    <a href="http://laradio.cat/popup-reproductor.php?reproductor_url=http://www.ivoox.com/va-de-llibres-programa-sobre-l-ovidi_mf_12889507_feed_1.mp3"><img class=""tablepress-boto-descarrega"" src=""http://laradio.cat/podcasting/boto-escoltar.png"" alt=""Descarrega""/></a>"

    That provokes that “onclick” option doesn’t work and so, the hyperlink not opens a new window.

    Do you have any idea about what is happening?

    Thanks!

    Best regards.

Viewing 1 replies (of 1 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    This is caused by some security features in WordPress. The “Auto Import” runs as an unprivileged user (i.e. a logged-out user). Those are not allowed to add such JS content to a WordPress page or post or a TablePress table 🙁
    So, using the Auto Import Extension with this will not work, I’m afraid.

    Regards,
    Tobias

Viewing 1 replies (of 1 total)

The topic ‘Auto’ is closed to new replies.