chanakya95 / phpdesktop

Automatically exported from code.google.com/p/phpdesktop
0 stars 0 forks source link

Mongoose: the REQUEST_URI envrionment variable doesn't contain QUERY_STRING #112

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It needs to be fixed in Mongoose C sources. In the meantime you can fix it in 
PHP scripts, see below.

When launching Drupal 7 installation script this bug is causing a loop back 
from the "Choose language" step back to the "Choose profile" step. A quick fix 
for Drupal is to edit all the php scripts in the root directory (not many of 
them: authorize.php, cron.php, index.php, install.php, update.php, xmlrpc.php) 
and add this code at the top of each file:

  $_REQUEST_URI = $_SERVER["PHP_SELF"]."?".$_SERVER["QUERY_STRING"];
  putenv("REQUEST_URI=$_REQUEST_URI");
  $_SERVER["REQUEST_URI"] = $_REQUEST_URI;
  $_ENV["REQUEST_URI"] = $_REQUEST_URI;

This will fix the REQUEST_URI variable.

Original issue reported on code.google.com by czarek.t...@gmail.com on 16 May 2014 at 6:20

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
thank you that did the trick and drupal work fine.. also this hack will prevent 
drupal update from working.. when do you plan to fix this error on phpdesktop 
sir?
thank you

Original comment by vasileio...@gmail.com on 17 May 2014 at 9:04

GoogleCodeExporter commented 8 years ago

Original comment by czarek.t...@gmail.com on 9 Aug 2014 at 6:19

GoogleCodeExporter commented 8 years ago

Original comment by czarek.t...@gmail.com on 13 Oct 2014 at 6:48

GoogleCodeExporter commented 8 years ago

Original comment by czarek.t...@gmail.com on 21 Oct 2014 at 10:39

GoogleCodeExporter commented 8 years ago
The code in comment #1 did not handle all cases properly. See the code provided 
in Issue 137 for a complete fix for mongoose environment variables.

Original comment by czarek.t...@gmail.com on 27 Oct 2014 at 7:49

GoogleCodeExporter commented 8 years ago
Project will move to Github. Find this issue at the new address (soon): 
https://github.com/cztomczak/phpdesktop/issues/112

Original comment by czarek.t...@gmail.com on 24 Aug 2015 at 3:30