Errors while loading page from application
Runtime errors:
HTML error while rendering tag "img": Relative URLs not allowed here
There are still a few kinks Facebook and the makers of Superhit are trying to iron out. We appreciate your patience as we try to fix these issues. Your problem has been logged - if it persists, please come back in a few days. Thanks!
========
I am getting the above error messages at http://apps.facebook.com/superhit/
Is it my config error or other things?
My server has php5.x
Comments
Comment #1
Dave Cohen commentedAre you using the fb_fbml theme?
Use your browser's view source feature, find and <img> tags which use a relative url. What are they?
Comment #2
gopagoninarsing commentedHi,
I am also facing the same issue after using the fb_fbml theme.
Comment #3
Dave Cohen commentedIf so, you should answer the same question I asked.
Comment #4
lookatyeti commentedIF you haven't resolved this issue you might want to check out this post from the drupalforfacebook.org forums: http://www.drupalforfacebook.org/node/1182
Comment #5
Dave Cohen commentedI'm still curious which module(s) are producing these bad links. Will no-one tell me? Do any links on these pages work?
Comment #6
giorgio79 commentedHello Dave,
I am getting these issues as well :) I did check the source and will tell you what I found :)
The relative path is present for path icons in views like so:
<img src="/misc/feed.png"Not sure what would be the solution as fb complains that "HTML error while rendering tag "img": Relative URLs not allowed here".
This seems to be a duplicate http://drupal.org/node/189738
Also, I just installed the fb modules, and on my homepage none of the links work. It seems the canvas url + the canvas suffix are cutoff
so isntead of http://apps.facebook.com/mycoolapp/whatever-url-alias
I see http://whatever-url-alias
This url and img rendering seem to be separate issues, should I open a new ticket?
Comment #7
giorgio79 commentedComment #8
georgedamonkey commentedNot sure if this will help, but for me it was the logo. fb_fbml theme had it showing as a relative url. I unchecked the box to show logo, and the error went away.
Comment #9
georgedamonkey commentedNoticed the same thing about the stylesheet. It uses a relative URL, so never gets loaded.
Comment #10
Michael Phipps commentedThe most bizarre thing happened while I was trying to sort this out. It suddenly started working properly.
Ultimately, I haven't changed code.
What I did do is edit the details in facebook application setting under "Facebook canvas page settings"
The text boxes that say "Leave blank to use the site-wide front page." I just entered the name of my application into, saved, checked the page at facebook, and then made the text boxes blank again, saved, and it just worked.
It's weird. I don't know if it can be reproduced, but figured worth mentioning.
Comment #11
Dave Cohen commentedI've just checked in some changes to fb_canvas.module and the fb_fbml theme. As far as I know, these issues are no longer problems. If they are, someone please explain exactly how to reproduce and paste here the exact markup of the
<img ...>tags with the relative urls.Thanks.
Comment #12
j0nathan commentedHi,
Same issue with theme fb_fbml and fb version 6.x-2.0-rc2. The path in the img tag is (like #6):
I don't know how to reproduce it, but I have opened a support request there: #820658: fb_fbml theme in one column, without panels, views_slideshow nor collapsiblock
Comment #13
j0nathan commentedchanging status to active
Comment #14
Dave Cohen commentedWhat module writes that img tag? Views?
Comment #15
Dave Cohen commentedComment #16
j0nathan commentedHi Dave,
This is the block "Syndication" from the Drupal core modules.