Welcome Guest, Not a member yet? Register   Sign In
fresh install gives errors when removing index.php
#1

(This post was last modified: 03-04-2015, 07:32 AM by geegee.)

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($uristrlen($_SERVER['SCRIPT_NAME']));
        }
        elseif (@
strpos($uridirname($_SERVER['SCRIPT_NAME'])) === 0)
        {
            
$uri substr($uristrlen(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?
Reply


Messages In This Thread
fresh install gives errors when removing index.php - by geegee - 03-04-2015, 07:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB