I was getting errors about "drupal_goto" not being defined.
in the function "mobify_go_mobile", I had to comment out line 240 and replace it with the following (taken from the "drupal_goto" function.
//drupal_goto(mobify_url()); // stuff below added to fix a problem with drupal_goto not working with hook_init in cached pages - L0rne
$url = mobify_url();
module_invoke_all('exit', $url);
session_write_close();
header('Location: '. $url, TRUE, 302);
exit();
After I made these changes, everything worked fine.
Sorry, I don't have time to do up a patch for this. Hopefully this will help, though.
Comments
Comment #1
b1tr0t commentedThanks for the heads up!
Can you confirm what version of drupal you are running? The drupal API specifies that drupal_goto should exist for Drupal versions 4+!
Comment #2
b1tr0t commentedI've managed to find some situations where drupal_goto fails myself. I've adopted your code for the latest versions, thanks for the contribution. :)