What can cause a persistent “Reload the page to get source for” error in firebug?

爱⌒轻易说出口 提交于 2019-11-27 17:14:29

问题


I'm trying to debug the javascript of a specific page, and I keep seeing

Reload the page to get source for page.htm in Firebug.

On Chrome, I'm mostly able to debug the js, but sometimes I also get a blank page. What can cause such issues?

I believe I always see a blank page in Chrome if I reload while the JS console is open. If I open a new Chrome tab, load the page, and then open the JS console, everything is ok.

The page I'm debugging is on a localhost server (Play Framework server), although I have seen this on other pages occasionally. This only happens with inline javascript ... js that is linked from the page is displayed fine.


回答1:


With firebug icon, you'll see a dropdown arrow. Click that arrow to open up the drop down menu.

Click Clear Activation List.

Refresh the page now.

Now under script tab you'd see the Reload link. Click that to reload the page again. This time when the page reloads, you'd see the script.




回答2:


I have tried all the answers described here, but for me the issue was something else.

I got the same message "Reload to see all sources" in firebug, and the Chrome debugger didn't display anything in the sources tab as well. I saw that the debugger was working on other pages for my website, so the problem was the page itself and after hours of sequentially deleting everything I had in the page, all that remained was an 'img' tag.

    <img src="#" />

It seems the src attribute should not contain "#", perhaps someone with a deeper understanding of HTML could explain this, but removing it has solved the problem for me.

Hopefully this will be of use to someone else as well.




回答3:


I had the same issue, but had simply overlooked one obvious thing.

I had the noScript Firefox extension installed and hadn't enabled scripts from all the sources on the page, and it was blocking and causing that exact message persistently.




回答4:


This might help anyone who has encountered this message too.

I had this message too and could not get what the problem was. But then I had found it: My problem was that I hade some urls in an jQuery Ajax call that were just the ones from the hosting provider, not the actual domain name. With those urls all was fine during development. Then, after launching, the site was accessed by the new domain name. The mixture of the urls was the problem.

Strange was also that the GET url that was called via Ajax has worked in the regular browser url bar. Only in JS it did not work. Seems that I still have a knowledge deficit...




回答5:


I have this problem once.
the solve for me is the host name

page url: http://localhost
request url: http://192.168.0.1




回答6:


You have 2 possibilities:

  • Try first to update Firebug to a new version (even if it's beta) and try to debug. If the issue will persit try to downgrade to an older version (you might have to modify install.rdf file inside xpi file by opening it as compressed file: http://kb.mozillazine.org/Editing_an_add-on_to_change_its_compatibility)

  • Try to change your server, for example you can try to host your pages through XAMPP/LAMPP




回答7:


It may also be due to "302 Moved Temporarily" error. You can check it in firebug's Net tab.




回答8:


One other potential cause of the “Reload the page to get source for” message is the server returning an empty response. Check the response headers for Content-Length:0. If this isn't what you anticipated for the response, it is probably time to do some debugging on the server side of things. Note that empty responses do not always cause the "Reload the page to get source for" message -- however, I encountered at least one situation where this was the underlying problem.




回答9:


For the record, this can also happen if the certificate is jacked for https://www.xyz.com. You need to visit that site first and add a security exception.




回答10:


I got this message displayed while opening a page that had a content-encoding error. The page returned gzip compressed data, but a HTTP module corrupted the gzip content.



来源:https://stackoverflow.com/questions/8486165/what-can-cause-a-persistent-reload-the-page-to-get-source-for-error-in-firebug

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!