drupal_goto problem

Sharique - July 4, 2009 - 13:17

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

More context would help.

nevets - July 4, 2009 - 14:31

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

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

rashmi.cms - July 4, 2009 - 18:46

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

It is not working.

Sharique - July 6, 2009 - 04:59

It is not working.

Sharique uddin ahmed Farooqui

can you explain where are you

rashmi.cms - July 6, 2009 - 06:03

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

in a form alter function

Sharique - July 6, 2009 - 07:28

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

Sharique uddin ahmed Farooqui

I don't think it is linked.

mkalbere - July 6, 2009 - 07:36

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

Sharique - July 6, 2009 - 09:55

drupal_goto('node/1') is working, actually it conflicting with theme devel module.
I disable devel module and it works.
Thank you.
--
Sharique

Sharique uddin ahmed Farooqui

 
 

Drupal is a registered trademark of Dries Buytaert.