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/1946', '', '107.21.156.140', 1371671746) in /srv/drupalforfacebook.org/includes/database.mysqli.inc on line 134 Call Stack: 0.0005 129256 1. {main}() /srv/drupalforfacebook.org/index.php:0 0.3469 7196104 2. theme() /srv/drupalforfacebook.org/index.php:35 0.3470 7203272 3. call_user_func_array() /srv/drupalforfacebook.org/includes/theme.inc:709 0.3470 7203492 4. template_preprocess_page() /srv/drupalforfacebook.org/includes/theme.inc:709 0.3820 7348656 5. theme() /srv/drupalforfacebook.org/includes/theme.inc:1835 0.3820 7348976 6. call_user_func_array() /srv/drupalforfacebook.org/includes/theme.inc:668 0.3821 7349152 7. theme_blocks() /srv/drupalforfacebook.org/includes/theme.inc:668 0.3821 7349180 8. block_list() /srv/drupalforfacebook.org/includes/theme.inc:1641 0.3821 7349452 9. module_invoke() /srv/drupalforfacebook.org/modules/block/block.module:522 0.3821 7349904 10. call_user_func_array() /srv/drupalforfacebook.org/includes/module.inc:461 0.3821 7350124 11. fb_connect_block() /srv/drupalforfacebook.org/includes/module.inc:461 0.3857 7485900 12. drupal_alter() /srv/drupalforfacebook.org/profiles/custom/modules/fb/fb_connect.module:277 0.3860 7486756 13. call_user_func_array() /srv/drupalforfacebook.org/includes/common.inc:2907 0.3860 7486932 14. fb_permission_fb_required_perms_alter() /srv/drupalforfacebook.org/includes/common.inc:2907 0.3860 7486948 15. fb_get_app_data() /srv/drupalforfacebook.org/profiles/custom/modules/fb/contrib/fb_permission.module:47 0.3860 7487580 16. drupal_error_handler() /srv/drupalforfacebook.org/profiles/custom/modules/fb/contrib/fb_permission.module:1079 0.3861 7489208 17. watchdog() /srv/drupalforfacebook.org/includes/common.inc:665 0.3864 7490580 18. module_invoke() /srv/drupalforfacebook.org/includes/bootstrap.inc:965 0.3864 7491480 19. call_user_func_array() /srv/drupalforfacebook.org/includes/module.inc:461 0.3864 7491656 20. dblog_watchdog() /srv/drupalforfacebook.org/includes/module.inc:461 0.3864 7492004 21. db_query() /srv/drupalforfacebook.org/modules/dblog/dblog.module:146 0.3866 7494380 22. _db_query() /srv/drupalforfacebook.org/includes/database.mysql-common.inc:41 0.3870 7496000 23. trigger_error() /srv/drupalforfacebook.org/includes/database.mysqli.inc:134 Form submits come back to my own site |

Form submits come back to my own site

When I submit form be it search or node add it comes back to my site with an error message.

# URL starts with fb_cb/My-App-Name. This should never happen on connect pages. Did the previous page have a badly formed link?

If you can make your dff_custom module public it would be of great help.

As discussed here: http://drupal.org/node/694800, I coded my own module

/**
* implementation of hook_form_alter
* @param unknown_type $form
* @param unknown_type $form_state
* @param unknown_type $form_id
* @return unknown_type
*/
function mymodule_form_alter(&$form, $form_state, $form_id) {

// Special canvas page form handling *only* when enctype is set.
if (!isset($form['#attributes']) || !isset($form['#attributes']['enctype'])) {
// Prevent fb_canvas from changing the form's action
//dsm("Fb only forms");
fb_canvas_form_action_via_facebook($form, TRUE);
}

//dsm($form);

}

but above function does not work, can anyone help me with this. The form keeps redirecting to my site, I need it to stay it on facebook as it does for druaplforfacebook app.

We're trying to figure this

We're trying to figure this out. Sounds like the same issue reported here: http://drupal.org/node/711654

are you using fbml or iframe canvas pages?

I am using FBML. What can

I am using FBML. What can solve this problem?

It works fine in your app DrupalforFacebook.