Recent Topics

1 Dec 12, 2009 21:17    

My b2evolution Version: 3.3.2

I have just updated one of my sites (www.helioglyphs.com) from 3.2.0-beta to 3.3.2, and am having a trouble. When I go from the admin area to the blog to look, it logs me out and I have to log in again.

Happens in both Safari and Firefox; cookies enabled in both.

Have changed $instance_name = 'b2evo' to $instance_name = 'heliocookie' in conf/_advanced.php --no change.

Was working fine before upgrade.

Ideas?

PS Just got a fresh download of 3.3.2 and uploaded entire inc folder -- no change.

2 Dec 12, 2009 22:01

Your $baseurl is most likely misconfigured.

Also make sure the admin and blog are on the same domain, otherwise cookies don't work (that's how cookies are designed).

3 Dec 12, 2009 22:37

I use a separate installation for different domains, so yes on same domain. (AND it worked fine before upgrade.)

After searching $baseurl in the forums, I have changed a line in conf/_basic.template.php

$baseurl = 'http://localhost/helioglyphs/blogs/';

No change in behavior.

4 Dec 13, 2009 01:59

try clearing your cookies and restarting your browser.

5 Dec 13, 2009 02:01

Thanks--have done that a few times, last night and today.

(45 minutes later--edit) I just deleted all cookies AGAIN from both Safari and Firefox, then logged into each.

In Firefox, if I look at my cookies while in Admin, it shows a cookie to expire at end of session; after I hit the BLOG button and look at cookies again, it reports zero cookies. (Wrongly interpreted as end of session?)

Similarly in Safari, checking from inside Admin shows one cookie, but after I hit the BLOG button and check again from the Blog, the cookie is still there: expires Dec 10, 2019! BUT I am logged out.

Bottom line: When I go out to look at the blog ("BLOG" button at upper right of admin page), I am no longer logged in--no "ADMIN" button at upper right of blog page, no EDIT option beside postings. Earlier this afternoon, it also logged me out several times when I hit "Save and Edit" while editing a post--and losing all my changes.

6 Dec 13, 2009 05:46

If clearing your cookies after changing $baseurl still doesn't help, your $baseurl is probably still incorrect.

You have a blog running at:
http://helioglyphs.com/argylestreet.php (nice pictures btw ;)

You need
$baseurl = 'http://helioglyphs.com/';

NOT $baseurl = 'http://localhost/helioglyphs/blogs/';
NOT $baseurl = 'http://helioglyphs.com/blogs/';
NOT $baseurl = 'http://www.helioglyphs.com/';

Allow me to insist on the comments in the config file:
* $baseurl is where your blogs reside by default. CHECK THIS CAREFULLY or nothing will work.
* It should be set to the URL where you can find the blog templates and/or the blog stub files,
* that means index.php, blog_b.php, etc.
* Note: Blogs can be in subdirectories of the baseurl. However, no blog should be outside
* of there, or some tricky things may fail (e-g: pingback)

Also, you should probably move everything you have in the /blogs subfolder up one level, so that it's at the same level as your blog stub files (argylestreet.php etc)

It's technically possible to keep b2evo under /blogs but it's a lot more work to configure. I highly recommend you move your files up and configure $baseurl as explained above.

7 Dec 13, 2009 21:52

Great--I just found this, will follow up soon. Thank you!

Question before I do follow up: I left blogs in /blogs/ because I am not running a blog as the "home page" of this installation (as I have done elsewhere). The page at helioglyphs.com is an html page that just shows contents as a directory. Do all your instructions still apply in this case?

(30 minutes later--edit) Well, I tried $baseurl = 'http://helioglyphs.com/'; checked in Safari and Firefox: same result. THEN tried $baseurl = 'http://helioglyphs.com/blogs/'; checked in S & F: same result. Changed it back to $baseurl = 'http://helioglyphs.com/'; checked in S & F: same result.

8 Dec 14, 2009 04:51

Yes, my advice still applies. Just make sure you delete b2evolution's index.php in order to make sure your index.html gets priority.

Changing $baseurl without moving the files is not enough.

Don't forget to clear cookies everytime you change $baseurl.

9 Dec 31, 2009 06:13

Well, it has been a few weeks, but I just moved the contents of my /blogs/ subfolder up one, made sure $baseurl was correct per your advice above in conf/config_basic.php and conf/config_basic.template.php. Had to remove /blogs/ from urls in stub files as well. And now it works perfectly! Thanks again for your help!!

Question, just for understanding: since /blogs/ was part of ALL those addresses originally, would it have worked if I had moved the stub files physically into the /blogs/ folder? (But I like it fine this way.)

10 Dec 31, 2009 06:24

Instead of moving files you could set $cookie_path = '/'; in conf/_advanced.php

11 Jan 02, 2010 12:19

Yes, it would have worked if you had moved everything under the /blogs folder.


Form is loading...