-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot read property 'substring' of undefined - RESTART! #2836
Comments
which commit are you using? can you cherry pick #2801 |
I tried to cherry-pick 1ee1f81 to start, but got a conflict that I was not sure how to resolve. I suspect your version is based off of a different place than the 1.5.7 release? |
thanks, cherry-picked both of those and restarted the server, will report back |
Just got another restart:
|
ok I try to find the bug. |
Do you mean in the function, like this:
Because I tried that and the timeslider is still working. |
yep, it's loading timeslider's html but you won't be able to issue requests to the timeslider (which contain the actual revisions) - at least it should work like this imo :) |
*bump |
I can reproduce the bug now but the test data is huge and the area it occurs is not documented. investigating now, but not sure I'll find it today... |
I have got the same problem over here: I was able to reproduce the problem on a different server by exporting and importing the affected etherpad. Unfortunately I cannot publish the file as it contains data of our customers. |
I was able to remove all custom text from the etherpad while preserving the error. Steps to reproduce:
|
They test if it is possible to delete lines from the array that is mutated by a changeset, and after no line is left insert some characters (with or without new lines).
Just wanted to add some additional missing information here... we were also getting restarts/crashes when the export was done. Not always, but probably with certain pads with characters/character sets that were not filtered properly. This was causing us such a problem that we had to disable pad exports... but this is something people need so we would like to be able to re-enable it! |
sorry for the delay... for the issue described here I opened a pull request at #2911 RE your export issues please pull from https://github.com/ether/etherpad-lite/tree/fix-export-regressions. It is not ready to be merged in but it should be enough to stop the crashes. It would be awesome if you could try it and if nothing happens grep for "Could not process export request" and send me any warnings you got. |
@webzwo0i - great! I'd love to give them a try, but I'm currently running the latest release (1.5.7), and not the tip of master. Unfortunately, I dont want to move the code to master on the live instance. I tried to cherry-pick the commits onto that release, but it wouldn't apply. Are those commits easy to rebase onto that release? |
I prepared a patch file for the export fixes at https://gist.github.com/webzwo0i/99c57a5482a0f28eb3e6
the other fix is not ready to apply, I discovered more issues, but I am working on this and will report back soon |
Thanks @webzwo0i ! I've applied the export fixes patch as described, and am running it now, so far so good... but I'll need to wait a little bit to see if the original issue comes back. |
Since applying that patch from @webzwo0i we haven't experienced that issue! |
Well... I spoke too soon. I had a webserver config line that just denied exports. |
Was a fix for this ever applied? Found the following in my logs and I'm assuming it's a manifestation of this bug: [2018-03-13 19:26:00.885] [ERROR] console - TypeError: Cannot read property 'substring' of undefined I am running version 1.5.7. Curious if a newer version will fix this. |
This seems to be fixed now. |
They test if it is possible to delete lines from the array that is mutated by a changeset, and after no line is left insert some characters (with or without new lines).
They test if it is possible to delete lines from the array that is mutated by a changeset, and after no line is left insert some characters (with or without new lines).
They test if it is possible to delete lines from the array that is mutated by a changeset, and after no line is left insert some characters (with or without new lines).
They test if it is possible to delete lines from the array that is mutated by a changeset, and after no line is left insert some characters (with or without new lines).
We have a very active set of pads, with several hundred users on them. Unfortunately, something is causing etherpad to restart on a regular basis, this is the log of when it does:
The text was updated successfully, but these errors were encountered: