Posted by Sharique on July 4, 2009 at 1:17pm
Hi,
I'm writing a module in when a variable is set than it redirect the all node submission pages to an specific page. For redirection I'm using drupal_goto function as
drupal_goto('node/1');
It gives me white page(white screen of death).
--
Sharique
Comments
More context would help.
More context would help. How/where are you calling drupal_goto()?
try drupal_goto('./node/1');
try drupal_goto('./node/1');
It is not working.
It is not working.
Sharique Ahmed Farooqui
can you explain where are you
can you explain where are you calling go to function in your module?
in a form alter function
I'm calling it in a form alter function [function mymodule_form_alter(&$form, $form_state, $form_id)]
Sharique Ahmed Farooqui
I don't think it is linked.
I don't think it is linked. Are you sure node/1 exists ?
Try to watch into your log files (either in admin/reports/dblog, your apache log, set "php_value display_errors 1" in your .htaccess
conflicting with theme devel module
drupal_goto('node/1') is working, actually it conflicting with theme devel module.
I disable devel module and it works.
Thank you.
--
Sharique
Sharique Ahmed Farooqui
Thank you!!!
It was driving me crazy with the sam problem