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

Dave Cohen’s picture

Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

Are 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?

gopagoninarsing’s picture

Version: 5.x-2.x-dev » 6.x-3.x-dev
Category: support » bug
Priority: Normal » Critical

Hi,
I am also facing the same issue after using the fb_fbml theme.

Dave Cohen’s picture

Category: bug » support
Priority: Critical » Normal

If so, you should answer the same question I asked.

lookatyeti’s picture

IF 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

Dave Cohen’s picture

I'm still curious which module(s) are producing these bad links. Will no-one tell me? Do any links on these pages work?

giorgio79’s picture

Status: Active » Postponed (maintainer needs more info)

Hello 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?

giorgio79’s picture

Status: Postponed (maintainer needs more info) » Active
georgedamonkey’s picture

Not 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.

georgedamonkey’s picture

Status: Postponed (maintainer needs more info) » Active

Noticed the same thing about the stylesheet. It uses a relative URL, so never gets loaded.

Michael Phipps’s picture

The 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.

Dave Cohen’s picture

Status: Active » Postponed (maintainer needs more info)

I'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.

j0nathan’s picture

Hi,
Same issue with theme fb_fbml and fb version 6.x-2.0-rc2. The path in the img tag is (like #6):

<img src="/misc/feed.png"

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

j0nathan’s picture

Status: Postponed (maintainer needs more info) » Active

changing status to active

Dave Cohen’s picture

What module writes that img tag? Views?

Dave Cohen’s picture

Version: 6.x-3.x-dev » 6.x-2.x-dev
j0nathan’s picture

Hi Dave,
This is the block "Syndication" from the Drupal core modules.