Entry tags:
Question thread #138
It's time for another question thread!
The rules:
- You may ask any dev-related question you have in a comment. (It doesn't even need to be about Dreamwidth, although if it involves a language/library/framework/database Dreamwidth doesn't use, you will probably get answers pointing that out and suggesting a better place to ask.)
- You may also answer any question, using the guidelines given in To Answer, Or Not To Answer and in this comment thread.
The rules:
- You may ask any dev-related question you have in a comment. (It doesn't even need to be about Dreamwidth, although if it involves a language/library/framework/database Dreamwidth doesn't use, you will probably get answers pointing that out and suggesting a better place to ask.)
- You may also answer any question, using the guidelines given in To Answer, Or Not To Answer and in this comment thread.
no subject
no subject
no subject
no subject
no subject
no subject
ETA: It seems like about 90 characters is where it goes wonky. I can inch it up a tiny bit more if I edit one character in at a time, but it doesn't like anything past that.
Any ideas? Thanks in advance!
no subject
- mod_perl
- Apache
- Nginx, Varnish, Perlbal, or any equivalent Apache frontend
- Any stateful firewall running on your server or on a downstream router that you control
- Any stateful firewall or NAT running on your client's local network, perhaps on a router or a cable, DSL, or fiber box.
- Any stateful firewall running on the same computer as your browser
- Any plugins running in your browser itself.
Network traces taken at suitable locations on the above chain may help shed light on what is glitching and why, if you're comfortable running and interpreting them.
no subject
I just checked all my disconnect times and they all seem pretty decent (a minute+, when the page is reloading in significantly less than that).
With troubleshooting, I've also attempted from other browsers and devices, both on and off my home network, we're not behind any kind of firewall, all to the same results.
What's weird is if I "preview" the comment or entry before posting, the preview looks fine; it's when I post it that it just spits out a character as the only data, and if I go to edit it, the content is gone and that character's all that's there. I was poking around in the TextUtil.pm file, thinking perhaps there was something in there forcing it to truncate around the text_length function and was able to get it to throw the "your comment has exceeded the maximum character length" error, so I know it's reading those parameters, I just can't seem to find what's causing it to eat everything over 90 chars.
😭
no subject
First, to confirm: you're observing the same thing (initial content being discarded instead of being appended to when you edit after first creating) for both entries and comments? For instance, when you first create an entry or comment with about 90 characters, then edit that entry or comment and add some extra text at the end, that extra text ends up replacing the original text instead of being appended to it, like "foo(imagine 87 more characters)bar" becoming just "bar"?
Second, for entries, are you using the old update page on that server or the new "beta" one? You can check by looking at https://www.example.org/beta where "example.org" is the domain name of your server install.
Third, do you have Javascript disabled (for your server or in general) in the browsers you've tested this with?
Fourth, can you check (using bin/ljdb or bin/dev/entrydump.pl) whether the damaged content is actually stored in the database?
no subject
And yeah, if I start at 90 characters (I've just been grabbing Lorem Ipsum text), it'll post entries or comments. If I edit, I can append a couple characters one at a time until it totally craps out and gives that blank character. If the initial is even 91 characters, it wipes the entry/comment and throws the blank character.
So like: OG post with 90 characters: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has"
Edit 1: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has b"
Edit 2: [totally gone]
And yeah, javascript is enabled all around.
ljdb shows the user's in the database:
user: journalfortesting / userid: 5 / clusterid: 1
entrydump.pl gives me:
entry =
Can't call method "props" on an undefined value at /home/dw/dw/bin/dev/entrydump.pl line 33
But I'm sure that's me just being a dodo and not plugging in the correct arguments to get the entry.
no subject
Thank you for your help!
Thanks for the update.
Re: Thanks for the update.