Warning: Table './dff_live/watchdog' is marked as crashed and should be repaired query: INSERT INTO watchdog (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '%message in %file on line %line.', 'a:4:{s:6:\"%error\";s:7:\"warning\";s:8:\"%message\";s:40:\"Creating default object from empty value\";s:5:\"%file\";s:63:\"/srv/drupalforfacebook.org/profiles/custom/modules/fb/fb.module\";s:5:\"%line\";i:1079;}', 3, '', 'http://www.drupalforfacebook.org/fb_cb/NNN/node/1182', '', '67.202.9.192', 1371709713) in /srv/drupalforfacebook.org/includes/database.mysqli.inc on line 134 Call Stack: 0.0002 129256 1. {main}() /srv/drupalforfacebook.org/index.php:0 0.2862 7172408 2. theme() /srv/drupalforfacebook.org/index.php:35 0.2863 7189236 3. call_user_func_array() /srv/drupalforfacebook.org/includes/theme.inc:709 0.2863 7189456 4. template_preprocess_page() /srv/drupalforfacebook.org/includes/theme.inc:709 0.3058 7334660 5. theme() /srv/drupalforfacebook.org/includes/theme.inc:1835 0.3058 7334980 6. call_user_func_array() /srv/drupalforfacebook.org/includes/theme.inc:668 0.3058 7335156 7. theme_blocks() /srv/drupalforfacebook.org/includes/theme.inc:668 0.3058 7335184 8. block_list() /srv/drupalforfacebook.org/includes/theme.inc:1641 0.3058 7335456 9. module_invoke() /srv/drupalforfacebook.org/modules/block/block.module:522 0.3059 7335908 10. call_user_func_array() /srv/drupalforfacebook.org/includes/module.inc:461 0.3059 7336128 11. fb_connect_block() /srv/drupalforfacebook.org/includes/module.inc:461 0.3098 7471868 12. drupal_alter() /srv/drupalforfacebook.org/profiles/custom/modules/fb/fb_connect.module:277 0.3101 7472724 13. call_user_func_array() /srv/drupalforfacebook.org/includes/common.inc:2907 0.3101 7472900 14. fb_permission_fb_required_perms_alter() /srv/drupalforfacebook.org/includes/common.inc:2907 0.3101 7472916 15. fb_get_app_data() /srv/drupalforfacebook.org/profiles/custom/modules/fb/contrib/fb_permission.module:47 0.3101 7473548 16. drupal_error_handler() /srv/drupalforfacebook.org/profiles/custom/modules/fb/contrib/fb_permission.module:1079 0.3103 7476264 17. watchdog() /srv/drupalforfacebook.org/includes/common.inc:665 0.3106 7477640 18. module_invoke() /srv/drupalforfacebook.org/includes/bootstrap.inc:965 0.3106 7478540 19. call_user_func_array() /srv/drupalforfacebook.org/includes/module.inc:461 0.3106 7478716 20. dblog_watchdog() /srv/drupalforfacebook.org/includes/module.inc:461 0.3106 7479064 21. db_query() /srv/drupalforfacebook.org/modules/dblog/dblog.module:146 0.3108 7481440 22. _db_query() /srv/drupalforfacebook.org/includes/database.mysql-common.inc:41 0.3111 7483060 23. trigger_error() /srv/drupalforfacebook.org/includes/database.mysqli.inc:134 DFF on Drupal 6.10. Links messed up. |

DFF on Drupal 6.10. Links messed up.

I got DFF working on a Drupal 6.10 installation after looking into http://www.drupalforfacebook.org/node/1179 .

I can look at the landing page of my application on facebook but (site local) links lack the domain name (e.g. they show up as http://node/9?_fb_fromhash=40f584546ef5141ab3f242e359f018c6). So actually using the application is not possible.

Any ideas what I can do about this? Thank you very much.

I believe this issue is

I believe this issue is fixed. If not, please open an issue on the issue queue and not on this site.

And in answer to an early question, right now $fb_canvas has to do a bunch of search and replace to make links work correctly. Unfortunately it's pretty fragile. But Drupal 7.x will introduce new ways to alter urls. I'm hoping things are smoother when the modules are ported to D7.

From what we're seeing, it's

From what we're seeing, it's all links - tabs, drupal navigation, hard-coded relative links, WYSIWYG created links, read more links from views. All appearing like those in the initial post.

I do understand correctly that canvas.module is essentially re-writing all links, right?

Also, Drupal 6.10 and DFF 6.x-2.x-dev with clean urls working.

more details, please

Are you guys talking about some links, or all links?

For example do the links in the navigation block work? Or tabs at the top of a page?

If those links do work, then which modules are producing the bad links?

A little more info

I have had some success with this issue by altering the replacement patterns in canvas.module.

Beginning on line 567:
replaced: $replacements[] = "=\"/{$fb_app->canvas}/$1app{$fb_app->id}_";
with: $replacements[] = "=\"/{$fb_app->canvas}/$1app{$fb_app->id}_";

On line 569:
replaced: $replacements[] = "=\"/{$fb_app->canvas}/";
with: $replacements[] = "=\"{$fb_app->canvas}/[MY APP'S CANVAS PATH]/";

In both cases, the leading '/' were causing issues because they were creating relative url's beginning with '//'. In the second line, I needed to include the path I created for the canvas. So for instance, if my canvas path is:
http://apps.facebook.com/mytest1000/
the second line would be:
$replacements[] = "=\"{$fb_app->canvas}/mytest1000/";

I'm certain this isn't the best method, and there should be some way to grab that info so you're locking yourself into a single app. There's a better way without a doubt, but hopefully this will help point to the issue.

correction, i think

Beginning on line 567:
replaced: $replacements[] = "=\"/{$fb_app->canvas}/$1app{$fb_app->id}_";
with: $replacements[] = "=\"{$fb_app->canvas}/$1app{$fb_app->id}_";

CORRECTION

Meant to post:

Beginning on line 567:
replaced: $replacements[] = "=\"/{$fb_app->canvas}/$1app{$fb_app->id}_";
with: $replacements[] = "=\"{$fb_app->canvas}/$1app{$fb_app->id}_";

By the way, amazing module.

By the way, amazing module. Can't wait to see how this matures as the Facebook api's mature.

Having the same issue

Have been playing around with this for a few days and seem to be having the same issue.

(And yes I have read the Readme.txt file from beginning to end, and I enjoyed the fact that you asked people to prove that to you.)

I can get Drupal to output absolute URLs everywhere which will allow the Application to link back to the Drupal site, but this doesn't really allow for keeping your app running inside of the Facebook page (which is somewhat the point).

@Philipp if you just want to output absolute URLs there are a couple of ways to this, not sure what the best/proper way is, but if you open the file /includes/common.inc and go to line 1373 change:

'absolute' => FALSE,
to:
'absolute' => TRUE,

That will make Drupal print absolute URLs throughout your entire site, which will also work on your Canvas pages, doesn't really solve the issue though.

Same here

We're seeing the same url issue with 6.10. Drupal prepends node paths with '/' when defining $node_url, but facebook doesn't seem to like that. Looking into the replacement patterns.

Is this still an issue?

Is this still an issue? Perhaps there are some hints in the server error log?

I'd be interested in Drupal for Facebook but maybe I should wait till its a bit more stable.

Please keep us posted, I'm keeping a close eye on this project, I think its a great idea!

Inner Game | Seduction Community.