Bug #649
closed
PHP header:Location function required the whole URL for redirection
Added by Eric Hou over 14 years ago.
Updated over 14 years ago.
Description
Some php versions allow to use filename to do redirect from page to page in the same sub directory but some don't.
Please add the whole URL when doing the redirect.
Thanks.
- Status changed from New to In Code Review
- Assignee changed from Eric Hou to Amber Herold
- % Done changed from 0 to 100
Add new function in the setupUtils.inc
It is very hard to test this unless we know which php version required the whole url for redirection.
Scott, could you test this, because we know your setup required the whole url for redirection.
To Test:
myamiweb/setup/index.php
and click "next" button
it should go to myamiweb/setup/setupBase.php page without any problem.
Thanks.
- Priority changed from Normal to Urgent
Do you want me to use some different version of myamiweb? If so, which? With the version that I installed, when I click next, it doesn't go to setupBase.php but instead stays on index.php and doesn't show any text in the white part of the window.
It still doesn't work for me when I use the version I checked out as you suggest above. If you would like to call me to work through this, I am available now. My number is 850-645-7872.
Scott!
I can call you tomorrow. We have meeting today whole day.
Eric
- Assignee changed from Amber Herold to Eric Hou
Eric, can you add a more descriptive function header on redirect()? Also, should 'distPage' be 'destPage' as in destination page?
Hey Scott:
can you double check with you php.ini setup?
http://emg.nysbc.org/projects/appion/wiki/Configure_phpini
double check the following:
error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING
display_errors = On
register_argc_argv = On
short_open_tag = On
I just updated some files, and I tested them on my mac and centos are both worked.
So can you svn update to get the newest code and test it again on your server?
Thanks.
Eric
All the php.ini values are set correctly. I svn updated, and it still doesn't work. I should be in my office if you want to give me a call.
- Status changed from In Code Review to In Test
Just tested new installation.
Should work fine now.
Thanks.
- Status changed from In Test to Closed
Also available in: Atom
PDF