i have latest 2.2 and i get these errors when setting:
PHP Code:
$config['index_page'] = '';
Code:
A PHP Error was encountered
Severity: Warning
Message: strpos(): Empty needle
Filename: core/URI.php
Line Number: 187
Code:
A PHP Error was encountered
Severity: Warning
Message: strpos(): Empty needle
Filename: core/URI.php
Line Number: 191
everything seems to work fine none the less but it seems very strange to me that no one is reporting this error.. i couldnt find it except for only a few links.
perhaps everyone just disables the error out like i did by adding a "@" in front of the strpos function:
PHP Code:
$uri = $_SERVER['REQUEST_URI'];
if (@strpos($uri, $_SERVER['SCRIPT_NAME']) === 0)
{
$uri = substr($uri, strlen($_SERVER['SCRIPT_NAME']));
}
elseif (@strpos($uri, dirname($_SERVER['SCRIPT_NAME'])) === 0)
{
$uri = substr($uri, strlen(dirname($_SERVER['SCRIPT_NAME'])));
}
perhaps the 2.2 version is really new and no one has run into to error because no one has upgraded yet?