• Hi, after latest update plugin stopped working, it doesn’t render table during post edit and generate a JS error (if i disable plugin, error disappear and all goes right).
    These are chrome console errors:

    Uncaught SyntaxError: Unexpected token h in JSON at position 227
        at JSON.parse (<anonymous>)
        at Function.m.parseJSON (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,underscore,utils,jquery-ui-core,jquery-ui-wi…:5)
        at Function.e.parseJSON (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,underscore,utils,jquery-ui-core,jquery-ui-wi…:8)
        at ACFTableField.t.data_get (input-v5.js:219)
        at HTMLDivElement.<anonymous> (input-v5.js:128)
        at Function.each (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,underscore,utils,jquery-ui-core,jquery-ui-wi…:2)
        at e.fn.init.each (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,underscore,utils,jquery-ui-core,jquery-ui-wi…:2)
        at ACFTableField.t.each_table (input-v5.js:123)
        at ACFTableField.t.init (input-v5.js:90)
        at HTMLDocument.<anonymous> (input-v5.js:994)
    load-scripts.php:602 Uncaught TypeError: Cannot read property 'hasClass' of undefined
        at HTMLDocument.<anonymous> (load-scripts.php:602)
        at HTMLDocument.dispatch (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,underscore,utils,jquery-ui-core,jquery-ui-wi…:4)
        at HTMLDocument.r.handle (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,underscore,utils,jquery-ui-core,jquery-ui-wi…:4)
        at Object.trigger (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,underscore,utils,jquery-ui-core,jquery-ui-wi…:4)
        at Object.e.event.trigger (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,underscore,utils,jquery-ui-core,jquery-ui-wi…:8)
        at HTMLDocument.<anonymous> (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,underscore,utils,jquery-ui-core,jquery-ui-wi…:4)
        at Function.each (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,underscore,utils,jquery-ui-core,jquery-ui-wi…:2)
        at e.fn.init.each (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,underscore,utils,jquery-ui-core,jquery-ui-wi…:2)
        at e.fn.init.trigger (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,underscore,utils,jquery-ui-core,jquery-ui-wi…:4)
        at Object.<anonymous> (load-scripts.php:328)
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Johann Heyne

    (@jonua)

    Hello gleenk,

    I′m sorry about that issue, but I can′t replicate it. This may is an specific issue in a rare condition I can′t figure out without hands on.

    Greetings,
    Johann

    I’ve got the same error. It only appears to occur when I have a link within a table cell

    Plugin Author Johann Heyne

    (@jonua)

    Thanks for giving me that hint. I′m going to investigate this issue.
    Johann

    Plugin Author Johann Heyne

    (@jonua)

    Hi, after some testing, I did not found a situation, that replicates that issue. Is there a way to get my hands on your project to investigate the issue?

    Thanks,
    Johann

    Hi,

    We’re having the same problem. After activating the table-plugin we get the same console error when editing a post or woocommerce product.

    I think I’ve found the cause of the issue, in at least my situation.
    Line 245 of input-v5.js:
    p.data = $.parseJSON( decodeURIComponent( val.replace(/\+/g, '%20') ) );
    In the event that a value is present, but cannot be parsed into JSON the field breaks. For me, this occurred when I changed an existing field to a table field, and it already contained a value. Removing this incompatible value solved the issue for me.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Latest update broke table’ is closed to new replies.