Welcome Guest, Not a member yet? Register   Sign In
1.5.4 upgrade to 1.6 - router errror
#1

[eluser]Tobz[/eluser]
Hi,
Im just trying to upgrade to CI 1.6 and get these errors:

A PHP Error was encountered
Severity: Notice
Message: Undefined offset: 0
Filename: libraries/Router.php
Line Number: 187


A PHP Error was encountered
Severity: Notice
Message: Undefined offset: 0
Filename: libraries/Router.php
Line Number: 193


A PHP Error was encountered
Severity: Notice
Message: Undefined offset: 0
Filename: libraries/Router.php
Line Number: 196


I have followed the upgrade instructions.
I am using custom locations for system and app folders - full system paths for both.

anyone else have this problem??

Chur,
Tobz


update: this only happens when at root of the site. other pages work fine.
also works if I put index.php in url bar

I should note that Im using htaccess to get rid of index.php from the url string
#2

[eluser]stevepaperjam[/eluser]
...can you post your htaccess?
#3

[eluser]Tobz[/eluser]
my htaccess:


RewriteEngine on
RewriteCond $1 !^(index\.php|images|js|swf|css|files|base\.swf|crossdomain\.xml|robots\.txt)
RewriteRule ^(.*)$ /index.php?/$1 [L]

AddHandler php5-script .php
#4

[eluser]stevepaperjam[/eluser]
get rid of the question mark in your rewrite rule?

Code:
RewriteRule ^(.*)$ /index.php/$1 [L]
#5

[eluser]Tobz[/eluser]
It worked.
That would have taken me ages to figure out, thanks.
#6

[eluser]stevepaperjam[/eluser]
no problem, i made the same mistake Smile




Theme © iAndrew 2016 - Forum software by © MyBB