Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 13 Jul 2011, 17:20
Meeper Meeper is offline
 
Join Date: Oct 2009
AJAX being difficult and rude.

Hello,

So as the title says, ajax.php is giving weird results, primarily for quick edit and quick reply. More accurately, when I tcpdump'd the output, it was sending a tab (0x09) character immediately before the <?xml tag in the response xml. I dug into class_xml.php and ajax.php, disabled any plugins that used xml_* hooks and ajax_* hooks, and no luck. Any idea where else I should look?
Reply With Quote
  #2  
Old 13 Jul 2011, 18:21
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
You might try disabling all plugins, there maybe be some in global.php and other files included by that.

Then I don't know but if I were trying to figure it out I'd probably put some code in ajax.php (or create a plugin on one of those hooks) to see if it's actually being output by the call to print_xml() (like maybe write the output to a file) although looking over the code briefly, I don't see how that would be happening (you probablly came to the same conclusion).
Reply With Quote
  #3  
Old 13 Jul 2011, 18:58
Meeper Meeper is offline
 
Join Date: Oct 2009
Update:

The tab character seems to be output by the web server, not anything in vBulletin.

I created a plain html file with "<- see, tab!", and sure enough, the tab was there.

Update 2:

As kh99 implied, one of the includes started with:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

*wanders off, muttering imprecations about amateur plugin developers*

Last edited by Meeper; 13 Jul 2011 at 19:20.
Reply With Quote
  #4  
Old 14 Jul 2011, 08:12
AusPhotography's Avatar
AusPhotography AusPhotography is offline
 
Join Date: Nov 2007
Real name: Rick-owner, Kym-admin
Originally Posted by Meeper View Post
*wanders off, muttering imprecations about amateur plugin developers*
Most are amateur

My day job is IT Manager and I've been cutting code since the '70s.
But in this context I'm amateur is as much as I do vB related work simply to enhance our site.

Kym
__________________
www.AusPhotography.net.au a.k.a. AP is a photography forum where members share their photography, photo editing skills and techniques. We run regular photographic competitions; Rick (site owner) and Kym (site tech) using this account
*** Home of the AP fully comprehensive vb4 photographic competition management solution ***
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 22:29.

Layout Options | Width: Wide Color: