Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Cannot read property 'src' of null #31

Closed
Gamemorize opened this issue Apr 30, 2014 · 9 comments
Closed

Uncaught TypeError: Cannot read property 'src' of null #31

Gamemorize opened this issue Apr 30, 2014 · 9 comments
Labels

Comments

@Gamemorize
Copy link

FIRST of all THANKS!

I have an iframe from the same website generating this message and then the mutationObserver warning spewing out.

the src of the iframe is not dynamic, and the iframe shows the correct source, its just that these warnings appear in the console log (chrome)

I tried to change checkOrigin to false but the 'src' of null means this fails too. (if I have understood correctly why)

Uncaught TypeError: Cannot read property 'src' of null iframeResizer.min.js:8
[iFrameSizer][tacticsStripIFrame] Unexpected message ([iFrameSizer]tacticsStripIFrame:759:1498:init) iframeResizer.contentWindow.min.js:9
[iFrameSizer][tacticsStripIFrame] Unexpected message ([iFrameSizer]tacticsStripIFrame:758:554:mutationObserver) iframeResizer.contentWindow.min.js:9
[iFrameSizer][tacticsStripIFrame] Unexpected message ([iFrameSizer]tacticsStripIFrame:757:554:mutationObserver) iframeResizer.contentWindow.min.js:9
[iFrameSizer][tacticsStripIFrame] Unexpected message ([iFrameSizer]tacticsStripIFrame:756:554:mutationObserver) iframeResizer.contentWindow.min.js:9
[iFrameSizer][tacticsStripIFrame] Unexpected message ([iFrameSizer]tacticsStripIFrame:754:554:mutationObserver)
etc etc

What other imformation could I supply to help?

ALSO... i am not sure if this related, but I have the iframe height slowly decreasing at the bottom, it appears it is creeping up as the seconds tick by.

@davidjbradshaw
Copy link
Owner

Hi,

Do you have this online somewhere I can take a look at, or a version you could email me?

Also can you paste in the the complete log before the error message and I'll take a look.

D.

@davidjbradshaw
Copy link
Owner

Also are you using v2.4.3?

@Gamemorize
Copy link
Author

I'm using the latest version. I will send you a PM with a live link!

@davidjbradshaw
Copy link
Owner

Can you turn the logging on please.

@davidjbradshaw
Copy link
Owner

OK, the problem is that you need to load the second JS file into the iFrame, not the host page.

@Gamemorize
Copy link
Author

OK, thanks! Not at desk right now, will confrim asap. Sorry for my mistake, And thanks again for this and your help!

@Gamemorize
Copy link
Author

Ah, the reason I included BOTH files in the header is that there will be an iframe in an iframe. So I automatically included both files in the common header file. Are nested iframes not possible for now?

@davidjbradshaw
Copy link
Owner

In theory they should work and you can ignore that warning.

@Gamemorize
Copy link
Author

Thanks, sorry I hadn-t seen your reply when I reposted a specific query (issue 35).

@davidjbradshaw davidjbradshaw removed the bug label May 1, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants