• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed  Undefined index: host - library/XenForo/Session.php:656

Dodgeboard

Well-known member
#1
From the error logs: Undefined index: host - library/XenForo/Session.php:656


array(3) {
["url"] => string(39) "http://www.dodgeboard.com/forums/t9821/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
Note: it's always a different URL, but the URLS always fail when I try to open them. They all follow the above format.

I am getting several of these per day- all generated by guests (probably spiders?). I can't help but think it has something to do with the old url structure, but I have tested the old urls and they seem to be redirecting correctly.

DO I need something in my .htaccess to catchall and redirect them?


My forums .htaccess:

RewriteEngine On

# If you are having problems with the rewrite rules, remove the "#" from the
# line that begins "RewriteBase" below. You will also have to change the path
# of the rewrite to reflect the path to your XenForo installation.
RewriteBase /forums

RewriteEngine on
RewriteRule t([\d]+)-([\d]+)/ showthread.php?t=$1&page=$2 [NC,L]
RewriteRule [^/]+/([\d]+)-.+.html showthread.php?t=$1 [NC,L]
RewriteRule f([\d]+)/ forumdisplay.php?f=$1 [NC,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^(data|js|styles|install) - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
My root .htaccess:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^dodgeboard.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.dodgeboard.com$
RewriteRule ^/?$ "http\:\/\/www\.dodgeboard\.com\/forums\/index\.php" [R=301,L]
 

Mike

XenForo developer
Staff member
#4
I believe it was actually doing it in a least one previous version, but I found a bug that caused some errors to not be logged correctly and fixed that with 1.0.
 

Brogan

XenForo moderator
Staff member
#6
XenForo 1.0.0 was released on March 8th and Mike's post was March 13th so I'm guessing he meant it was fixed for 1.0.1.
 

Dodgeboard

Well-known member
#7
I've just let my errors pile up hoping this will not cause a problem. With no mass delete function, I'm not going to waste several hours deleting 50 some pages of errors, one by one. I'll just wait for the update.