Bug #649
closedPHP header:Location function required the whole URL for redirection
100%
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.
Updated by Eric Hou over 14 years ago
- 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.
Updated by Scott Stagg over 14 years ago
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.
Updated by Eric Hou over 14 years ago
Hi Scott!
If you can check out the myamiweb again from svn co http://emg.nysbc.org/svn/myami/branches/myami-2.0/myamiweb myamiwebtest/
put it in your web dir.
and open your browser : myamiwebtest/setup/index.php
and click the next button.
Thanks.
Eric
Updated by Scott Stagg over 14 years ago
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.
Updated by Eric Hou over 14 years ago
Scott!
I can call you tomorrow. We have meeting today whole day.
Eric
Updated by Amber Herold over 14 years ago
- 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?
Updated by Eric Hou over 14 years ago
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
Updated by Scott Stagg over 14 years ago
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.
Updated by Eric Hou over 14 years ago
- Status changed from In Code Review to In Test
Just tested new installation.
Should work fine now.
Thanks.