Recent Topics

1 Sep 10, 2009 22:02    

My b2evolution Version: Not Entered

Does anyone know where I go and how I go) to fix this error at login? This is the message I get at the login screen:

"WARNING: you are trying to log in to http://blog.autismepicenter.com/?blog=2 but your cookie domain is .autismepicenter.net. You will not be able to successfully log in to the requested domain until you fix your cookie domain in your b2evolution configuration."

Thank you!

2 Sep 10, 2009 22:30

Meander into conf/_advanced.php and set cookie domain to / ... ish

¥

3 Sep 11, 2009 18:17

OK, I'm in conf/_advanced.php, but which line do I change? And why change it to "ish"?

Thanks

4 Sep 11, 2009 18:45

"...ish" == "it's late, and I've forgotten the exact line" ;)

From a 2.x version of _advanced.php

/**
 * This is the path that will be associated to cookies.
 *
 * That means cookies set by this b2evo install won't be seen outside of this path on the domain below.
 *
 * @global string Default: preg_replace( '#https?://[^/]+#', '', $baseurl )
 */
$cookie_path = preg_replace( '#https?://[^/]+#', '', $baseurl );

/**
 * Cookie domain.
 *
 * That means cookies set by this b2evo install won't be seen outside of this domain.
 *
 * We'll take {@link $basehost} by default (the leading dot includes subdomains), but
 * when there's no dot in it, at least Firefox will not set the cookie. The best
 * example for having no dot in the host name is 'localhost', but it's the case for
 * host names in an intranet also.
 *
 * Note: ".domain.com" cookies will be sent to sub.domain.com too.
 * But, see http://www.faqs.org/rfcs/rfc2965:
 *	"If multiple cookies satisfy the criteria above, they are ordered in
 *	the Cookie header such that those with more specific Path attributes
 *	precede those with less specific.  Ordering with respect to other
 *	attributes (e.g., Domain) is unspecified."
 *
 * @global string Default: ( strpos($basehost, '.') ) ? '.'. $basehost : '';
 */
if( strpos($basehost, '.') === false )
{	// localhost or windows machine name:
	$cookie_domain = '';
}
elseif( preg_match( '~^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$~i', $basehost ) )
{	// Use the basehost as it is:
	$cookie_domain = $basehost;

With a tad of luck the notes are self explanatory

¥

5 Sep 11, 2009 23:37

I'm still pretty clueless here. My blog is currently located, and working fine, at blog.autismepicenter.net. Notice the ".net" at the end? I want my login to work fine when I go there with ".com" on the end. It already takes me there, I just need b2evolution to let me login from the ".com" If I can login from either/or that's even better.

I don't know what part of the code to change!

6 Sep 17, 2009 05:03

Can anyone else help me out? Please!

:-)

7 Sep 17, 2009 05:52

I'm kinda curious why your cookie domain is .net when your actual domain is .com ? By the way that's a very nice skin.

Anyway MAYBE try this in that file:

{    // Use the basehost as it is:
    $cookie_domain = 'blog.autismepicenter';

8 Sep 18, 2009 01:03

I'll try that fix - thanks!

The reason my actual domain is .com and the blog is .net is because they are on two different hosts. My .com, where the main site is located doesn't allow the installation of scripts.

PS - thanks for the compliment about the skin.

9 Sep 20, 2009 03:19

...problem still not solved. Perhaps I've stumped everyone? I hope not.


Form is loading...