Author Topic: Bug with Quoting and Quick-Edit  (Read 1657 times)

0 Members and 1 Guest are viewing this topic.

Offline Meadow Whisper (Natasha)

  • ᎣᏏᏲ! I'm a horse now! ^.^
  • FT Founder
  • *
  • Posts: 4409
  • Cookies: 397
  • Avatar by Fawn! :D
    • DeviantArt - lupiniastudios
    • FurAffinity - softpaw
    • Twitter - lupinia
    • Weasyl - softpaw
    • Lupinia Studios
  • Fursona Species: Chincoteague Pony
Bug with Quoting and Quick-Edit
« on: April 02, 2012, 11:28:16 pm »
As some of you have noticed, there's a bug in the site affecting the Quote button, when used with the Quick Post form (at the bottom of each page), as well as the Quick Edit link.  Basically, the javascript responsible for those functions isn't correctly delivering the text to the text box.

What's truly bizarre about this is that nothing has changed on the site since long before this started happening, so I'm not certain what happened.

I'm aware of this, but here's the deal:  I've been working full-time hours on web projects for the company I'm a contractor for, and will continue to do so for the next few weeks at least, so I simply haven't had time to fix this.  It's within my realm of expertise, but troubleshooting Javascript is annoying.  So, if anyone feels they can help out, go for it!  It's a javascript bug, so it's not something that would require server access.  If you can help diagnose this bug, and at least give me a place to look to fix it, I'll prepare something special for you as a thank-you.

In the meantime, until this is fixed, you can work around it in a few ways.
-To quote a post, right-click the Quote button and open it in a new tab or window.  This will force it to use the full Edit/Post form, which works correctly.
-Alternately, disable the Quick Reply form in your preferences, but I wouldn't recommend it, because it's so darn handy.
-To edit a post, instead of the inline quick-edit button, use the Edit Post link in the top-right of the post.  This goes to the full Edit/Post form, which works correctly.

It's been confirmed that this is broken on pretty much every browser and OS combination imagineable, so I don't need that sort of data.  However, if it IS working correctly for you, please reply with your browser and OS details.  Do not reply if it's not working for you; I already know it's not working, and that it's not browser-specific.
  • Award - Beta Tester
  • Site Donor
  • Pride Flag - transgender
  • Pride Flag - gay
  • Pronouns: She/Her/Hers
Here is a horse I have made for you:
        |,\_/,\_
 ,-__/,   ,       )kk
.                     \,kkk
 \    ,___....--     \kkkk
           \               \kkkkk
             \               \kkkkk

Note:  I'm no longer actively involved in running this site, so while I welcome any personal messages, please do not contact me about account issues.  Please direct all such inquiries to Panda.  Thanks for all the years of awesome memories and friendship!  <3

Offline Sleek

  • MoonMoon
  • Sitewide Moderator
  • *
  • Posts: 1882
  • Cookies: 119
  • Gonna Get The Thing
    • DeviantArt - SleekHusky
    • FurAffinity - Sleek34
    • Twitter - SleekHusky
    • Weasyl - SleekHusky
  • Fursona Species: Huskeh
Re: Bug with Quoting and Quick-Edit
« Reply #1 on: April 02, 2012, 11:53:21 pm »
Well it appears to be working for me so far. I use Google Chrome and mu OS is Windows 7 Ultimate. Any other info you need?
  • Site Donor
  • Pronouns: He/Him/His/They/Them/Their
I try to manage some semi-official gaming events for this forum.
Twitch.tv livestreamer here
FT's Twitch Channel here
Avatar Drawn By Unibat

Offline copb.phoenix

  • So long and goodnight
  • Purple Level
  • *
  • Posts: 2229
  • Cookies: 115
    • FurAffinity - copb_phoenix
Re: Bug with Quoting and Quick-Edit
« Reply #2 on: April 05, 2012, 01:39:33 pm »
Quick-edit test:
Script.js line 101 ~ on call from attempting to quick edit this post, XML grants blank response:

Code: [Select]
SIGNAL
GET http://www.furryteens.org/forum/index.php?action=quotefast;quote=298936;modify;xml

PARAMS
action quotefast;quote=298936;modify;xml

RESPONSE HEADER
Cache-Control max-age=180, must-revalidate
Content-Length 133
Content-Type text/xml; charset=UTF-8
Date Thu, 05 Apr 2012 17:56:28 GMT
Expires Mon, 26 Jul 1997 05:00:00 GMT
Last-Modified Thu, 05 Apr 2012 17:56:29 GMT
Pragma no-cache
Server Apache/2.2
Via 1.1 vhost.phx4.nearlyfreespeech.net:3128 (squid/2.7.STABLE7)

REQUEST HEADER
Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding gzip, deflate
Accept-Language en-us,en;q=0.5
Connection keep-alive
Cookie LUPSESSID=tra2npahg8a7k2pd871hsegdn4; furryteens=a%3A4%3A%7Bi%3A0%3Bs%3A4%3A%221140%22%3Bi%3A1%3Bs%3A40%3A%225d950008eadba0e043cb13cd6f597ddae027f23e%22%3Bi%3A2%3Bi%3A1506476825%3Bi%3A3%3Bi%3A0%3B%7D; PHPSESSID=c0e044d19790afa67cebfd8acc266dac
Host www.furryteens.org
Referer http://www.furryteens.org/forum/index.php?topic=12733.msg298937
User-Agent Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0

RESPONSE DATA
<?xml version="1.0" encoding="UTF-8"?>
<smf>
<subject><![CDATA[]]></subject>
<message id="msg_298936"><![CDATA[]]></message>
</smf>

XML
<smf>
<subject></subject>
<message id="msg_298936"></message>
</smf>

Give me a minute and I'll try a quote.



Again, we see a fire off to script.js, line 101 with responses empty:

Code: [Select]
SIGNAL
GET http://www.furryteens.org/forum/index.php?action=quotefast;quote=298936;xml

PARAMS
action quotefast;quote=298936;xml

RESPONSE HEADER
Cache-Control max-age=180, must-revalidate
Content-Length 68
Content-Type text/xml; charset=UTF-8
Date Thu, 05 Apr 2012 18:03:07 GMT
Expires Mon, 26 Jul 1997 05:00:00 GMT
Last-Modified Thu, 05 Apr 2012 18:03:08 GMT
Pragma no-cache
Server Apache/2.2
Via 1.1 vhost.phx2.nearlyfreespeech.net:3128 (squid/2.7.STABLE7)

REQUEST HEADER
Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding gzip, deflate
Accept-Language en-us,en;q=0.5
Connection keep-alive
Cookie LUPSESSID=tra2npahg8a7k2pd871hsegdn4; furryteens=a%3A4%3A%7Bi%3A0%3Bs%3A4%3A%221140%22%3Bi%3A1%3Bs%3A40%3A%225d950008eadba0e043cb13cd6f597ddae027f23e%22%3Bi%3A2%3Bi%3A1506476825%3Bi%3A3%3Bi%3A0%3B%7D; PHPSESSID=c0e044d19790afa67cebfd8acc266dac
Host www.furryteens.org
Referer http://www.furryteens.org/forum/index.php?topic=12733.msg298936
User-Agent Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0

RESPONSE
<?xml version="1.0" encoding="UTF-8"?>
<smf>
<quote></quote>
</smf>


XML
<smf>
<quote></quote>
</smf>


@Natasha :natasha:
Is squid pumping an empty response from NFS's end? It seems to be the culprit ~ everything is well formed - even the response - it's just empty. This means that wherever the body is supposed to be summoned from, it's not being summoned successfully....

Edit:
My brain skipped tracks for a minute. I'm going to pour through the javascript itself and see what the request/function/whatever on that line is, but I'm well aware that we're now hosted on NFS (or so my impression stands). The caching proxy - squid. This seems to be the culprit if you want me to swing a guess.



Code: [Select]
// Load an XML document using XMLHttpRequest.
function getXMLDocument(sUrl, funcCallback)
{
if (!window.XMLHttpRequest)
return null;

var oMyDoc = new XMLHttpRequest();
var bAsync = typeof(funcCallback) != 'undefined';
var oCaller = this;
if (bAsync)
{
oMyDoc.onreadystatechange = function () {
if (oMyDoc.readyState != 4)
return;

if (oMyDoc.responseXML != null && oMyDoc.status == 200)
{
if (funcCallback.call)
{
funcCallback.call(oCaller, oMyDoc.responseXML);
}
// A primitive substitute for the call method to support IE 5.0.
else
{
oCaller.tmpMethod = funcCallback;
oCaller.tmpMethod(oMyDoc.responseXML);
delete oCaller.tmpMethod;
}
}
};
}
oMyDoc.open('GET', sUrl, bAsync);
oMyDoc.send(null);

return oMyDoc;
}

There, third from the end of the body is line 101 in that file:
oMyDoc.send(null);


I can't read this. The level of Javascript is over my head. Maybe you can make sense of it, though, so here it is for you. I can't achieve much more without some direction.
« Last Edit: April 05, 2012, 02:15:36 pm by copb.phoenix »
  • Flag - turing
  • Award - Beta Tester
Isn't this where...?

Offline Ecklestein

  • Orange Level
  • *
  • Posts: 210
  • Cookies: 16
Re: Bug with Quoting and Quick-Edit
« Reply #3 on: April 05, 2012, 09:55:09 pm »
Quick-edit test:
Script.js line 101 ~ on call from attempting to quick edit this post, XML grants blank response:

Code: [Select]
SIGNAL
GET http://www.furryteens.org/forum/index.php?action=quotefast;quote=298936;modify;xml

PARAMS
action quotefast;quote=298936;modify;xml

RESPONSE HEADER
Cache-Control max-age=180, must-revalidate
Content-Length 133
Content-Type text/xml; charset=UTF-8
Date Thu, 05 Apr 2012 17:56:28 GMT
Expires Mon, 26 Jul 1997 05:00:00 GMT
Last-Modified Thu, 05 Apr 2012 17:56:29 GMT
Pragma no-cache
Server Apache/2.2
Via 1.1 vhost.phx4.nearlyfreespeech.net:3128 (squid/2.7.STABLE7)

REQUEST HEADER
Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding gzip, deflate
Accept-Language en-us,en;q=0.5
Connection keep-alive
Cookie LUPSESSID=tra2npahg8a7k2pd871hsegdn4; furryteens=a%3A4%3A%7Bi%3A0%3Bs%3A4%3A%221140%22%3Bi%3A1%3Bs%3A40%3A%225d950008eadba0e043cb13cd6f597ddae027f23e%22%3Bi%3A2%3Bi%3A1506476825%3Bi%3A3%3Bi%3A0%3B%7D; PHPSESSID=c0e044d19790afa67cebfd8acc266dac
Host www.furryteens.org
Referer http://www.furryteens.org/forum/index.php?topic=12733.msg298937
User-Agent Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0

RESPONSE DATA
<?xml version="1.0" encoding="UTF-8"?>
<smf>
<subject><![CDATA[]]></subject>
<message id="msg_298936"><![CDATA[]]></message>
</smf>

XML
<smf>
<subject></subject>
<message id="msg_298936"></message>
</smf>

Give me a minute and I'll try a quote.



Again, we see a fire off to script.js, line 101 with responses empty:

Code: [Select]
SIGNAL
GET http://www.furryteens.org/forum/index.php?action=quotefast;quote=298936;xml

PARAMS
action quotefast;quote=298936;xml

RESPONSE HEADER
Cache-Control max-age=180, must-revalidate
Content-Length 68
Content-Type text/xml; charset=UTF-8
Date Thu, 05 Apr 2012 18:03:07 GMT
Expires Mon, 26 Jul 1997 05:00:00 GMT
Last-Modified Thu, 05 Apr 2012 18:03:08 GMT
Pragma no-cache
Server Apache/2.2
Via 1.1 vhost.phx2.nearlyfreespeech.net:3128 (squid/2.7.STABLE7)

REQUEST HEADER
Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding gzip, deflate
Accept-Language en-us,en;q=0.5
Connection keep-alive
Cookie LUPSESSID=tra2npahg8a7k2pd871hsegdn4; furryteens=a%3A4%3A%7Bi%3A0%3Bs%3A4%3A%221140%22%3Bi%3A1%3Bs%3A40%3A%225d950008eadba0e043cb13cd6f597ddae027f23e%22%3Bi%3A2%3Bi%3A1506476825%3Bi%3A3%3Bi%3A0%3B%7D; PHPSESSID=c0e044d19790afa67cebfd8acc266dac
Host www.furryteens.org
Referer http://www.furryteens.org/forum/index.php?topic=12733.msg298936
User-Agent Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0

RESPONSE
<?xml version="1.0" encoding="UTF-8"?>
<smf>
<quote></quote>
</smf>


XML
<smf>
<quote></quote>
</smf>


@Natasha :natasha:
Is squid pumping an empty response from NFS's end? It seems to be the culprit ~ everything is well formed - even the response - it's just empty. This means that wherever the body is supposed to be summoned from, it's not being summoned successfully....

Edit:
My brain skipped tracks for a minute. I'm going to pour through the javascript itself and see what the request/function/whatever on that line is, but I'm well aware that we're now hosted on NFS (or so my impression stands). The caching proxy - squid. This seems to be the culprit if you want me to swing a guess.



Code: [Select]
// Load an XML document using XMLHttpRequest.
function getXMLDocument(sUrl, funcCallback)
{
if (!window.XMLHttpRequest)
return null;

var oMyDoc = new XMLHttpRequest();
var bAsync = typeof(funcCallback) != 'undefined';
var oCaller = this;
if (bAsync)
{
oMyDoc.onreadystatechange = function () {
if (oMyDoc.readyState != 4)
return;

if (oMyDoc.responseXML != null && oMyDoc.status == 200)
{
if (funcCallback.call)
{
funcCallback.call(oCaller, oMyDoc.responseXML);
}
// A primitive substitute for the call method to support IE 5.0.
else
{
oCaller.tmpMethod = funcCallback;
oCaller.tmpMethod(oMyDoc.responseXML);
delete oCaller.tmpMethod;
}
}
};
}
oMyDoc.open('GET', sUrl, bAsync);
oMyDoc.send(null);

return oMyDoc;
}

There, third from the end of the body is line 101 in that file:
oMyDoc.send(null);


I can't read this. The level of Javascript is over my head. Maybe you can make sense of it, though, so here it is for you. I can't achieve much more without some direction.

Aww damn it, I was just about to put that!

Offline Daniel A. Skirtandzy

  • Purple Level
  • *
  • Posts: 3409
  • Cookies: 162
    • FurAffinity - Skirtandzy1
    • LiveJournal - Skirtandzy
    • Twitter - Skirtandzy
  • Fursona Species: Domestic Cat
Re: Bug with Quoting and Quick-Edit
« Reply #4 on: April 06, 2012, 01:14:31 am »
Okay, so it's not just me.
  • Flag - lawyer
  • Award - Beta Tester
  • Site Donor

Offline Meadow Whisper (Natasha)

  • ᎣᏏᏲ! I'm a horse now! ^.^
  • FT Founder
  • *
  • Posts: 4409
  • Cookies: 397
  • Avatar by Fawn! :D
    • DeviantArt - lupiniastudios
    • FurAffinity - softpaw
    • Twitter - lupinia
    • Weasyl - softpaw
    • Lupinia Studios
  • Fursona Species: Chincoteague Pony
Re: Bug with Quoting and Quick-Edit
« Reply #5 on: April 06, 2012, 02:33:15 am »
Whoa.  Phoenix, that's extremely helpful, in that you basically did the entire diagnostic for me, way more than I expected from anyone.  Thank you.

I'm still pretty flooded with work, but I'll try to make time to look into this server-side next week.
  • Award - Beta Tester
  • Site Donor
  • Pride Flag - transgender
  • Pride Flag - gay
  • Pronouns: She/Her/Hers
Here is a horse I have made for you:
        |,\_/,\_
 ,-__/,   ,       )kk
.                     \,kkk
 \    ,___....--     \kkkk
           \               \kkkkk
             \               \kkkkk

Note:  I'm no longer actively involved in running this site, so while I welcome any personal messages, please do not contact me about account issues.  Please direct all such inquiries to Panda.  Thanks for all the years of awesome memories and friendship!  <3

Offline copb.phoenix

  • So long and goodnight
  • Purple Level
  • *
  • Posts: 2229
  • Cookies: 115
    • FurAffinity - copb_phoenix
Re: Bug with Quoting and Quick-Edit
« Reply #6 on: April 06, 2012, 10:07:52 am »
:3 Alan Turing would be proud, I think.

You're welcome. This community has done more for me, both on-site and off, than I could ever explain or repay. The least I can do is give back to it when I see chances to.

Edit: Less ego, more humble...
« Last Edit: April 06, 2012, 10:13:00 am by copb.phoenix »
  • Flag - turing
  • Award - Beta Tester
Isn't this where...?

Offline copb.phoenix

  • So long and goodnight
  • Purple Level
  • *
  • Posts: 2229
  • Cookies: 115
    • FurAffinity - copb_phoenix
Re: Bug with Quoting and Quick-Edit
« Reply #7 on: April 19, 2012, 10:08:21 pm »
*coughs politely*

I know you're busy, "but..."

I'm sure I can't be the only one that wonders.
  • Flag - turing
  • Award - Beta Tester
Isn't this where...?

Offline copb.phoenix

  • So long and goodnight
  • Purple Level
  • *
  • Posts: 2229
  • Cookies: 115
    • FurAffinity - copb_phoenix
Re: Bug with Quoting and Quick-Edit
« Reply #8 on: June 22, 2013, 04:26:46 am »
"Really? REALLY?"

I may not remember making these posts but I do note a known bug.
  • Flag - turing
  • Award - Beta Tester
Isn't this where...?

Offline Meadow Whisper (Natasha)

  • ᎣᏏᏲ! I'm a horse now! ^.^
  • FT Founder
  • *
  • Posts: 4409
  • Cookies: 397
  • Avatar by Fawn! :D
    • DeviantArt - lupiniastudios
    • FurAffinity - softpaw
    • Twitter - lupinia
    • Weasyl - softpaw
    • Lupinia Studios
  • Fursona Species: Chincoteague Pony
Re: Bug with Quoting and Quick-Edit
« Reply #9 on: June 22, 2013, 10:39:57 am »
Bug fixes on the current code base are being replaced with development work on the new one.
  • Award - Beta Tester
  • Site Donor
  • Pride Flag - transgender
  • Pride Flag - gay
  • Pronouns: She/Her/Hers
Here is a horse I have made for you:
        |,\_/,\_
 ,-__/,   ,       )kk
.                     \,kkk
 \    ,___....--     \kkkk
           \               \kkkkk
             \               \kkkkk

Note:  I'm no longer actively involved in running this site, so while I welcome any personal messages, please do not contact me about account issues.  Please direct all such inquiries to Panda.  Thanks for all the years of awesome memories and friendship!  <3

Offline copb.phoenix

  • So long and goodnight
  • Purple Level
  • *
  • Posts: 2229
  • Cookies: 115
    • FurAffinity - copb_phoenix
Re: Bug with Quoting and Quick-Edit
« Reply #10 on: June 22, 2013, 11:48:46 am »
Fair enough.
  • Flag - turing
  • Award - Beta Tester
Isn't this where...?