314parley / kfm

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

Extra call to index.php can cause problems #55

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I encountered a strange problem. When playing with multi root options to 
solve Issue 42. Using a get parameter for a root directory should work, but 
some strange things happened creating an appache2 process taking about 100% 
of the CPU. 
Putting the following line on line 386 of initialize.php (above 
$kfm_root_dir):
file_put_contents(KFM_BASE_PATH.'call_count.txt', 
var_export(debug_backtrace(), 
true)."\nREQUEST_URI:".$_SERVER['REQUEST_URI']."\n\n", FILE_APPEND);

And calling kfm with: index.php?root_folder=Root2
Results in the following output:

array (
  0 =>
  array (
    'file' => '/var/www/kfm_test/index.php',
    'line' => 31,
    'function' => 'require_once',
  ),
)
REQUEST_URI:/index.php?root_folder=Root2

array (
  0 =>
  array (
    'file' => '/var/www/kfm_test/j/all.php',
    'line' => 2,
    'function' => 'require_once',
  ),
)
REQUEST_URI:/j/all.php

array (
  0 =>
  array (
    'file' => '/var/www/kfm_test/index.php',
    'line' => 31,
    'function' => 'require_once',
  ),
)
REQUEST_URI:/index.php

I cannot place the third call to index.php. If due to this call a different 
root directory is set than in the first call the apache2 process is 
created. At least if this root is not the absolute root (id=1). I would 
like to know why because this might lead to future problems. 

Original issue reported on code.google.com by bterku...@gmail.com on 23 Feb 2010 at 9:11

GoogleCodeExporter commented 8 years ago
Figured this one out. The call has to come from the PHP_SELF in kaejax.php 
file. The 
GET_PARAMS should be used for this. 

Original comment by bterku...@gmail.com on 24 Feb 2010 at 9:04

GoogleCodeExporter commented 8 years ago

Original comment by bterku...@gmail.com on 3 Mar 2010 at 8:13