• Resolved delphineous

    (@delphineous)


    I am running TablePress 1.12.
    Since upgrading to WordPress 5.6, I have been unable to edit my table which has 2595 rows with 4 columns. My browser (Chrome and Firefox) report a long running script. I click “Continue” in hopes that it eventually finishes, but to no avail the browser eventually hangs. Stopping the script disables all tablepress buttons in the editor and I am unable to modify the table. (naturally)
    This issue does not occur on small tables. My next largest table is only 258 rows, and does not present this issue. As a test I kept adding rows to this table until the long running script error would occur. 965 Rows with 4 columns exhibits this condition. 1000 Rows with 3 columns had no issue. I am able to replicate this issue on both of my sites that I bumped to 5.6. No issues with 5.5.
    Is there a data buffer that needs to be adjusted, either admin side or perhaps with the plug-in itself?

    • This topic was modified 4 years, 3 months ago by delphineous.
Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Essentially, the cause for this is the large number of cells (input fields) in the table and not the number of rows.
    This results in the browser needing more time to process the JavaScript code.
    The update to WordPress 5.6 is not the problem here, it basically just helped uncover this issue again.

    I’m already working on a completely rewritten “Edit” screen that will also be faster. In the meantime, my suggestion would be to edit/maintain the table offline, e.g. in Excel, and then re-import a saved CSV file into TablePress, replacing the existing version of the table.

    Regards,
    Tobias

    Hi Tobias
    I might have a similar problem?
    I use Tablepress for at table with 5339 rows and 4 columns and update every week by importing an Excel. (csv-file)
    But today both Firefox and Chrome couldn’t load the page entirely, and a warning showed saying: “A webpage is slowing your browser”, and it couldn’t load the page.
    I had to terminate the page, luckily the table got updated allright. But when I try to open the table in Tablepress, the same thing happens. This doesn’t happen on other pages.

    I run the newest WordPress and has Divi as theme.
    I am very fond of Tablepress, thanks again for your excellent work.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    yes, this is the same issue, I’m afraid. The large amount of table cells make the JavaScript take a long time, and Firefox and Chrome then show that warning.
    As you are importing, your table data will have been saved without problems, you will just not be able to edit it on that screen afterwards.

    I hope to be able to make this better in the future!

    Regards,
    Tobias

    Thanks Tobias, you are the best! ??
    FYI, this is the first time I get this problem, and I have updatede the same table for a long time. (Which reminds me, that it’s due time to buy you another large cup of coffee.)

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    yes, it’s a bit of coincidence with the update to WordPress 5.6, which includes a new version of jQuery. I’ll try to find out what exactly changed there and see if I can use that for some optimization!

    And thanks for the donation, I really appreciate it!

    Best wishes,
    Tobias

    Thread Starter delphineous

    (@delphineous)

    Thank you Tobias! I love your plug-in and have sent you a few cups of coffee over the years. I look forward to you resolving, so I can send more cups.. 8^)

    I’ll try your work-around idea this evening.

    Stay healthy and safe!

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks! I hope you are safe and healthy as well!

    Best wishes,
    Tobias

    Thread Starter delphineous

    (@delphineous)

    Happy New Year, Tobias!

    I was hoping to see an update on this matter. Have you been able to determine a fix, whether on TablePress or a setting change in WordPress?

    Best wishes.

    • This reply was modified 4 years, 2 months ago by delphineous.
    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    no, sorry, I don’t yet have an update here. As we are in lockdown, and I have a little kid at home, I simply haven’t had the time to take a deeper look at this. I’m really sorry.
    At this time, I can only suggest the workaround to edit the table offline, e.g. in Excel, as mentioned above.

    Regards,
    Tobias

    hello Tolbias,
    Do you think you can find a medium term solution to solve this problem? my table is nearly 4000 lines long and the solution of an export to excel is a real pain. I did it once and gave up. I still stick to wordpress 5.5.3 because your plugin is really great for me.
    best regards
    Didier

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi Didier,

    sorry to hear that you are also affected by this. Unfortunately, I can’t report any news here ?? At this time, I can only suggest to test again once in a while, to also take into account for browser updates that might bring speed improvements here.

    Regards,
    Tobias

    Hi Tobias,
    Thank you for your response which I fear leaves me with little chance of seeing a solution to my problem. Your suggestion to export the file as .csv to edit it in excel doesn’t work for me, because when I want to re-import the file into tablepress, the plugin tells me the format is invalid. Being French, there are a lot of accented letters, there must also be a code problem.
    cordially
    Didier Rivage

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    it says the format is invalid? For a CSV file? That would be really strange… Please make sure that you are really using a CSV file and that you selected CSV as the format when importing.

    The accents could indeed be a problem, but normally WordPress and TablePress handle these well, as they use UTF-8 as the character encoding. Not so much with Excel though. It has problem with accents and UTF-8, unfortunately ?? I’ve seen that LibreOffice works much better there.

    Regards,
    Tobias

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Long Running Script Since WordPress 5.6 Upgrade’ is closed to new replies.