Question : What would cause jQuery .load to work only if you print all errors?

The variable seourl in this is a php file. All is activated when you click on a submit button. First a loading graphic shows, then hides and a the results display.

After upgrading to wordpress 3.0, the results no longer display and after a lot of testing, the php file .load refers to is not being referenced.

The more confusing thing is if you use the error_reporting(E_ALL) and actually print all the errors, the file loads correctly and the results display. If I try to capture the errors and not actually print them on the screen - the results will still not display. Also if I use the default permalink structure for wordpress, the results will display.

I've confirmed there are no plugin conflicts, and the html is all correct. All worked perfectly with wordpress 2.9.2. I'm also not getting any javascript errors. This has gotten very frustrating. Can anyone make any suggestions please?

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
jQuery(document).ready(function(){
	var url = jQuery("input.seo-url");
	var ref = jQuery("input[name=ref]");
	var url_form = jQuery("form[id=analyze]");
	var results = jQuery("#results");
	var throbber = jQuery('#throbber');
//	var content = jQuery('#content');
	
	// Form AJAX
	url_form.submit(function(){
		results.hide();
		throbber.fadeIn("slow");
		results.load(seourl, {"url": url.val(), "output": "html", "ref": ref.val() }, function(){
			throbber.hide();
			results.show();
			htmltooltip.render();
			
			// Activate the email form
			jQuery('#email_link').click(function(){
				jQuery(this).hide();
				jQuery('#email_form').show();
				return(false);
			});
			jQuery('#email_form').submit(function(){
				jQuery('#email_throbber').fadeIn('slow');
				jQuery.post( jQuery('#email_form').attr('action')
					, { email: jQuery('input[name=email]').val() }, function(data){
					jQuery('#email_form').text(data);
				});
				return(false);
			});
		});
		return(false);
	});
	jQuery("#seosubmit").submit();
	
});

Answer : What would cause jQuery .load to work only if you print all errors?

Two options:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
Option 1:
=========
MOVE this:

	<script type="text/javascript">
	var seourl = "http://www.plugin-central.org/wp-content/plugins/seo-automatic/index.php";
	</script>


to the VERY TOP of your page 

Option 2:
=========
Change
	var seourl = "http://www.plugin-central.org/wp-content/plugins/seo-automatic/index.php";

To:
function seourl(){
return "http://www.plugin-central.org/wp-content/plugins/seo-automatic/index.php";
}

AND also change:
results.load(seourl,...

To
results.load(seourl(),
Random Solutions  
 
programming4us programming4us