• Resolved Werther

    (@werther)


    I’ve a problem.
    If I try to edit an exist table, with a non admin user the have right to edit table, I receive an error:
    Salvataggio fallito: AJAX call successful, but unclear data. Try again while holding down the “Shift” key.

    and in console, I’ve this error
    success”:false,”message”:”error_save”,”output_buffer”:””

    Any suggest?

    Thanks in advance

    http://ww.wp.xz.cn/plugins/tablepress/

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Just to be sure: Are you using the latest versions of WordPress and TablePress?
    If not, can you please update everything?

    If yes, I’d like to take a direct look at this on your site. Could you therefore please create a temporary admin account for me and send me the details via email (the address is in the main plugin file “tablepress.php”)? That way, I can investigate this directly. Thanks!

    Regards,
    Tobias

    Thread Starter Werther

    (@werther)

    Sorry, I made a mistake… but I solved it.
    After I have read you reply, I checked the code and I figured out.
    I was using extra javascript code to hide some content to editor users. This was the code:
    if ($(‘body’).hasClass(‘toplevel_page_tablepress’) && $(‘#tablepress_edit-table-data’).length){
    $(‘#tablepress-nav, .postbox-container > p:not(“.submit”), p.submit .show-preview-button, #tablepress_edit-table-information tbody tr:nth-child(1), #tablepress_edit-table-manipulation, #tablepress_edit-table-options, #tablepress_edit-datatables-features, thead, tfoot, #tablepress_edit-table-data tr td:nth-child(2)’).remove();

    doh! I changed function and now it works perfectly!

    if ($(‘body’).hasClass(…..).css(‘display’,’none’);

    Thank you very much!

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    very interesting approach! And yes, removing those elements will indeed break the plugin. Hiding them is sufficient. Good to hear that you found this! 🙂

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Save error on edit’ is closed to new replies.