You must specify a page name, it will be created if it doesn't exist.
Hello,
I've changed my Apache (linux based) and now I have strange problem with tikiwiki (version 4.3).
When I'm tring to access any wiki page, tikiwiki shows me the error box with such a text:
"You must specify a page name, it will be created if it doesn't exist. "
I don't have this problem when accessing anything other than wiki pages (f.e. "Articles", "File galleries", etc.)
I had tried to look at the code and I found out that $_REQUEST'page' is not defined in the tiki-index.php (it is defined on the beginning of the file, but during code execution it gets overiden). After some more investigation I found out that $_REQUEST'page' variable is filtered out from the array, by that part of code (in tiki-setup_basic.php):
$inputFilter = DeclFilter::fromConfiguration($inputConfiguration, array('catchAllFilter'));
if ($clean_xss) {
$inputFilter->addCatchAllFilter('xss');
}
$_GET = $inputFilter->filter($_GET);
$_POST = $inputFilter->filter($_POST);
$_COOKIE = $inputFilter->filter($_COOKIE);
// Rebuild request with filtered values
$_REQUEST = array_merge($_GET, $_POST);
So I found out that the problem disappears when I comment one line in the tiki-index.php (I need to do it also for tiki-editpage.php, etc...):
$inputConfiguration = array(
array( 'staticKeyFilters' => array(
...
// 'page' => 'pagename',
'page_id' => 'digits',
...
) ),
);
Any clue why is it so?
I have changed only my apache server, but the code of tikiwiki is untouched.
Regards
Flowher