Banging my head . . .

I have the user profile displaying in a colorbox.

In Chrome, I always receive the error
AJAX HTML request terminated abnormally. Debugging information follows.
Path: colorbox/user/no?width=800&height=500
Status text:
Response text:
Ready state: 4

It happens intermittently in Firefox, IE 10, and Safari.

How do I diagnose an Ajax error?

Comments

iLLin’s picture

Change themes to a basic theme like garland and see if the problem persists. Then go from there. Start turning stuff off until you find out the problem.

mastoll’s picture

This AJAX termination problem does not happen in the latest production release, 7.x-3.2.
I had switched to the dev version because I wanted to remove the arrows and page-count in the bottom left corner of the modal. If I have to choose between page count and AJAX error, I suppose I prefer the page count. But if you could point me to the lines of code in the dev version that relate to the arrows, I will patch my production version and have the best of both! :)

Thanks!

mastoll’s picture

You're fast, iLLin, thanks for #1 which came in while I was typing #3! Regarding the suggestion to change to basic theme etc., do you mean to start turning modules off to look for inter-module conflict? Should I be looking for stuff that uses AJAX specifically?

By the way, the user profiles display without errors outside the colorbox.

iLLin’s picture

Hmm, ill try to figure that out. There is a newer patch here #2120319: rel='nofollow' build up a gallery. Try that one out and let me know.

iLLin’s picture

No, just change your theme to garland. that will take out any custom js, html... etc.

mastoll’s picture

Have changed my theme to Garland but the problem persists. And, it does happen in the production release after all.

It is most prevalent in Chrome. In fact, I cannot make it happen in Firefox, although others have seen it there.

Remember, I am trying to display user profiles in the CB modal.

  • If I launch a new Chrome window, navigate to page and launch the colorbox, the error occurs.
  • If I display a user profile outside of the colorbox, then at any point thereafter click to show one inside colorbox, the error does NOT occur.
  • I can navigate all over the site, return to the page and launch the colorbox and it does not occur.
  • If I leave the site then re-enter by any means other than clicking the back button, then the error occurs again.
  • If I click the back button to return to the site, the error does not occur.

In Chrome, I am able to detect the error
XMLHttpRequest cannot load. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://arizonawet.arizona.edu' is therefore not allowed access.

This would point to a cross-site request, and yet I cannot see where two different sites are involved, or even two variations on the current domain name.

What should I do next?

iLLin’s picture

You have a link?

iLLin’s picture

Status: Active » Closed (cannot reproduce)