Jump to content

Recommended Posts

I am working on my localhost(pc) at home

 

after I refresh my page about 6-10 straight I get stuck on "Waiting on localhost...". It just hangs there. I do not think it is apache, because if I close the browser(firefox), and then reopen my page, I am once again good for 6-10 refreshes before it gets stuck again.

 

How would I go about figuring out this problem? I see no clues in my logs. I am just not sure where too start looking.

 

Some advice would be very appreciated

Why don't you use a ob_implicit_flush() and print something after every few lines to find out which code is causing this. For eg;

ob_implicit_flush();
echo "blah blah started";
/*
SOME CODE
*/
echo "blah blah completed";
echo "foo started";
/*
SOME CODE
*/
echo "foo completed";

 

The point at where it stops would let you find out which code is causing the error. It might be infinite loop or something.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.