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

nevets’s picture

More context would help. How/where are you calling drupal_goto()?

crabsoul’s picture

try drupal_goto('./node/1');

sharique’s picture

It is not working.

Sharique Ahmed Farooqui

crabsoul’s picture

can you explain where are you calling go to function in your module?

sharique’s picture

I'm calling it in a form alter function [function mymodule_form_alter(&$form, $form_state, $form_id)]

Sharique Ahmed Farooqui

mkalbere’s picture

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

sharique’s picture

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

olveraricardo72’s picture

It was driving me crazy with the sam problem